|
ADK CVS | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Objects that implement the AgentPersistencePlugin are created by the PersistencePlugin and manage the persisting of the agent data.
| Method Summary | |
void |
checkpoint(AgentSerializer serializer,
Transaction action)
Checkpoint an agent. |
void |
clear(Transaction action)
Removes all agents from persistence. |
boolean |
contains(java.lang.String agentID,
Transaction action)
Check whether the agent with the specified ID is present. |
java.util.Set |
getCheckpointed(Transaction action)
Returns a Set of Strings containing the Agent IDs of all checkpointed agents. |
java.lang.String |
getPersistencyFlag(java.lang.String agentID,
Transaction action)
Retrieves the persistency flag for the specified agent, or null if the agent is not in the database. |
java.util.Set |
getRestorable(Transaction action)
Returns a Set of Strings containing the Agent IDs of all agents that should be woken up. |
boolean |
isDeparting(java.lang.String agentID,
Transaction action)
Returns true if the agent is departing. |
void |
remove(java.lang.String agentID,
Transaction action)
Remove the agent with the specified ID |
void |
removeMoving(java.lang.String agentID,
Transaction action)
Remove the agent with the specified ID, but only if isDeparting returns true. |
void |
restore(java.lang.String agentID,
AgentBuilder builder,
Transaction action)
Restores the specified agent. |
void |
setDeparting(java.lang.String agentID,
boolean enabled,
Transaction action)
Set the 'Moving' flag of the specified agent. |
void |
setPersistencyFlag(java.lang.String agentID,
java.lang.String flag,
Transaction action)
Set the persistency flag for the specified agent. |
void |
suspend(AgentSerializer serializer,
long seconds,
Transaction action)
Suspend an agent for the specified amount of seconds. |
void |
upgrade(AgentSerializer serializer,
ARLSerializer newARL,
Transaction action)
Upgrade one agent to a new ARL. |
void |
upgrade(java.lang.String arlID,
ARLSerializer newARL,
Transaction action)
Upgrade all agents with the specified arlID to a new ARL in the current habitat. |
| Method Detail |
public void checkpoint(AgentSerializer serializer,
Transaction action)
throws PersistenceException
PersistenceException
public void suspend(AgentSerializer serializer,
long seconds,
Transaction action)
throws PersistenceException
PersistenceException
public void upgrade(AgentSerializer serializer,
ARLSerializer newARL,
Transaction action)
throws PersistenceException
PersistenceException
public void upgrade(java.lang.String arlID,
ARLSerializer newARL,
Transaction action)
throws PersistenceException
PersistenceException
public boolean contains(java.lang.String agentID,
Transaction action)
throws PersistenceException
PersistenceException
public java.lang.String getPersistencyFlag(java.lang.String agentID,
Transaction action)
throws PersistenceException
PersistenceException
public void setPersistencyFlag(java.lang.String agentID,
java.lang.String flag,
Transaction action)
throws PersistenceException
PersistenceException
public void remove(java.lang.String agentID,
Transaction action)
throws PersistenceException
PersistenceException
public void removeMoving(java.lang.String agentID,
Transaction action)
throws PersistenceException
PersistenceException
public void setDeparting(java.lang.String agentID,
boolean enabled,
Transaction action)
throws PersistenceException
enabled - set to true if the agent should be moving, false
otherwise.
PersistenceException
public boolean isDeparting(java.lang.String agentID,
Transaction action)
throws PersistenceException
PersistenceException
public void restore(java.lang.String agentID,
AgentBuilder builder,
Transaction action)
throws PersistenceException
agentID - the agent to restorebuilder - AgentBuilder to create the agent with
PersistenceException
public java.util.Set getRestorable(Transaction action)
throws PersistenceException
PersistenceException
public java.util.Set getCheckpointed(Transaction action)
throws PersistenceException
PersistenceException
public void clear(Transaction action)
throws PersistenceException
PersistenceException
|
Copyright 2005, Tryllian Solutions B.V. | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||