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 Details

    • DirectPersistencyRecoveryHelper

      public DirectPersistencyRecoveryHelper(SpaceImpl spaceImpl, org.slf4j.Logger logger)
  • Method Details

    • getStorageState

      public StorageConsistencyModes getStorageState()
      Specified by:
      getStorageState in interface IStorageConsistency
    • setStorageState

      public void setStorageState(StorageConsistencyModes s)
      Specified by:
      setStorageState in interface IStorageConsistency
    • isPerInstancePersistency

      public boolean isPerInstancePersistency()
      Specified by:
      isPerInstancePersistency in interface IStorageConsistency
    • beforePrimaryElectionProcess

      public void beforePrimaryElectionProcess()
    • isInconsistentStorage

      public boolean isInconsistentStorage()
    • isMeLastPrimary

      public boolean isMeLastPrimary()
    • beforeSpaceModeChange

      public void beforeSpaceModeChange(SpaceMode newMode) throws RemoteException
      Description copied from interface: ISpaceModeListener
      Called right before the space mode changes.
      Implementors usually use it to allow specific service initializations.
      Specified by:
      beforeSpaceModeChange in interface ISpaceModeListener
      Parameters:
      newMode - the new mode change before it's published.
      Throws:
      RemoteException - if an exception occurred during execution of a remote call.
    • afterSpaceModeChange

      public void afterSpaceModeChange(SpaceMode newMode) throws RemoteException
      Description copied from interface: ISpaceModeListener
      Called right after the space mode changes.
      Implementors usually use it to invoke any needed services.
      Specified by:
      afterSpaceModeChange in interface ISpaceModeListener
      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)