Class AbstractPersistenceManager.AbstractPersistenceSnapshotTools

  • All Implemented Interfaces:
    com.oracle.coherence.persistence.PersistenceTools, com.oracle.datagrid.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 Detail

      • f_dirSnapshot

        protected final File f_dirSnapshot
        The snapshot directory.
    • Constructor Detail

      • AbstractPersistenceSnapshotTools

        public AbstractPersistenceSnapshotTools​(File dirSnapshot,
                                                com.oracle.datagrid.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 Detail

      • getStatistics

        public com.oracle.datagrid.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