R
- the raw value typepublic static class NullImplementation.NullPersistenceEnvironment<R> extends Object implements com.oracle.datagrid.persistence.PersistenceEnvironment<R>
PersistenceEnvironment
that does nothing.Modifier and Type | Field and Description |
---|---|
static NullImplementation.NullPersistenceEnvironment |
INSTANCE
Singleton instance of a NullPersistenceEnvironment.
|
Constructor and Description |
---|
NullPersistenceEnvironment() |
Modifier and Type | Method and Description |
---|---|
com.oracle.datagrid.persistence.PersistenceManager<R> |
createSnapshot(String sSnapshot, com.oracle.datagrid.persistence.PersistenceManager<R> manager)
Create a PersistenceManager used to manage the snapshot with the specified identifier.
|
String[] |
listSnapshots()
Return the identifiers of the snapshots known to this environment.
|
com.oracle.datagrid.persistence.PersistenceManager<R> |
openActive()
Open and return the singleton active PersistenceManager.
|
com.oracle.datagrid.persistence.PersistenceManager<R> |
openSnapshot(String sSnapshot)
Open a PersistenceManager used to access the snapshot with the specified identifier.
|
void |
release()
Release all resources held by this environment.
|
boolean |
removeSnapshot(String sSnapshot)
Remove the persistent artifacts associated with the snapshot with the specified identifier.
|
public static final NullImplementation.NullPersistenceEnvironment INSTANCE
public com.oracle.datagrid.persistence.PersistenceManager<R> openActive()
openActive
in interface com.oracle.datagrid.persistence.PersistenceEnvironment<R>
public com.oracle.datagrid.persistence.PersistenceManager<R> openSnapshot(String sSnapshot)
openSnapshot
in interface com.oracle.datagrid.persistence.PersistenceEnvironment<R>
sSnapshot
- the snapshot identifierpublic com.oracle.datagrid.persistence.PersistenceManager<R> createSnapshot(String sSnapshot, com.oracle.datagrid.persistence.PersistenceManager<R> manager)
createSnapshot
in interface com.oracle.datagrid.persistence.PersistenceEnvironment<R>
sSnapshot
- the snapshot identifiermanager
- the optional PersistenceManager to create a snapshot of; if null, an empty snapshot will be createdpublic boolean removeSnapshot(String sSnapshot)
removeSnapshot
in interface com.oracle.datagrid.persistence.PersistenceEnvironment<R>
sSnapshot
- the snapshot identifierpublic String[] listSnapshots()
listSnapshots
in interface com.oracle.datagrid.persistence.PersistenceEnvironment<R>
public void release()
release
in interface com.oracle.datagrid.persistence.PersistenceEnvironment<R>