|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
AttributePersistenceManager interface. Implementations of this interface are created by an MBean service that acts as factory and a manager for the active AttributePersistenceManager implementation The DelegatingPersistenceManager will contact the MBean to get an AttributePersistenceManager implementation. In this way, the Persistence Manager can be controlled externally as an MBean.
| Method Summary | |
void |
create(String version,
Element config)
Initializes the AttributePersistenceManager using the supplied configuration element CONFIG_ELEMENT whose content will be probably different for each particular implementation. |
void |
destroy()
Releases resources and destroys the AttributePersistenceManager. |
boolean |
exists(String id)
Checks if a persistened AttributeList for this particular id exists |
boolean |
getState()
Returns true if the AttributePersistenceManager is "in-service" state, i.e. |
String[] |
listAll()
Returns a String array with all the saved ids under the configured version tag. |
AttributeList |
load(String id)
Uses the specified id to retrieve a previously persisted AttributeList. |
void |
remove(String id)
Removes the persisted AttributeList, if exists |
void |
removeAll()
Removes all the persisted data stored under the configured version tag. |
void |
store(String id,
AttributeList attrs)
Persists an AttributeList (name/value pair list), under a specified id. |
| Method Detail |
public void create(String version, Element config) throws Exception
version - a tag to identify the versionconfig - XML Element to load arbitrary config
Exception - when any error occurs during createpublic boolean getState()
public void destroy()
public boolean exists(String id) throws Exception
id - the key of the image
Exception - on any errorpublic AttributeList load(String id) throws Exception
id - the key for retrieving the data
Exception - when an error occurspublic void store(String id, AttributeList attrs) throws Exception
id - the key for retrieving the data later on, not nullattrs - the data to be persisted, not null
Exception - when data cannot be persistedpublic void remove(String id) throws Exception
id - the key of the image
Exception - when any error occurs
public void removeAll()
throws Exception
Exception - when any error occurspublic String[] listAll() throws Exception
Exception - when any error occurs
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||