Class AbstractPersistenceManager.AbstractPersistenceSnapshotTools

java.lang.Object
com.tangosol.persistence.AbstractPersistenceTools
com.tangosol.persistence.AbstractPersistenceManager.AbstractPersistenceSnapshotTools
All Implemented Interfaces:
com.oracle.coherence.persistence.PersistenceTools
Enclosing class:
AbstractPersistenceManager<PS extends AbstractPersistenceManager.AbstractPersistentStore>

protected abstract class AbstractPersistenceManager.AbstractPersistenceSnapshotTools extends AbstractPersistenceTools
Abstract implementation of PersistenceTools which can be extended to support local snapshot operations for specific implementations.
Since:
12.2.1
Author:
tam/hr 2014.11.21
  • Field Details

    • f_dirSnapshot

      protected final File f_dirSnapshot
      The snapshot directory.
  • Constructor Details

    • AbstractPersistenceSnapshotTools

      public AbstractPersistenceSnapshotTools(File dirSnapshot, com.oracle.coherence.persistence.OfflinePersistenceInfo info)
      Construct an abstract implementation for a given snapshot directory.
      Parameters:
      dirSnapshot - the directory where the snapshot is
      info - the information collected regarding the snapshot
  • Method Details

    • getStatistics

      public com.oracle.coherence.persistence.PersistenceStatistics getStatistics()
      Get the PersistenceStatistics for a local snapshot by using the implementation manager and visiting the store.
      Returns:
      the PersistenceStatistics for a local snapshot
    • validateStoreSealed

      protected void validateStoreSealed(String sCurrentGUID)
      Validate the given store within the GUID is sealed. Note: The store is opened and closed during this method call.
      Parameters:
      sCurrentGUID - the GUID to open store from
      Throws:
      com.oracle.coherence.persistence.PersistenceException - if the store is not sealed
    • validateStoreSealed

      protected void validateStoreSealed(com.oracle.coherence.persistence.PersistentStore<ReadBuffer> store)
      Validate the given store is sealed.
      Parameters:
      store - the persistent store to validate
      Throws:
      com.oracle.coherence.persistence.PersistenceException - if the store is not sealed