ADK CVS

tryllian.are.persistence.spi
Interface ARLBuilder


public interface ARLBuilder

The ARLBuilder is the counterpart of the ARLSerializer. It is used to separate knowledge about the AgentResourceLocator from the persistency layer.


Field Summary
static java.lang.String AGENT_JARS
          Jarfiles specific to this agent.
static java.lang.String SHARED_REFS
          Library jarfiles this agent shares with other agents, like afc.jar.
 
Method Summary
 java.lang.String getHabitatID()
          Returns the habitatID of the habitat this builder is running in.
 void setARLID(java.lang.String arlID)
          Sets the ID of the AgentResourceLocator.
 void setJarURLs(java.util.Map jars, java.lang.String type)
          Sets the Map with JarID to URL mappings.
 void setMainClass(java.lang.String mainClass)
          Sets the MainClass of this AgentResourceLocator.
 

Field Detail

AGENT_JARS

public static final java.lang.String AGENT_JARS
Jarfiles specific to this agent.

See Also:
Constant Field Values

SHARED_REFS

public static final java.lang.String SHARED_REFS
Library jarfiles this agent shares with other agents, like afc.jar.

See Also:
Constant Field Values
Method Detail

setARLID

public void setARLID(java.lang.String arlID)
Sets the ID of the AgentResourceLocator.

Parameters:
arlID - a string representing the unique identifier of the ARL.

setMainClass

public void setMainClass(java.lang.String mainClass)
Sets the MainClass of this AgentResourceLocator.

Parameters:
mainClass - a string representing the fully qualified main class.

setJarURLs

public void setJarURLs(java.util.Map jars,
                       java.lang.String type)
                throws PersistenceException,
                       java.net.MalformedURLException,
                       java.io.IOException
Sets the Map with JarID to URL mappings.

Parameters:
jars - The map of JarID to URL mappings
Throws:
PersistenceException - if the jarcache has been invalidated and the identities don't match anymore.
java.net.MalformedURLException
java.io.IOException

getHabitatID

public java.lang.String getHabitatID()
Returns the habitatID of the habitat this builder is running in.


Copyright 2005, Tryllian Solutions B.V.