|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjgroup.arm.recovery.AbstractRecoveryStrategy
public abstract class AbstractRecoveryStrategy
This implements only the core initialization of a recovery strategy, including also handling for the RM recoveree replica.
Field Summary | |
---|---|
protected AppConfig |
app
The application associated with this recovery strategy instance |
protected DistributionScheme |
distScheme
The distribution scheme interface |
protected int |
missing
The current delta redundancy (the number of missing replicas) |
Constructor Summary | |
---|---|
AbstractRecoveryStrategy()
All recovery strategy implementations should implement a no-argument constructor. |
Method Summary | |
---|---|
protected int |
deltaRedundancy(AppConfig app)
Returns the number of replicas that needs to be recovered to maintain the minimal redundancy level specified. |
void |
initialize(DistributionScheme distScheme,
AppConfig app)
Initialize the recovery strategy for the given application. |
boolean |
needsRecovery()
Returns true if the associated application needs a recovery action, otherwise false is returned. |
boolean |
prepareRecovery()
Invoked to initialize the recovery strategy implementation for the provided application. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface jgroup.core.arm.RecoveryStrategy |
---|
handleFailure, relocateReplica, restartReplica |
Field Detail |
---|
protected DistributionScheme distScheme
protected AppConfig app
protected int missing
Constructor Detail |
---|
public AbstractRecoveryStrategy()
Method Detail |
---|
protected int deltaRedundancy(AppConfig app)
public void initialize(DistributionScheme distScheme, AppConfig app)
RecoveryStrategy
initialize
in interface RecoveryStrategy
public boolean needsRecovery()
RecoveryStrategy
needsRecovery
in interface RecoveryStrategy
public boolean prepareRecovery()
RecoveryStrategy
prepareRecovery
in interface RecoveryStrategy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |