|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.nist.antd.ssf.net.DTQMonitor
Monitor a droptailQueue. Provides information about the bandwidth, packet count and bytes sent through a droptailQueue.
This class was developed at the National Institute of Standards and Technology by employees of the Federal Government in the course of their official duties. Pursuant to title 17 Section 105 of the United States Code this software is not subject to copyright protection and is in the public domain. NIST assumes no responsibility whatsoever for its use by other parties, and makes no guarantees, expressed or implied, about its quality, reliability, or any other characteristic.
We would appreciate acknowledgement if the software is used.
NIST ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" CONDITION AND DISCLAIM ANY LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
| Field Summary | |
private boolean |
debug
Indicates if debug information should be printed. |
private java.text.DecimalFormat |
fm
Specifies the format for the time. |
private long |
frequency
The frequency of the network. |
private int |
hostcode
The code for the local host. |
private double |
intervalSec
The interval between to samples (in seconds). |
private long |
intervalTick
The interval between to samples (in tick). |
private Router |
localHost
The Router that contains the NIC. |
private NIC |
nic
The NIC to monitor. |
private long |
noBytes
The number of bytes sent. |
private int |
pkts
The number of packets in current interval. |
private droptailQueue |
queue
The queue that is monitored. |
private SSF.Util.Streams.StreamInterface |
streamInt
The stream (Recorder) to write monitor information. |
private int |
typeCode
The code for this type of monitor information. |
| Constructor Summary | |
DTQMonitor()
|
|
| Method Summary | |
void |
config(NIC ownerNIC,
com.renesys.raceway.DML.Configuration cfg)
Method called by NIC during model configuration phase if the attribute interface.monitor is present. |
void |
init()
Method called by NIC during model initialization phase Any configuration actions depending on other protocols should be done in the "init" phase. |
void |
receive(ProtocolMessage packet)
Method called by class implementing SSF.Net.packetQueue when a packet is enqueued. |
void |
sendRecord()
Send the information related to this lambda. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private Router localHost
private NIC nic
private droptailQueue queue
private SSF.Util.Streams.StreamInterface streamInt
private int hostcode
private int typeCode
private long intervalTick
private double intervalSec
private boolean debug
private long frequency
private int pkts
private long noBytes
private java.text.DecimalFormat fm
| Constructor Detail |
public DTQMonitor()
| Method Detail |
public void config(NIC ownerNIC,
com.renesys.raceway.DML.Configuration cfg)
throws com.renesys.raceway.DML.configException
interface [
...
monitor [
use "classname"
... any user-defined monitor attributes here
]
]
config in interface PacketQueueMonitorownerNIC - The NIC to monitorcfg - The DML configuration of the monitor
com.renesys.raceway.DML.configExceptionpublic void init()
init in interface PacketQueueMonitorpublic void receive(ProtocolMessage packet)
receive in interface PacketQueueMonitorpacket - The ProtocolMessage that entered the queuepublic void sendRecord()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||