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

Variable Index

 o EventMgr
 o ipAddress
physical address of node
 o lastSeqNo
last seq number in window
 o MAX_RETRIES
 o outQ
queue of outgoing packets
 o port
port number
 o PortName
name of port being managed
 o retransThrs
 o speed
 o WINDOW_SIZE
 o WinList
list of seqnos in window

Constructor Index

 o SliWinPortThread(Hashtable)

Method Index

 o confirmPacket(int)
Confirms the receipt of the transmitted packet and removes it from the retransmit queue.
 o PortDown()
 o 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.
 o run()
sends packet at the front of the queue to the neighbor

Variables

 o PortName
 String PortName
name of port being managed

 o ipAddress
 String ipAddress
physical address of node

 o port
 int port
port number

 o outQ
 HashQueue outQ
queue of outgoing packets

 o WinList
 Hashtable WinList
list of seqnos in window

 o retransThrs
 Queue retransThrs
 o lastSeqNo
 int lastSeqNo
last seq number in window

 o EventMgr
 EventManager EventMgr
 o MAX_RETRIES
 static final int MAX_RETRIES
 o WINDOW_SIZE
 static final int WINDOW_SIZE
 o speed
 int speed

Constructors

 o SliWinPortThread
 public SliWinPortThread(Hashtable Port)

Methods

 o 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
 o 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
 o PortDown
 protected synchronized void PortDown()
 o 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
1