|
ADK CVS | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Objects that implement the ARLPersistencePlugin are created by the PersistencePlugin and manage the persisting of the AgentResourceLocator data (proxied by the ARLSerializer). The data in the JarURL table has a close relation to the myriad numbered jar files in your /tmp directory.
| Method Summary | |
void |
clear(Transaction transaction)
Completely clean out the arl cache and all its dependencies. |
boolean |
contains(java.lang.String arlID,
Transaction transaction)
Checks whether this arl has already been entered in the database. |
void |
gc(Transaction transaction)
Make the contents of the arl cache consistent by doing garbage collection. |
void |
get(java.lang.String agentID,
ARLBuilder builder,
Transaction transaction)
Retrieve an arl object from the data contained in the database. |
java.util.Map |
getJars(Transaction transaction)
Gets a map of all the jars in the database. |
java.lang.String |
getURL(java.lang.String jarID,
Transaction transaction)
Returns the URL related to the specified jarID. |
java.util.Set |
getURLs(Transaction transaction)
Returns a list of all URLs still in use. |
void |
put(ARLSerializer arlSerializer,
Transaction transaction)
Persist an arl and its dependencies. |
void |
putURL(java.lang.String arlID,
java.lang.String jarID,
java.lang.String url,
java.lang.String type,
Transaction transaction)
Puts the URL in the jarcache and creates the mapping between the jarfile and the arl. |
void |
remove(java.lang.String arlID,
Transaction transaction)
Removes an arl from the database. |
| Method Detail |
public void clear(Transaction transaction)
throws PersistenceException
transaction - the transaction within which the action
should take place.
PersistenceException
public void gc(Transaction transaction)
throws PersistenceException
transaction - the transaction within which the action should
take place.
PersistenceException
public void put(ARLSerializer arlSerializer,
Transaction transaction)
throws PersistenceException
arlSerializer - The agentresourcelocatorserializer object.transaction - the transaction within which the action
should take place.
PersistenceException
public void get(java.lang.String agentID,
ARLBuilder builder,
Transaction transaction)
throws PersistenceException
agentID - The ID of the agent whose ARL we want to retrieve.builder - A builder object that can construct and ARL.transaction - the transaction within which the action
should take place.
PersistenceException
public boolean contains(java.lang.String arlID,
Transaction transaction)
throws PersistenceException
arlID - The AgentLocatorResource IDtransaction - the transaction within which the action
should take place.
PersistenceException
public void remove(java.lang.String arlID,
Transaction transaction)
throws PersistenceException
transaction - the transaction within which the action
should take place.
PersistenceException
public java.util.Set getURLs(Transaction transaction)
throws PersistenceException
transaction - the transaction within which the action
should take place.
PersistenceException
public java.lang.String getURL(java.lang.String jarID,
Transaction transaction)
throws PersistenceException
transaction - the transaction within which the action
should take place.
PersistenceException
public void putURL(java.lang.String arlID,
java.lang.String jarID,
java.lang.String url,
java.lang.String type,
Transaction transaction)
throws PersistenceException
arlID - The ID of the arl this jar should be mapped too.jarID - The ID of the jarfile that should be saved.url - The url that locates the jarfile on the filesystemtype - The type of the jar: ARLSerializer.SPECIAL_JARS or
ARLSerializer.ORDINARY_JARS.transaction - The transaction within which the action should
take place.
PersistenceException - if the arlID is not already
present or if any other database error occurs.
public java.util.Map getJars(Transaction transaction)
throws PersistenceException
transaction - The transaction within whit the action should
take place
PersistenceException
|
Copyright 2005, Tryllian Solutions B.V. | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||