public class DirectorySnapshotArchiver extends AbstractSnapshotArchiver
SnapshotArchiver that uses a shared directory to store archived snapshots.f_sClusterName, f_sServiceName, m_cMillisLastStart, m_cMillisMax, m_cMillisMin, m_cMillisTotal| Constructor and Description |
|---|
DirectorySnapshotArchiver(String sClusterName, String sServiceName, File fileDirectory)
Constructs a new DirectorySnapshotArchiver which uses a shared directory available from all members to store archived snapshots.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
archiveInternal(Snapshot snapshot, com.oracle.datagrid.persistence.PersistenceManager<ReadBuffer> mgr)
Internal implementation to Archive the specified snapshot.
|
protected Properties |
getMetadata(String sSnapshot)
Internal implementation to retrieve the metadata stored for the archived snapshot.
|
File |
getSharedDirectoryPath()
The shared directory to write archives to.
|
protected String[] |
listInternal()
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 boolean |
removeInternal(String sSnapshot)
Internal implementation to remove the specified archived snapshot.
|
protected void |
retrieveInternal(Snapshot snapshot, com.oracle.datagrid.persistence.PersistenceManager<ReadBuffer> mgr)
Internal implementation to retrieve the specified snapshot.
|
String |
toString() |
archive, createTempEnvironment, displayStatistics, get, getPersistenceTools, hasArchivedSnapshot, hasLocalSnapshot, instantiatePersistenceTools, list, recordEndTime, recordStartTime, remove, resetStatistics, retrieve, writeMetadatapublic DirectorySnapshotArchiver(String sClusterName, String sServiceName, File fileDirectory) throws IOException
sClusterName - the name of the clustersServiceName - the service namefileDirectory - a shared directory available from all membersIOException - if errors creating directoriesprotected String[] listInternal()
AbstractSnapshotArchiverlistInternal in class AbstractSnapshotArchiverprotected void archiveInternal(Snapshot snapshot, com.oracle.datagrid.persistence.PersistenceManager<ReadBuffer> mgr)
AbstractSnapshotArchiverarchiveInternal in class AbstractSnapshotArchiversnapshot - the snapshot to archivemgr - the PersistenceManager used to read the stores fromprotected void retrieveInternal(Snapshot snapshot, com.oracle.datagrid.persistence.PersistenceManager<ReadBuffer> mgr)
AbstractSnapshotArchiverretrieveInternal in class AbstractSnapshotArchiversnapshot - the snapshot to retrievemgr - the PersistenceManager used to write the stores toprotected boolean removeInternal(String sSnapshot)
AbstractSnapshotArchiverremoveInternal in class AbstractSnapshotArchiversSnapshot - the snapshot name to removeprotected String[] listStoresInternal(String sSnapshot)
AbstractSnapshotArchiverlistStoresInternal in class AbstractSnapshotArchiversSnapshot - the snapshot name to list stores forString[] of store namesprotected Properties getMetadata(String sSnapshot) throws IOException
AbstractSnapshotArchivergetMetadata in class AbstractSnapshotArchiversSnapshot - the snapshot name to retrieve metadataIOException - if any I/O related problemspublic String toString()
AbstractSnapshotArchivertoString in class AbstractSnapshotArchiverpublic File getSharedDirectoryPath()