public interface IPersistenceService
Modifier and Type | Method and Description |
---|---|
IFuture<java.lang.Void> |
addIdleHook(IIdleHook hook)
Set the idle hook to be called when a component becomes idle.
|
IFuture<java.lang.Void> |
restore(java.util.Collection<IPersistInfo> pis)
Restore components from a snapshot.
|
IFuture<java.lang.Void> |
restore(IPersistInfo pi)
Restore a component from a snapshot.
|
IFuture<java.util.Collection<IPersistInfo>> |
snapshot(java.util.Collection<IComponentIdentifier> cids,
boolean recursive)
Get the component states.
|
IFuture<IPersistInfo> |
snapshot(IComponentIdentifier cid)
Get the component state.
|
IFuture<java.lang.Void> |
swapFromStorage(IPersistInfo pi)
Transparently restore the component state of a previously
swapped component.
|
IFuture<IPersistInfo> |
swapToStorage(IComponentIdentifier cid)
Fetch the component state and transparently remove it from memory.
|
IFuture<IPersistInfo> snapshot(IComponentIdentifier cid)
cid
- The component to be saved.recursive
- True, if subcomponents should be saved as well.IFuture<java.util.Collection<IPersistInfo>> snapshot(java.util.Collection<IComponentIdentifier> cids, boolean recursive)
cids
- The components to be saved.recursive
- True, if subcomponents should be saved as well.IFuture<java.lang.Void> restore(IPersistInfo pi)
pi
- The component snapshot.IFuture<java.lang.Void> restore(java.util.Collection<IPersistInfo> pis)
pis
- The component snapshots.IFuture<IPersistInfo> swapToStorage(IComponentIdentifier cid)
cid
- The component identifier.IFuture<java.lang.Void> swapFromStorage(IPersistInfo pi)
pi
- The persist info.