public class DirectPersistencyRecoveryHelper extends Object implements IStorageConsistency, ISpaceModeListener
| Constructor and Description |
|---|
DirectPersistencyRecoveryHelper(SpaceImpl spaceImpl,
org.slf4j.Logger logger) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterSpaceModeChange(SpaceMode newMode)
Called right after the space mode changes.
|
void |
beforePrimaryElectionProcess() |
void |
beforeSpaceModeChange(SpaceMode newMode)
Called right before the space mode changes.
Implementors usually use it to allow specific service initializations. |
StorageConsistencyModes |
getStorageState() |
void |
handleDirectPersistencyRecoverFailure(int retryCount) |
boolean |
isInconsistentStorage() |
boolean |
isMeLastPrimary() |
boolean |
isPerInstancePersistency() |
void |
setPendingBackupRecovery(boolean pendingRecovery) |
void |
setStorageState(StorageConsistencyModes s) |
public DirectPersistencyRecoveryHelper(SpaceImpl spaceImpl, org.slf4j.Logger logger)
public StorageConsistencyModes getStorageState()
getStorageState in interface IStorageConsistencypublic void setStorageState(StorageConsistencyModes s)
setStorageState in interface IStorageConsistencypublic boolean isPerInstancePersistency()
isPerInstancePersistency in interface IStorageConsistencypublic void beforePrimaryElectionProcess()
public boolean isInconsistentStorage()
public boolean isMeLastPrimary()
public void beforeSpaceModeChange(SpaceMode newMode) throws RemoteException
ISpaceModeListenerbeforeSpaceModeChange in interface ISpaceModeListenernewMode - the new mode change before it's published.RemoteException - if an exception occurred during execution of a remote call.public void afterSpaceModeChange(SpaceMode newMode) throws RemoteException
ISpaceModeListenerafterSpaceModeChange in interface ISpaceModeListenernewMode - the new mode change after it was published.RemoteException - if an exception occurred during execution of a remote call.public void setPendingBackupRecovery(boolean pendingRecovery)
public void handleDirectPersistencyRecoverFailure(int retryCount)
Copyright © GigaSpaces.