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