|
Real-Time Java AOCS Framework v1.0 API Specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--RtjAocsFramework.BasicObjects.RootObject
|
+--RtjAocsFramework.BasicObjects.AocsObject
|
+--RtjAocsFramework.FailureRecovery.RecoveryAction
This is the base class for recovery actions. In general, the AOCS software can react to a failure report (as encapsulated in a failure event) by performing one or more failure recovery actions. A failure recovery actions therefore represents a local response to a failure. The response is said to be local because it is based on a single failure report. A global response would take account of sets of failure reports. Global responses to failures are covered by the concept of recovery strategy.
This class is the base class for all recovery actions. By itself, it does not define any concrete action. Concrete recovery actions are defined by subclasses of RecoveryAction.
The key method in this class is doRecovery that causes the recovery action to be performed. The implementation of method doRecovery encapsulates an application-specific response to failures. It therefore represents a framework hot-spot (recovery action hot-spot).
The same failure event may require the execution of several failure recovery actions. For this purpose, recovery actions can be chained together. Method setNextAction() can be used to build up a chain of recovery actions. Calls to doRecovery() are automatically propagated to all recovery action in a chain.
Recovery actions can be enabled or disabled and the enable status can be changed dynamically.
Copyright: see the Copyright Notice.
FailureEvent,
FailureEventRepository,
RecoveryStrategy| Field Summary |
| Fields inherited from interface RtjAocsFramework.TelemetryManagement.Telemeterable |
DEBUG_TM, LONG_TM, NORMAL_TM, NTMFORMATS, SHORT_TM |
| Constructor Summary | |
RecoveryAction()
|
|
| Method Summary | |
void |
doRecovery()
Calling this method will cause the recovery action to be executed. |
RecoveryAction |
getNextRecoveryAction()
Return the next recovery action. |
int |
getTelemetryImageLength()
Return the length (in bits) of the telemetry image of the object. |
boolean |
isEnabled()
Return true if the recovery action is enabled, otherwise false. |
void |
reset()
Set the state of the recovery action to 'enabled'. |
void |
resetConfiguration()
Unload the next recovery action in the chain. |
void |
setEnabled(boolean enabledStatus)
Recovery actions can be dynamically enabled and disabled. |
void |
setNextRecoveryAction(RecoveryAction r)
Recovery actions can be linked in chains. |
void |
writeToTelemetry(TelemetryStream tmStream)
Direct the object to write its own state to the telemetry stream. |
| Methods inherited from class RtjAocsFramework.BasicObjects.RootObject |
getClassId, getInstanceId, setClassId |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RecoveryAction()
| Method Detail |
public void doRecovery()
public void resetConfiguration()
resetConfiguration in interface ConfigurableresetConfiguration in class AocsObjectpublic void reset()
reset in interface Resettablereset in class AocsObjectpublic void setNextRecoveryAction(RecoveryAction r)
public RecoveryAction getNextRecoveryAction()
public void setEnabled(boolean enabledStatus)
public boolean isEnabled()
public void writeToTelemetry(TelemetryStream tmStream)
Telemeterable
writeToTelemetry in interface TelemeterablewriteToTelemetry in class AocsObjectpublic int getTelemetryImageLength()
Telemeterable
getTelemetryImageLength in interface TelemeterablegetTelemetryImageLength in class AocsObject
|
Real-Time Java AOCS Framework v1.0 API Specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||