gov.nist.antd.traffic_generator
Class udpTGSession

java.lang.Object
  |
  +--SSF.OS.ProtocolSession
        |
        +--gov.nist.antd.traffic_generator.udpTGSession
All Implemented Interfaces:
com.renesys.raceway.DML.Configurable

public class udpTGSession
extends ProtocolSession

Class executing a single client-server session.


Field Summary
 java.lang.Object[] buff
           
(package private)  Continuation clientCont
          client's Continuation for this session
private  long dataReceived
           
 double delayTime
           
(package private)  long fileSize
          requested file size
(package private)  int id
          client-assigned session id
 long lastSN
           
(package private)  Host localHost
          Host entity where this pseudo-protocol is installed
private  int locIP
           
private  java.lang.String locNHI
           
private  int locPort
           
(package private)  udpTGClient owner
          client who created this session
 long packetlossCount
           
 double prevTotalTransferBytes
           
 long receivedPacketCount
           
(package private)  int requestSize
          size (in bytes) of request datagram sent from client to server
(package private)  SSF.OS.Socket.socketAPI sd
          local socket used by this session
(package private)  boolean showDebug
          print out debug information
(package private)  boolean showReport
          print out summary session report
(package private)  int srvDatagramSize
          size (in bytes) of datagrams received from servers
private  int srvIP
           
private  java.lang.String srvNHI
           
private  int srvPort
           
private  long startTime
           
private  java.lang.String str
           
 
Fields inherited from class SSF.OS.ProtocolSession
name, use
 
Constructor Summary
udpTGSession(udpTGClient client, int sessid)
           
udpTGSession(udpTGClient client, int sessid, udpTGClient.serverData serv, long file_size)
          Constructors
 
Method Summary
 void begin()
          Method - begin Create the UDP socket and connect
 void begin(Continuation caller)
           
 void beginMCast()
           
 void clientDebug(java.lang.String str)
          preamble to client-side-only diagnostics
 boolean push(ProtocolMessage message, ProtocolSession fromSession)
           
(package private)  void readData()
          Method - readData we read data one message at a time
(package private)  void sendRequest()
          Method - sendRequest()
 void sessionReport(java.lang.String str)
          preamble to end2end session diagnostics
 
Methods inherited from class SSF.OS.ProtocolSession
close, closed, config, debugIdentifier, inGraph, init, open, opened, pushAfterDelay, pushAfterDelayFailed, setGraph, version
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

owner

udpTGClient owner
client who created this session


id

int id
client-assigned session id


clientCont

Continuation clientCont
client's Continuation for this session


showDebug

boolean showDebug
print out debug information


showReport

boolean showReport
print out summary session report


requestSize

int requestSize
size (in bytes) of request datagram sent from client to server


fileSize

long fileSize
requested file size


srvDatagramSize

int srvDatagramSize
size (in bytes) of datagrams received from servers


localHost

Host localHost
Host entity where this pseudo-protocol is installed


sd

SSF.OS.Socket.socketAPI sd
local socket used by this session


srvNHI

private java.lang.String srvNHI

srvIP

private int srvIP

srvPort

private int srvPort

locNHI

private java.lang.String locNHI

locIP

private int locIP

locPort

private int locPort

dataReceived

private long dataReceived

str

private java.lang.String str

startTime

private long startTime

buff

public java.lang.Object[] buff

delayTime

public double delayTime

lastSN

public long lastSN

packetlossCount

public long packetlossCount

prevTotalTransferBytes

public double prevTotalTransferBytes

receivedPacketCount

public long receivedPacketCount
Constructor Detail

udpTGSession

public udpTGSession(udpTGClient client,
                    int sessid,
                    udpTGClient.serverData serv,
                    long file_size)
Constructors


udpTGSession

public udpTGSession(udpTGClient client,
                    int sessid)
Method Detail

begin

public void begin()
Method - begin Create the UDP socket and connect


begin

public void begin(Continuation caller)

beginMCast

public void beginMCast()

sendRequest

void sendRequest()
Method - sendRequest()


readData

void readData()
Method - readData we read data one message at a time


clientDebug

public void clientDebug(java.lang.String str)
preamble to client-side-only diagnostics


sessionReport

public void sessionReport(java.lang.String str)
preamble to end2end session diagnostics


push

public boolean push(ProtocolMessage message,
                    ProtocolSession fromSession)
             throws ProtocolException
Specified by:
push in class ProtocolSession
ProtocolException