|
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.RecoveryStrategy
|
+--RtjAocsFramework.FailureRecovery.SystemResetOnTooManyFailures
This recovery startegy will cause a software reset to be executed if the number of failure reports created since the last activation (or since the component was reset or initialized) is higher than a settable threshold. The software reset is performed by calling the software reset service offered by the system manager.
Copyright: see the Copyright Notice.
SystemManager| Field Summary |
| Fields inherited from interface RtjAocsFramework.TelemetryManagement.Telemeterable |
DEBUG_TM, LONG_TM, NORMAL_TM, NTMFORMATS, SHORT_TM |
| Constructor Summary | |
SystemResetOnTooManyFailures()
This component should not be used before it is configured by setting the the failure event threshold. |
|
| Method Summary | |
void |
doRecovery()
Warning: this implementation will fail when the failure event counter in the failure event repository wraps around. |
int |
getFailureEventThreshold()
|
int |
getTelemetryImageLength()
Return the length (in bits) of the telemetry image of the object. |
boolean |
isConfigured()
Return false if some configuration data are missing. |
void |
reset()
Set the state of the recovery strategy to 'enabled'. |
void |
resetConfiguration()
Set the failure event threshold to zero. |
void |
setFailureEventRepository(FailureEventRepository r)
This is an initialization method to load the failure event repository upon which the recovery strategy operates. |
void |
setFailureEventThreshold(int t)
Set the failure event threshold. |
void |
writeToTelemetry(TelemetryStream tmStream)
Direct the object to write its own state to the telemetry stream. |
| Methods inherited from class RtjAocsFramework.FailureRecovery.RecoveryStrategy |
addRecoveryListener, fireModeEvent, getFailureEventRepository, getNextRecoveryStrategy, isEnabled, removeRecoveryListener, setEnabled, setMaxNumberOfRecoveryListeners, setNextRecoveryStrategy |
| 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 SystemResetOnTooManyFailures()
| Method Detail |
public void doRecovery()
doRecovery in class RecoveryStrategyRecoveryStrategy.doRecovery()public void resetConfiguration()
resetConfiguration in interface ConfigurableresetConfiguration in class RecoveryStrategypublic boolean isConfigured()
ConfigurableTypically, a false value indicates that a plug-in component is missing or that the object has not been initialized. This is a negative check only: a return value of true cannot guarantee that the object is correctly configured.
Calls to resetConfiguration on an object A are normally not propagated objects of type AocsObject that are contained or otherwise aggregated to A. The rationale for this policy is that all objects of type AocsObject implement interface configurable and therefore their configuration status should be checked externally (probably through the configuration check service of the system manager).
isConfigured in interface ConfigurableisConfigured in class RecoveryStrategypublic void reset()
RecoveryStrategy
reset in interface Resettablereset in class RecoveryStrategypublic void setFailureEventRepository(FailureEventRepository r)
setFailureEventRepository in class RecoveryStrategypublic void setFailureEventThreshold(int t)
public int getFailureEventThreshold()
setFailureEventThreshold(int)public void writeToTelemetry(TelemetryStream tmStream)
Telemeterable
writeToTelemetry in interface TelemeterablewriteToTelemetry in class RecoveryStrategypublic int getTelemetryImageLength()
Telemeterable
getTelemetryImageLength in interface TelemeterablegetTelemetryImageLength in class RecoveryStrategy
|
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 | ||||||||||