|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjgroup.relacs.mss.Mss
public final class Mss
The Mss
class implements a Multi-Send Service.
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 |
Constructor Summary | |
---|---|
Mss(MssUser mssuser,
DistributedSystemConfig dsc,
TransportConfig tconf)
Constructs a new Mss object. |
Method Summary | |
---|---|
HostTable |
getHostTable()
Returns the hosttable. |
void |
lreceive(Event event)
Handles a message received by a local member |
void |
lsend(Event msg)
|
void |
msend(byte tag,
DaemonMsg msg)
M-sends message msg to all the hosts in the
hosttable. |
void |
msend(byte tag,
DaemonMsg msg,
EndPoint[] receivers)
M-sends message msg to the hosts in the destination
array receivers . |
void |
rreceive(java.net.DatagramPacket packet)
Handles a message received from a remote host |
void |
send(byte tag,
DaemonMsg msg,
EndPoint receiver)
Sends message the msg to a single host specified by
receiver . |
java.lang.String |
toString()
Returns a string containing the current content of the queues. |
void |
treceive(jgroup.relacs.mss.ScheduledEvent event)
Handle expired timeout event |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Mss(MssUser mssuser, DistributedSystemConfig dsc, TransportConfig tconf) throws ConfigurationException, java.io.IOException
Mss
object.
mssuser
- The upper level layer, using this layer.dsc
- The distributed system configuration.tconf
- The transport parameter configuration.
ConfigurationException
- Thrown if the distributed system is incorrectly configured.
java.io.IOException
- Thrown if there are problems at socket layer.Method Detail |
---|
public void send(byte tag, DaemonMsg msg, EndPoint receiver)
msg
to a single host specified by
receiver
. This method is optimized for sending
directly to the given receiver
, bypassing the cluster
leader.
public void msend(byte tag, DaemonMsg msg)
msg
to all the hosts in the
hosttable. Only a single message is sent to each cluster leader,
and from there sent to the corresponding members in that cluster.
public void msend(byte tag, DaemonMsg msg, EndPoint[] receivers)
msg
to the hosts in the destination
array receivers
.
public java.lang.String toString()
toString
in class java.lang.Object
public void rreceive(java.net.DatagramPacket packet)
public void lreceive(Event event)
public void treceive(jgroup.relacs.mss.ScheduledEvent event)
public void lsend(Event msg)
public HostTable getHostTable()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |