|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.nist.antd.ssf.net.NICFailureModule
This Module implements the default failure and recovery notification mechanism of a NIC.
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
For debug purposes of this Module only (use in dml: debug true) |
private static boolean |
DEBUG
For debug purposes of all these MODULES (use in dml: DEBUG true). |
private double |
linkPropDelay
The propagation delay of a link failure/recovery to the signaling protocol. |
private java.util.Vector |
messages
This vector contains the messages for this process. |
private _NIC |
nic
The NIC this module is assigned to. |
| Fields inherited from interface gov.nist.antd.ssf.FailureModule |
DML_SECTION_NAME |
| Constructor Summary | |
NICFailureModule()
|
|
| Method Summary | |
void |
assign(NIC nic)
Assign the module to the passed nic. |
void |
config(com.renesys.raceway.DML.Configuration cfg)
Configures the failure module. |
private void |
debug(java.lang.String message)
Generates the debug output. |
double |
getLinkPropDelay()
Returns the propagation delay of link failures. |
boolean |
isDebug()
Return if the DefaultFailureModule is in debug mode |
protected void |
linkFailure(_link link)
This method deals with a link failure. |
protected void |
linkRecovery(_link link)
This method deals with a link recovery. |
protected void |
nicFailure(_NIC oppositeNIC)
This method deals with a NIC / Host failure. |
protected void |
nicRecovery(_NIC oppositeNIC)
This method deals with a NIC / Host recovery. |
EventMessage[] |
processFailure(FailureInformation component)
This method processes the failure notification of the passed object. |
EventMessage[] |
processRecovery(FailureInformation component)
This method processes the failure recovery notification of the passed object. |
void |
setLinkPropDelay(double seconds)
Set the propagation delay for link failures and recovery in seconds. |
java.lang.String |
toDML()
This method generates the DML representation of this class. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static boolean DEBUG
private boolean debug
private double linkPropDelay
private _NIC nic
private java.util.Vector messages
| Constructor Detail |
public NICFailureModule()
| Method Detail |
private void debug(java.lang.String message)
message - The message that has to be printed.
public void assign(NIC nic)
throws IllegalAssignmentException
assign in interface FailureModulenic - The NIC the implemented module is assigned to.
java.lang.IllegalAccessException - if the NIC is already set or the
passed instance is not from the type
_NIC.
IllegalAssignmentException - if the NIC is already set.
public void config(com.renesys.raceway.DML.Configuration cfg)
throws com.renesys.raceway.DML.configException
config in interface FailureModulecfg - The configuration instance.
com.renesys.raceway.DML.configExceptionpublic void setLinkPropDelay(double seconds)
seconds - the propagation delay in seconds.public double getLinkPropDelay()
public boolean isDebug()
public EventMessage[] processRecovery(FailureInformation component)
processRecovery in interface FailureModulecomponent - the component whose failure attribute was set to true.
public EventMessage[] processFailure(FailureInformation component)
processFailure in interface FailureModulecomponent - the component whose failure attribute was set to false.
public java.lang.String toDML()
toDML in interface DMLDumpprotected void nicFailure(_NIC oppositeNIC)
oppositeNIC - the affected _NICprotected void nicRecovery(_NIC oppositeNIC)
oppositeNIC - the recovered _NICprotected void linkFailure(_link link)
link - the affected _linkprotected void linkRecovery(_link link)
link - the recovered optical link
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||