|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.nist.antd.optical.BasicQueueMonitor
Monitor for the BasicQueue. This class monitor each lambda.
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.
| Nested Class Summary | |
private class |
BasicQueueMonitor.LambdaInfo
This class contains the information related to a specific lambda |
| 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 OpNet |
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 ExtRouter |
localHost
The ExtRouter that contains the ONIC |
private ONIC |
onic
The ONIC to monitor |
private BasicQueue |
queue
The queue that is monitored |
private SSF.Util.Streams.StreamInterface |
streamInt
The stream (Recorder) to write monitor information |
private java.util.Hashtable |
table
Store the information for each lambda |
private int |
typeCode
The code for this type of monitor information |
| Constructor Summary | |
BasicQueueMonitor()
|
|
| Method Summary | |
void |
config(NIC ownerNIC,
com.renesys.raceway.DML.Configuration cfg)
Method called by ONIC during model configuration phase if the attribute interface.monitor is present. |
void |
init()
Method called by ONIC 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. |
private void |
sendRecord()
Send the information collected. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private ExtRouter localHost
private ONIC onic
private BasicQueue 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 java.util.Hashtable table
private java.text.DecimalFormat fm
| Constructor Detail |
public BasicQueueMonitor()
| 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 ONIC 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 queueprivate void sendRecord()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||