Package com.tangosol.persistence
Class DirectorySnapshotArchiver
java.lang.Object
com.tangosol.persistence.AbstractSnapshotArchiver
com.tangosol.persistence.DirectorySnapshotArchiver
- All Implemented Interfaces:
- SnapshotArchiver
An implementation of a 
SnapshotArchiver that uses a shared directory
 to store archived snapshots.- Since:
- 12.2.1
- Author:
- tam 2014.08.19
- 
Field SummaryFields inherited from class com.tangosol.persistence.AbstractSnapshotArchiverf_sClusterName, f_sServiceName, m_cMillisLastStart, m_cMillisMax, m_cMillisMin, m_cMillisTotal
- 
Constructor SummaryConstructorsConstructorDescriptionDirectorySnapshotArchiver(String sClusterName, String sServiceName, File fileDirectory) Constructs a new DirectorySnapshotArchiver which uses a shared directory available from all members to store archived snapshots.
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidarchiveInternal(Snapshot snapshot, com.oracle.coherence.persistence.PersistenceManager<ReadBuffer> mgr) Internal implementation to Archive the specified snapshot.protected PropertiesgetMetadata(String sSnapshot) Internal implementation to retrieve the metadata stored for the archived snapshot.The shared directory to write archives to.protected String[]Internal implementation to return the identifiers of the archived snapshots known to this archiver.protected String[]listStoresInternal(String sSnapshot) List the stores for a given snapshot.protected booleanremoveInternal(String sSnapshot) Internal implementation to remove the specified archived snapshot.protected voidretrieveInternal(Snapshot snapshot, com.oracle.coherence.persistence.PersistenceManager<ReadBuffer> mgr) Internal implementation to retrieve the specified snapshot.toString()Methods inherited from class com.tangosol.persistence.AbstractSnapshotArchiverarchive, createTempEnvironment, displayStatistics, get, getPersistenceTools, hasArchivedSnapshot, hasLocalSnapshot, instantiatePersistenceTools, list, recordEndTime, recordStartTime, remove, resetStatistics, retrieve, writeMetadata
- 
Constructor Details- 
DirectorySnapshotArchiverpublic DirectorySnapshotArchiver(String sClusterName, String sServiceName, File fileDirectory) throws IOException Constructs a new DirectorySnapshotArchiver which uses a shared directory available from all members to store archived snapshots.- Parameters:
- sClusterName- the name of the cluster
- sServiceName- the service name
- fileDirectory- a shared directory available from all members
- Throws:
- IOException- if errors creating directories
 
 
- 
- 
Method Details- 
listInternalDescription copied from class:AbstractSnapshotArchiverInternal implementation to return the identifiers of the archived snapshots known to this archiver.- Specified by:
- listInternalin class- AbstractSnapshotArchiver
- Returns:
- a list of the known archived snapshot identifiers
 
- 
archiveInternalprotected void archiveInternal(Snapshot snapshot, com.oracle.coherence.persistence.PersistenceManager<ReadBuffer> mgr) Description copied from class:AbstractSnapshotArchiverInternal implementation to Archive the specified snapshot.- Specified by:
- archiveInternalin class- AbstractSnapshotArchiver
- Parameters:
- snapshot- the snapshot to archive
- mgr- the PersistenceManager used to read the stores from
 
- 
retrieveInternalprotected void retrieveInternal(Snapshot snapshot, com.oracle.coherence.persistence.PersistenceManager<ReadBuffer> mgr) Description copied from class:AbstractSnapshotArchiverInternal implementation to retrieve the specified snapshot.- Specified by:
- retrieveInternalin class- AbstractSnapshotArchiver
- Parameters:
- snapshot- the snapshot to retrieve
- mgr- the PersistenceManager used to write the stores to
 
- 
removeInternalDescription copied from class:AbstractSnapshotArchiverInternal implementation to remove the specified archived snapshot. (Called by JMX operation removeArchivedSnapshot)- Specified by:
- removeInternalin class- AbstractSnapshotArchiver
- Parameters:
- sSnapshot- the snapshot name to remove
- Returns:
- true if the snapshot was removed
 
- 
listStoresInternalDescription copied from class:AbstractSnapshotArchiverList the stores for a given snapshot.- Specified by:
- listStoresInternalin class- AbstractSnapshotArchiver
- Parameters:
- sSnapshot- the snapshot name to list stores for
- Returns:
- a String[] of store names
 
- 
getMetadataDescription copied from class:AbstractSnapshotArchiverInternal implementation to retrieve the metadata stored for the archived snapshot.- Specified by:
- getMetadatain class- AbstractSnapshotArchiver
- Parameters:
- sSnapshot- the snapshot name to retrieve metadata
- Returns:
- the metadata for the archived snapshot
- Throws:
- IOException- if any I/O related problems
 
- 
toStringDescription copied from class:AbstractSnapshotArchiver- Overrides:
- toStringin class- AbstractSnapshotArchiver
 
 
-