springs.persistence
Class Persistence

java.lang.Object
  |
  +--springs.persistence.Persistence
Direct Known Subclasses:
Persistence_NoPersistenceImpl

public abstract class Persistence
extends java.lang.Object

The persistence service.

Author:
Sergio Ilarri Artigas

Constructor Summary
Persistence()
           
 
Method Summary
abstract  void checkpoint(springs.agent.SpringsAgent agent)
          Checkpoints the agent.
abstract  boolean isSuspended(springs.agent.SpringsAgent agent)
          Obtains if the agent is suspended.
abstract  void suspend(springs.agent.SpringsAgent agent)
          Suspends the agent execution.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Persistence

public Persistence()
Method Detail

isSuspended

public abstract boolean isSuspended(springs.agent.SpringsAgent agent)
Obtains if the agent is suspended.

Parameters:
agent - the agent.
Returns:
a boolean indicating whether the agent is suspended.
See Also:
SpringsAgent

suspend

public abstract void suspend(springs.agent.SpringsAgent agent)
Suspends the agent execution.

Parameters:
agent - the agent.
See Also:
SpringsAgent

checkpoint

public abstract void checkpoint(springs.agent.SpringsAgent agent)
Checkpoints the agent.

Parameters:
agent - the agent.
See Also:
SpringsAgent