Package com.tangosol.persistence
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
-
Nested Class Summary
Nested classes/interfaces inherited from class com.tangosol.persistence.AbstractPersistenceTools
AbstractPersistenceTools.StatsVisitor
-
Field Summary
Fields inherited from class com.tangosol.persistence.AbstractPersistenceTools
f_info
-
Constructor Summary
ConstructorDescriptionAbstractPersistenceSnapshotTools
(File dirSnapshot, com.oracle.coherence.persistence.OfflinePersistenceInfo info) Construct an abstract implementation for a given snapshot directory. -
Method Summary
Modifier and TypeMethodDescriptioncom.oracle.coherence.persistence.PersistenceStatistics
Get thePersistenceStatistics
for a local snapshot by using the implementation manager and visiting the store.protected void
validateStoreSealed
(com.oracle.coherence.persistence.PersistentStore<ReadBuffer> store) Validate the given store is sealed.protected void
validateStoreSealed
(String sCurrentGUID) Validate the given store within the GUID is sealed.Methods inherited from class com.tangosol.persistence.AbstractPersistenceTools
getPersistenceInfo, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.oracle.coherence.persistence.PersistenceTools
validate
-
Field Details
-
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 isinfo
- the information collected regarding the snapshot
-
-
Method Details
-
getStatistics
public com.oracle.coherence.persistence.PersistenceStatistics getStatistics()Get thePersistenceStatistics
for a local snapshot by using the implementation manager and visiting the store.- Returns:
- the PersistenceStatistics for a local snapshot
-
validateStoreSealed
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
-