All Packages Class Hierarchy This Package Previous Next Index
Class magician.Node.StopAndWaitAck
java.lang.Object
|
+----magician.Node.StopAndWaitAck
- public class StopAndWaitAck
- extends Object
- implements Serializable, PerfConstants
-
Ackee
- node to be acknowledged
-
Acker
- Node from which ack is sent
-
EventMgr
- Event manager to report on activities of this module
-
MAX_RETRYCOUNT
-
-
seqNo
- sequence number of current packet
-
StopAndWaitAck()
- contructor
-
sendAck(byte[])
- interface for user to send ack back to receiving node
-
waitForAck(String, ReliableCommFW)
-
interface for user to send packet
Ackee
String Ackee
- node to be acknowledged
Acker
transient String Acker
- Node from which ack is sent
seqNo
int seqNo
- sequence number of current packet
MAX_RETRYCOUNT
static final int MAX_RETRYCOUNT
EventMgr
transient NetLoggerEventManager EventMgr
- Event manager to report on activities of this module
StopAndWaitAck
public StopAndWaitAck()
- contructor
sendAck
public void sendAck(byte typeId[]) throws IndexOutOfBoundsException
- interface for user to send ack back to receiving node
- Parameters:
- typeId - the type of the Smartpacket
- Throws: IndexOutOfBoundsException
- if sequence number is out of order
waitForAck
public void waitForAck(String PortName,
ReliableCommFW SPObject)
- interface for user to send packet
- Parameters:
- PortName - name of the next-hop active node
- SPObject - the SmartPacket object being sent
All Packages Class Hierarchy This Package Previous Next Index