Class DirectPersistencyRecoveryHelper
java.lang.Object
com.gigaspaces.internal.server.space.recovery.direct_persistency.DirectPersistencyRecoveryHelper
- All Implemented Interfaces:
ISpaceModeListener,IStorageConsistency,Remote,EventListener
public class DirectPersistencyRecoveryHelper
extends Object
implements IStorageConsistency, ISpaceModeListener
helper functions in order to maintain direct-persistency recovery consistency
- Since:
- 10.1
- Author:
- yechiel
-
Constructor Summary
ConstructorsConstructorDescriptionDirectPersistencyRecoveryHelper(SpaceImpl spaceImpl, org.slf4j.Logger logger) -
Method Summary
Modifier and TypeMethodDescriptionvoidafterSpaceModeChange(SpaceMode newMode) Called right after the space mode changes.voidvoidbeforeSpaceModeChange(SpaceMode newMode) Called right before the space mode changes.
Implementors usually use it to allow specific service initializations.voidhandleDirectPersistencyRecoverFailure(int retryCount) booleanbooleanbooleanvoidsetPendingBackupRecovery(boolean pendingRecovery) void
-
Constructor Details
-
DirectPersistencyRecoveryHelper
-
-
Method Details
-
getStorageState
- Specified by:
getStorageStatein interfaceIStorageConsistency
-
setStorageState
- Specified by:
setStorageStatein interfaceIStorageConsistency
-
isPerInstancePersistency
public boolean isPerInstancePersistency()- Specified by:
isPerInstancePersistencyin interfaceIStorageConsistency
-
beforePrimaryElectionProcess
public void beforePrimaryElectionProcess() -
isInconsistentStorage
public boolean isInconsistentStorage() -
isMeLastPrimary
public boolean isMeLastPrimary() -
beforeSpaceModeChange
Description copied from interface:ISpaceModeListenerCalled right before the space mode changes.
Implementors usually use it to allow specific service initializations.- Specified by:
beforeSpaceModeChangein interfaceISpaceModeListener- Parameters:
newMode- the new mode change before it's published.- Throws:
RemoteException- if an exception occurred during execution of a remote call.
-
afterSpaceModeChange
Description copied from interface:ISpaceModeListenerCalled right after the space mode changes.
Implementors usually use it to invoke any needed services.- Specified by:
afterSpaceModeChangein interfaceISpaceModeListener- Parameters:
newMode- the new mode change after it was published.- Throws:
RemoteException- if an exception occurred during execution of a remote call.
-
setPendingBackupRecovery
public void setPendingBackupRecovery(boolean pendingRecovery) -
handleDirectPersistencyRecoverFailure
public void handleDirectPersistencyRecoverFailure(int retryCount)
-