Class MultiBandwidth

java.lang.Object
  extended by MultiBandwidth

public class MultiBandwidth
extends java.lang.Object


Nested Class Summary
(package private)  class MultiBandwidth.ConnState
           
 
Field Summary
private static boolean BLOCKING_DEQUEUE
           
private static QueueIF comp_q
           
private static java.util.Hashtable conn_table
           
private static boolean DEBUG
           
private static boolean FAIRNESS_REPORT
           
private static int num_active_connections
           
private static int num_connections
           
private static int PORTNUM
           
private static int RECV_BURST_SIZE
           
private static int RECV_MESSAGE_SIZE
           
private static int SEND_BURST_SIZE
           
private static int SEND_MESSAGE_SIZE
           
private static ATcpServerSocket servsock
           
private static boolean VERBOSE
           
 
Constructor Summary
MultiBandwidth()
           
 
Method Summary
 void doIt()
           
static void main(java.lang.String[] args)
           
private static void printTime(long t1, long t2, long msg_size)
           
 void setup()
           
private static void usage()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

servsock

private static ATcpServerSocket servsock

comp_q

private static QueueIF comp_q

conn_table

private static java.util.Hashtable conn_table

num_connections

private static int num_connections

num_active_connections

private static int num_active_connections

DEBUG

private static final boolean DEBUG
See Also:
Constant Field Values

VERBOSE

private static final boolean VERBOSE
See Also:
Constant Field Values

BLOCKING_DEQUEUE

private static boolean BLOCKING_DEQUEUE

FAIRNESS_REPORT

private static boolean FAIRNESS_REPORT

PORTNUM

private static final int PORTNUM
See Also:
Constant Field Values

SEND_MESSAGE_SIZE

private static int SEND_MESSAGE_SIZE

SEND_BURST_SIZE

private static int SEND_BURST_SIZE

RECV_MESSAGE_SIZE

private static int RECV_MESSAGE_SIZE

RECV_BURST_SIZE

private static int RECV_BURST_SIZE
Constructor Detail

MultiBandwidth

public MultiBandwidth()
Method Detail

setup

public void setup()
           throws java.io.IOException,
                  java.net.UnknownHostException
Throws:
java.io.IOException
java.net.UnknownHostException

doIt

public void doIt()
          throws SinkClosedException,
                 java.io.IOException
Throws:
SinkClosedException
java.io.IOException

printTime

private static void printTime(long t1,
                              long t2,
                              long msg_size)

usage

private static void usage()

main

public static void main(java.lang.String[] args)