|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jgroup.relacs.mss.MsgJG
public final class MsgJG
The MsgJG
class is the main mss level message,
used for passing Jgroup related multicast messages to group members.
Field Summary |
---|
Fields inherited from interface jgroup.relacs.mss.MssConstants |
---|
ALL, EHANDLER_PRIORITY, HEADER_SIZE, MINIMUM_ALIVE_VALUE, MSS_HEADER_SIZE, MSSUSER_PRIORITY, NACKSUPPRESSION, NI_PRIORITY, OVERHEAD_SIZE, ROUTING_ENABLED, TRAILER_SIZE, UNDEF, UNREACHABLE |
Fields inherited from interface jgroup.relacs.mss.MssTag |
---|
ASYN, CONGESTION, EXTERNFC, FWDROUTING, IAMALIVE, JG, LOCALFC, NACK, NOTLASTFRAGMENT, PING_OBJECT, QSYN, REMOTENACK, ROUTING, SENT, SENTNACK, SYN, TAGTYPE, TOPOLOGY |
Method Summary | |
---|---|
jgroup.relacs.mss.Cluster |
getCluster()
Returns the destination cluster of this message. |
byte |
getJGTag()
Returns the upper level Jgroup tag associated with this message. |
int |
getMid()
Returns the message identifier for this message. |
jgroup.relacs.mss.MsgFlowSndrSide |
getMsgFlow()
Returns the message flow controller for the sender side. |
OutMessage |
getOutMessage()
Returns the OutMessage associated with this message. |
EndPoint[] |
getReceivers()
Returns the receiver set for this message. |
MssHost |
getSender()
Returns the sender of this message. |
byte |
getTag()
Returns the tag associated with this message. |
boolean |
hasToBeRouted()
Returns true if this message has to be routed to a different cluster. |
FragmentIterator |
iterator(jgroup.relacs.mss.MsgCntrl msgCntrl)
Returns a FragmentIterator for this
MsgJG object. |
void |
setCluster(jgroup.relacs.mss.Cluster cluster)
|
void |
setReceivers(java.util.List receivers)
Marshal receivers into the stream of this message. |
java.lang.String |
toString()
Returns a string representation of this object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public FragmentIterator iterator(jgroup.relacs.mss.MsgCntrl msgCntrl)
FragmentIterator
for this
MsgJG
object. This iterator allows to send the
entire message as multiple fragments of specified size (payload).
At the same time, it marks each fragment with a tag and message
identifier provided through the next()
method of the
iterator.
Note that MsgJG
messages cannot reuse the same
iterator for sending to multiple clusters. This is because, at
each iteration reuse, the fragment identifier is changed, causing
problems when doing lookup in the sent queue to resend a message.
iterator
in interface Msg
public byte getTag()
getTag
in interface Msg
public int getMid()
getMid
in interface Msg
public MssHost getSender()
getSender
in interface Msg
public boolean hasToBeRouted()
hasToBeRouted
in interface Msg
public jgroup.relacs.mss.MsgFlowSndrSide getMsgFlow()
getMsgFlow
in interface Msg
public OutMessage getOutMessage()
OutMessage
associated with this message.
getOutMessage
in interface Msg
public void setReceivers(java.util.List receivers)
receivers
list is empty),
this means that all members should receive this message. This method is invoked for each cluster, to marshal the receivers that belong to that cluster into the stream. That means, not all actual receivers may be marshalled into the stream.
receivers
- List of receivers for this message; if the list is empty, all
should receive the message.public void setCluster(jgroup.relacs.mss.Cluster cluster)
public jgroup.relacs.mss.Cluster getCluster()
public EndPoint[] getReceivers()
public byte getJGTag()
Tag
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |