|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--SSF.OS.ProtocolSession
|
+--SSF.Net.NIC
|
+--SSF.Net._NIC
This class contains modificatrion that has to be moved later in the NIC.
this class is used for compatibility purposes.
The _NIC has the following dml setup attributes:
use FailureModule
useDefault FailureModule for all _NICs that do not have a specific failure
module installed.
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 |
_NIC.NotificationTimer
This class is used to detect the lol event at the simulation time it occurs. |
| Field Summary | |
private Callback |
callbackModule
The module that implements the failure handling. |
private boolean |
debug
For debug purposes of this NIC only (use in dml: debug true) |
protected static boolean |
DEBUG
For debug purposes of all NICS (use in dml: DEBUG true). |
protected java.lang.String |
defaultFailureModuleName
No default failure module available for this class. |
private boolean |
failure
If the _NIC has a failure. |
private FailureModule |
failureModule
The failure processing module. |
protected boolean |
inConfiguration
Indicator if the class is in the configuration mode (true). |
double |
inPacketBytes
Number of already received bytes. |
private int |
inPacketCount
Number of already received packages. |
private InputMonitor |
inputMonitor
Input packet monitor. |
private MPLSInterfaceInfo |
interfaceInfo
The interface information. |
private boolean |
isLSRInterface
|
private boolean |
messageMonitor
Indicates if the message monitoring is enabled or not. |
private boolean |
multicast
Indicates if the interfacetype is a tunnel. |
double |
outPacketBytes
|
int |
outPacketCount
|
double |
prevInPacketBytes
Size of received bytes since the lase request. |
private int |
prevInPacketCount
of received packets since the lase request. |
double |
prevOutPacketBytes
|
int |
prevOutPacketCount
|
private boolean |
tunnel
Indicates if the interfacetype is a tunnel. |
| Fields inherited from class SSF.Net.NIC |
attachedProtocol, BINARY_TCPDUMP, BIT_RATE, buffersize, CHECK_FOR_SYNS, COUNT_FLAKY_DROPS, DEFAULT_BIT_RATE, DEFAULT_BUFFERSIZE, DEFAULT_DELAY, DEFAULT_FLAKINESS, DELAY, dumpTo, FLAKINESS, flakyDrops, flakyGen, FREQUENCY, ID, ifaceUp, IN, ipAddr, isVirtual, link_hw, maskBits, OUT, queueManager, queueMonitor, receiver |
| Fields inherited from class SSF.OS.ProtocolSession |
name, use |
| Constructor Summary | |
protected |
_NIC(ProtocolGraph g,
int use_id)
Constructs the _NIC. |
| Method Summary | |
protected void |
checkLinkStatus(FailureInformation component)
This method will be called to detect a failure or a recovery of components. |
void |
config(com.renesys.raceway.DML.Configuration cfg)
Configure the ONIC. |
void |
configFailureModule(com.renesys.raceway.DML.Configuration cfg)
Configures the failure module. |
private void |
createInputMonitor(com.renesys.raceway.DML.Configuration config)
Instantiate and configure an input monitor |
protected void |
debug(java.lang.String message)
Generates the debug output. |
double |
getBandwidth()
|
FailureModule |
getFailureModule()
Returns the internal failure module. |
double |
getInPacketBytes()
Returns the number of bytes since the last request of received bytes. |
int |
getInPacketCount()
Returns the number of packets since the last request of received packets. |
MPLSInterfaceInfo |
getInterfaceInfo()
Returns the Interface information. |
int |
getInterfaceType()
Returns the type of interface. |
double |
getOutPacketBytes()
|
int |
getOutPacketCount()
|
tcpDump |
getTcpDump()
Return the TcpDump or null |
void |
init()
Overwrite the init to initialise the input monitor |
boolean |
isDebug()
Return if the ONIC is in debug mode |
boolean |
isFailure()
Returns the failure status of the ONIC. |
static boolean |
isGlobalDebug()
This static method returns the global debug state of the ONICs. |
boolean |
isIfaceUp()
Returns true if the interface is up. |
boolean |
isLSRInterface()
Returns if the interface is a LSR interface. |
boolean |
isMessageMonitor()
Returns true if this interface provides message monitoring. |
protected void |
prepareTimer(EventMessage msg,
double afterDelay)
This method determines the affected lambdas of a los of light or its recovery and creates a timer to handle the event. |
protected boolean |
processOutMessage(ProtocolMessage message)
This method process and monitor output messaged. |
protected void |
processPacketEvent(PacketEvent pevt)
This method is calles by the package receiving process. |
boolean |
push(ProtocolMessage message,
ProtocolSession fromSession)
Process a ProtocolMessage pushed down from above, by handing it off to the queueManager to be written out to the network. |
void |
registerForFailure(Callback newCallbackModule)
Registers for failures in the link. |
protected void |
sendMessage(short messageType,
java.lang.Object message)
Checks if the Eventhandler has receivers and this object is not in the configuration mode, this message will send the specified event. |
void |
setFailure(boolean newValue)
Set and reset the failure value. |
void |
setFailureModule(java.lang.String className)
Set the failure module fopr this ONIC. |
void |
setInterfaceInfo(MPLSInterfaceInfo newInterfaceInfo)
Set the Interface information. |
void |
setInterfaceType(int newType)
Set the interface type. |
void |
setLSRInterface(boolean isLSR)
Specify if the interface is a LSR interface or not. |
void |
setMessageMonitor(boolean enable)
Set the message monitoring for true or false. |
| Methods inherited from class SSF.Net.NIC |
bitrate, close, delay, down, drop_flaky, drop, frequency, interfaceIdentifier, ipAddrString, isUp, open, toString, up |
| Methods inherited from class SSF.OS.ProtocolSession |
closed, debugIdentifier, inGraph, opened, pushAfterDelay, pushAfterDelayFailed, setGraph, version |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected static boolean DEBUG
private boolean messageMonitor
private boolean debug
private boolean failure
private int inPacketCount
private int prevInPacketCount
public double inPacketBytes
public double prevInPacketBytes
public int outPacketCount
public int prevOutPacketCount
public double outPacketBytes
public double prevOutPacketBytes
private MPLSInterfaceInfo interfaceInfo
private boolean tunnel
private boolean multicast
private boolean isLSRInterface
private Callback callbackModule
private FailureModule failureModule
protected java.lang.String defaultFailureModuleName
private InputMonitor inputMonitor
protected boolean inConfiguration
| Constructor Detail |
protected _NIC(ProtocolGraph g,
int use_id)
throws ProtocolException
g - The protocol graph attached to this ONIC.use_id - The id to use for this ONIC.
ProtocolException| Method Detail |
public static final boolean isGlobalDebug()
protected void debug(java.lang.String message)
message - The message that has to be printed.public boolean isDebug()
protected void processPacketEvent(PacketEvent pevt)
processPacketEvent in class NICpevt - the package event.protected boolean processOutMessage(ProtocolMessage message)
message - The ProtocolMessage.
protected void sendMessage(short messageType,
java.lang.Object message)
messageType - the type of the message. The types are specified in the
class gov.nist.antd.optical.event.monitor.EventHandler.message - The message that has to be send.
public void config(com.renesys.raceway.DML.Configuration cfg)
throws com.renesys.raceway.DML.configException
config in interface com.renesys.raceway.DML.Configurableconfig in class NICcfg - The configuration object.
com.renesys.raceway.DML.configException
public void configFailureModule(com.renesys.raceway.DML.Configuration cfg)
throws com.renesys.raceway.DML.configException
cfg - the configuration object of the _NIC.
com.renesys.raceway.DML.configException - when the configuration of the failure module
fails.
private void createInputMonitor(com.renesys.raceway.DML.Configuration config)
throws com.renesys.raceway.DML.configException
config - The DML configuration of the monitor
com.renesys.raceway.DML.configExceptionpublic void registerForFailure(Callback newCallbackModule)
newCallbackModule - the module that has to be registered.
protected void prepareTimer(EventMessage msg,
double afterDelay)
msg - The message that has to be propagated.afterDelay - the delay.
public void init()
throws ProtocolException
init in class NICProtocolException - when the init failedprotected void checkLinkStatus(FailureInformation component)
component - The component that requested the checking of light status
public void setFailureModule(java.lang.String className)
throws com.renesys.raceway.DML.configException
className - The name of the failure module class.
com.renesys.raceway.DML.configException - an configException occured.public FailureModule getFailureModule()
public boolean isFailure()
isFailure in interface FailureInformationpublic void setFailure(boolean newValue)
newValue - the new failure value.public int getInPacketCount()
public double getInPacketBytes()
public int getOutPacketCount()
public double getOutPacketBytes()
public double getBandwidth()
public boolean isIfaceUp()
public void setInterfaceInfo(MPLSInterfaceInfo newInterfaceInfo)
newInterfaceInfo - the interface information.public MPLSInterfaceInfo getInterfaceInfo()
public void setInterfaceType(int newType)
public int getInterfaceType()
public void setLSRInterface(boolean isLSR)
isLSR - specifies if the interface is a LSR interface or not.public boolean isLSRInterface()
public boolean push(ProtocolMessage message,
ProtocolSession fromSession)
push in class NICmessage - The protocol message (header) that has to be pushed.fromSession - The session that initiated the push call.
public tcpDump getTcpDump()
public void setMessageMonitor(boolean enable)
public boolean isMessageMonitor()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||