|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.nist.antd.optical.ONICFailureModule
This Module implements the default failure and recovery notification mechanism of an ONIC.
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 boolean |
detectLambaFailure
Indicated if lambda failure detection is enabled. |
private double |
fiberPropDelay
The propagation delay of a fiber failure/recovery to the signaling protocol. |
private double |
lambdaPropDelay
The propagation delay of a lambda failure/recovery to the signaling protocol. |
private java.util.Vector |
messages
This vector contains the messages for this process. |
private ONIC |
onic
The ONIC this module is assigned to. |
| Fields inherited from interface gov.nist.antd.ssf.FailureModule |
DML_SECTION_NAME |
| Constructor Summary | |
ONICFailureModule()
|
|
| Method Summary | |
void |
assign(NIC onic)
Assign the module to the passed onic. |
void |
config(com.renesys.raceway.DML.Configuration cfg)
Configures the failure module. |
private void |
debug(java.lang.String message)
Generates the debug output. |
protected void |
fiberFailure(Fiber fiber)
This method deals with a fiber failure. |
protected void |
fiberRecovery(Fiber fiber)
This method deals with a fiber recovery. |
double |
getFiberPropDelay()
Returns the propagation delay of fiber failures. |
double |
getLambdaPropDelay()
Returns the propagation delay of lambda failures. |
boolean |
isDebug()
Return if the DefaultFailureModule is in debug mode |
boolean |
isDetectLambdaFailure()
Returns the lambda detection value. |
private boolean |
isOneAlive(FailureInformation[] fi)
Checks if at least one component is still alive. |
protected void |
lambdaFailure(Lambda lambda)
This method deals with a lambda failure. |
protected void |
lambdaRecovery(Lambda lambda)
This method deals with a lambda recovery. |
protected void |
linkFailure(OpticalLink link)
This method deals with a link failure. |
protected void |
linkRecovery(OpticalLink link)
This method deals with a link recovery. |
protected void |
onicFailure(ONIC oppositeONIC)
This method deals with a ONIC / Host failure. |
protected void |
onicRecovery(ONIC oppositeONIC)
This method deals with a ONIC / 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 |
setDetectLambdaFailure(boolean newValue)
Set the capability of failure detetion. |
void |
setFiberPropDelay(double seconds)
Set the propagation delay for fiber failures and recovery in seconds. |
void |
setLambdaPropDelay(double seconds)
Set the propagation delay for lambda 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 boolean detectLambaFailure
private double lambdaPropDelay
private double fiberPropDelay
private ONIC onic
private java.util.Vector messages
| Constructor Detail |
public ONICFailureModule()
| Method Detail |
private void debug(java.lang.String message)
message - The message that has to be printed.
public void assign(NIC onic)
throws IllegalAssignmentException
assign in interface FailureModuleonic - The ONIC the implemented module is assigned to.
java.lang.IllegalAccessException - if the ONIC is already set or the
passed instance is from the type
gov.nist.antd.optical.ONIC.
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 setDetectLambdaFailure(boolean newValue)
newValue - detect individual lambda failures.public boolean isDetectLambdaFailure()
public void setLambdaPropDelay(double seconds)
seconds - the propagation delay in seconds.public void setFiberPropDelay(double seconds)
seconds - the propagation delay in seconds.public double getLambdaPropDelay()
public double getFiberPropDelay()
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)
Example:
The last Lambda in a fiber fails. The result is a logical
failure (inDepthFailure) of the Fiber.
processFailure in interface FailureModulecomponent - the component whose failure attribute was set to false.
public java.lang.String toDML()
toDML in interface DMLDumpprivate boolean isOneAlive(FailureInformation[] fi)
fi - The failure information component.
protected void onicFailure(ONIC oppositeONIC)
oppositeONIC - the affected ONICprotected void onicRecovery(ONIC oppositeONIC)
oppositeONIC - the recovered onicprotected void linkFailure(OpticalLink link)
link - the affected OpticalLinkprotected void linkRecovery(OpticalLink link)
link - the recovered optical linkprotected void fiberFailure(Fiber fiber)
fiber - the fiber that has to be checkedprotected void fiberRecovery(Fiber fiber)
fiber - the recovered fiberprotected void lambdaFailure(Lambda lambda)
lambda - the affected Lambdaprotected void lambdaRecovery(Lambda lambda)
lambda - the recovered lambda
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||