SSF.Net
Class droptailQueueMonitor_2

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

public class droptailQueueMonitor_2
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. Writes # packet arrivals and drops to the named StreamInterface.

Uses record_type: SSF.Net.QueueRecord_2.

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

Constructor Summary
droptailQueueMonitor_2()
           
 
Method Summary
 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 arriving to the queue.
 void sendRecord()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

droptailQueueMonitor_2

public droptailQueueMonitor_2()
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   # recording time interval, seconds (double)
     suppress_zeros  %S   # suppress zero queue output, true/false
     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

sendRecord

public void sendRecord()

receive

public void receive(ProtocolMessage msg)
Log a packet arriving to the queue.

Specified by:
receive in interface PacketQueueMonitor