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

Variable Index

 o Ackee
node to be acknowledged
 o Acker
Node from which ack is sent
 o EventMgr
Event manager to report on activities of this module
 o MAX_RETRYCOUNT
 o seqNo
sequence number of current packet

Constructor Index

 o StopAndWaitAck()
contructor

Method Index

 o sendAck(byte[])
interface for user to send ack back to receiving node
 o waitForAck(String, ReliableCommFW)
interface for user to send packet

Variables

 o Ackee
 String Ackee
node to be acknowledged

 o Acker
 transient String Acker
Node from which ack is sent

 o seqNo
 int seqNo
sequence number of current packet

 o MAX_RETRYCOUNT
 static final int MAX_RETRYCOUNT
 o EventMgr
 transient NetLoggerEventManager EventMgr
Event manager to report on activities of this module

Constructors

 o StopAndWaitAck
 public StopAndWaitAck()
contructor

Methods

 o 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
 o 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