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
,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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.tangosol.persistence.AbstractPersistenceTools
AbstractPersistenceTools.StatsVisitor
-
-
Field Summary
Fields Modifier and Type Field Description protected File
f_dirSnapshot
The snapshot directory.-
Fields inherited from class com.tangosol.persistence.AbstractPersistenceTools
f_info
-
-
Constructor Summary
Constructors Constructor Description AbstractPersistenceSnapshotTools(File dirSnapshot, com.oracle.datagrid.persistence.OfflinePersistenceInfo info)
Construct an abstract implementation for a given snapshot directory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.oracle.datagrid.persistence.PersistenceStatistics
getStatistics()
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
-
-
-
-
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 isinfo
- the information collected regarding the snapshot
-
-
Method Detail
-
getStatistics
public com.oracle.datagrid.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
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
-
-