All Packages Class Hierarchy This Package Previous Next Index
Class magician.Node.SliWinPortThread
java.lang.Object
|
+----java.lang.Thread
|
+----magician.Node.SliWinPortThread
- public class SliWinPortThread
- extends Thread
- implements PerfConstants
-
EventMgr
-
-
ipAddress
- physical address of node
-
lastSeqNo
- last seq number in window
-
MAX_RETRIES
-
-
outQ
- queue of outgoing packets
-
port
- port number
-
PortName
- name of port being managed
-
retransThrs
-
-
speed
-
-
WINDOW_SIZE
-
-
WinList
- list of seqnos in window
-
SliWinPortThread(Hashtable)
-
-
confirmPacket(int)
- Confirms the receipt of the transmitted packet and removes it from the
retransmit queue.
-
PortDown()
-
-
queueForTransmission(int, byte[])
- queues the packet for transmission and retransmits
after timeout if ack is not received
Currently, individual timeout is ignored, only default is used.
-
run()
- sends packet at the front of the queue to
the neighbor
PortName
String PortName
- name of port being managed
ipAddress
String ipAddress
- physical address of node
port
int port
- port number
outQ
HashQueue outQ
- queue of outgoing packets
WinList
Hashtable WinList
- list of seqnos in window
retransThrs
Queue retransThrs
lastSeqNo
int lastSeqNo
- last seq number in window
EventMgr
EventManager EventMgr
MAX_RETRIES
static final int MAX_RETRIES
WINDOW_SIZE
static final int WINDOW_SIZE
speed
int speed
SliWinPortThread
public SliWinPortThread(Hashtable Port)
queueForTransmission
public void queueForTransmission(int seqNo,
byte packet[]) throws NoRouteToHostException
- queues the packet for transmission and retransmits
after timeout if ack is not received
Currently, individual timeout is ignored, only default is used.
- Parameters:
- seqNo - the assigned sequence number for the packet
- packet - a byte array containing the serialized Smartpacket
- timeout - the timeout interval to use for retransmission
confirmPacket
public boolean confirmPacket(int seqNo)
- Confirms the receipt of the transmitted packet and removes it from the
retransmit queue.
- Parameters:
- seqNo - the sequence number of the packet being confirmed
- Throws: IndexOutOfBoundsException
- if sequence number is out of order
PortDown
protected synchronized void PortDown()
run
public void run()
- sends packet at the front of the queue to
the neighbor
- Overrides:
- run in class Thread
All Packages Class Hierarchy This Package Previous Next Index