|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object communication.CommunicationElement communication.ReliableCommElt
public class ReliableCommElt
Reliable communication element: ensure that all data are sent to receivers or, in case of communication problems, throw explicit exceptions. Note: message sending services can take a certain time to execute and to return. This is due to the fact that we must wait to know if a message has been received or not. So, we must wait for the (virtual) transmission delay to be past.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class communication.CommunicationElement |
---|
CommunicationElement.Receiver |
Field Summary |
---|
Fields inherited from class communication.CommunicationElement |
---|
crashLevel, debugFault, msgBuffer, myPid, packetLostLevel, randGen, tcp, transmissionDelayLowerBound, transmissionDelayUpperBound |
Constructor Summary | |
---|---|
ReliableCommElt()
Reliable communication : if the remote element is reachable, ensure it receives data, otherwise generate an explicit error. |
|
ReliableCommElt(int port)
|
Method Summary | |
---|---|
protected void |
physicalSendMessage(Message msg,
ProcessIdentifier id)
Method called to "physically" send a message through TCP sockets. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReliableCommElt() throws CommunicationException
CommunicationException
public ReliableCommElt(int port) throws CommunicationException
port
-
CommunicationException
Method Detail |
---|
protected void physicalSendMessage(Message msg, ProcessIdentifier id) throws CommunicationException
CommunicationElement
physicalSendMessage
in class CommunicationElement
msg
- the message to be sent (including the receiver id)id
- the id of the sender
CommunicationException
- in case of communication problem
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |