|
ADK CVS | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
The AgentSerializer is an interface by which persistence plugins can obtain data about an agent. This abstracts the actual agent-datastructures inside the ARE from the persistence implementation.
For each agent, a separate AgentSerializer is provided by the ARE.
| Field Summary | |
static java.lang.String |
CATEGORY_RUNTIME
The category for runtime attributes. |
static java.lang.String |
CATEGORY_STATISTICAL
The category for statistical attributes. |
static java.lang.String |
TYPE_BINARY
The type for binary serialization. |
static java.lang.String |
TYPE_LOGICAL
The type for logical serialization. |
| Method Summary | |
java.lang.String |
getAgent()
Returns an encoded String containing the storable data of an agent. |
java.util.Map |
getAgentAttributes(java.lang.String category)
Returns the agent's attributes in the form of a map containing key-value pair combinations. |
byte[] |
getAgentBytes()
Returns an array of bytes containing the storable data of an agent. |
java.lang.String |
getAgentID()
Returns the agentID encoded as a string. |
ARLSerializer |
getARL()
Returns the AgentResourceLocator Serializer which represents the current agent's AgentResourceLocator. |
java.lang.String |
getSerializationType()
Returns an identifier signifying the serialization type of the agent. |
| Field Detail |
public static final java.lang.String CATEGORY_RUNTIME
public static final java.lang.String CATEGORY_STATISTICAL
public static final java.lang.String TYPE_BINARY
public static final java.lang.String TYPE_LOGICAL
| Method Detail |
public java.lang.String getAgent()
throws PersistenceException
PersistenceException - if an error occurred while serializing.
public byte[] getAgentBytes()
throws PersistenceException
PersistenceException - if an error occurred while
serializing.
public java.lang.String getSerializationType()
throws PersistenceException
PersistenceException - if the agent is not serializablepublic java.lang.String getAgentID()
public java.util.Map getAgentAttributes(java.lang.String category)
throws PersistenceException
category - the category as defined above
PersistenceException - if the category is unknown, or
there was a problem obtaining one of the attributespublic ARLSerializer getARL()
|
Copyright 2005, Tryllian Solutions B.V. | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||