public interface SnapshotArchiver
| Modifier and Type | Method and Description |
|---|---|
void |
archive(Snapshot snapshot, com.oracle.datagrid.persistence.PersistenceEnvironment<ReadBuffer> env)
Archive the specified snapshot.
|
Snapshot |
get(String sSnapshot)
Return a
Snapshot which represents the archived snapshot with the given identifier. |
com.oracle.datagrid.persistence.PersistenceTools |
getPersistenceTools(String sSnapshot)
Return an instance of
PersistenceTools allowing offline operations to be performed against the associated PersistenceManager and appropriate PersistentStore. |
String[] |
list()
Return the identifiers of the archived snapshots known to this archiver.
|
boolean |
remove(String sSnapshot)
Remove the archived snapshot with the specified identifier.
|
void |
retrieve(Snapshot snapshot, com.oracle.datagrid.persistence.PersistenceEnvironment<ReadBuffer> env)
Retrieve the specified archived snapshot.
|
String[] list()
Snapshot get(String sSnapshot)
Snapshot which represents the archived snapshot with the given identifier.sSnapshot - the identifier of the archived snapshotSnapshotIllegalArgumentException - if an archived snapshot with the given identifier does not existboolean remove(String sSnapshot)
sSnapshot - the identifier of the archived snapshotvoid archive(Snapshot snapshot, com.oracle.datagrid.persistence.PersistenceEnvironment<ReadBuffer> env)
snapshot - the snapshot to archiveenv - the PersistenceEnvironment used to read the snapshotcom.oracle.datagrid.persistence.PersistenceException - if an error occurred while reading the snapshotIllegalArgumentException - if a snapshot represented by the given Snapshot does not existvoid retrieve(Snapshot snapshot, com.oracle.datagrid.persistence.PersistenceEnvironment<ReadBuffer> env)
snapshot - the snapshot to retrieveenv - the PersistenceEnvironment used to write the snapshotcom.oracle.datagrid.persistence.PersistenceException - if an error occurred while writing the snapshotIllegalArgumentException - if an archived snapshot represented by the given Snapshot does not existcom.oracle.datagrid.persistence.PersistenceTools getPersistenceTools(String sSnapshot)
PersistenceTools allowing offline operations to be performed against the associated PersistenceManager and appropriate PersistentStore.sSnapshot - the snapshot to return tools for