SSF.Net
Class droptailQueueMonitor_1

java.lang.Object
  |
  +--SSF.Net.droptailQueueMonitor_1
All Implemented Interfaces:
PacketQueueMonitor

public class droptailQueueMonitor_1
extends java.lang.Object
implements PacketQueueMonitor

A prototype queue monitor built atop the SSF.Util.Streams infrastructure, provided as a demonstration. Monitors the IP packet arrivals and drops in a droptailQueue on the NIC on which this droptailQueueMonitor is configured. Computes the average queue length as the time integral of queue length in consecutive time intervals of length probe_interval and writes to the named StreamInterface.

Uses record_type(s): SSF.Net.QueueRecord_1, SSF.Net.QueueProbeIntRecord.

See Also:
droptailQueue, droptailRecordPlayer_1, SSF.Util.Streams

Constructor Summary
droptailQueueMonitor_1()
           
 
Method Summary
 float avgQueueLength()
          integral of queue_length(t) in the measurement interval divided by the length of the measurement interval.
 void config(NIC ownerNIC, com.renesys.raceway.DML.Configuration cfg)
          configure the Monitor.
 void init()
          called by SSF.Net.NIC.init()
 void receive(ProtocolMessage msg)
          Log a packet record as a packet arrives to the queue.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

droptailQueueMonitor_1

public droptailQueueMonitor_1()
Method Detail

config

public void config(NIC ownerNIC,
                   com.renesys.raceway.DML.Configuration cfg)
            throws com.renesys.raceway.DML.configException
configure the Monitor. The supported DML attributes are:
   monitor [
     use SSF.Net.droptailQueueMonitor
     probe_interval  %F   # queue length averaging time interval, seconds (double)
     debug           %S   # print verbose diagnostics, true/false
   ]
 

Specified by:
config in interface PacketQueueMonitor
com.renesys.raceway.DML.configException

init

public void init()
called by SSF.Net.NIC.init()

Specified by:
init in interface PacketQueueMonitor

receive

public void receive(ProtocolMessage msg)
Log a packet record as a packet arrives to the queue.

Specified by:
receive in interface PacketQueueMonitor

avgQueueLength

public float avgQueueLength()
integral of queue_length(t) in the measurement interval divided by the length of the measurement interval.