|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jboss.system.pm.XMLAttributePersistenceManager
FileAttributePersistenceManager
| Field Summary | |
static String |
AL_ATTRIBUTE_ELEMENT
|
static String |
AL_DATE_ATTRIBUTE
|
static String |
AL_FALSE_VALUE
|
static String |
AL_ID_ATTRIBUTE
|
static String |
AL_NAME_ATTRIBUTE
|
static String |
AL_NULL_ATTRIBUTE
|
static String |
AL_ROOT_ELEMENT
The XML attribute-list elements and attributes |
static String |
AL_SERIALIZED_ATTRIBUTE
|
static String |
AL_TRUE_VALUE
|
static String |
AL_TYPE_ATTRIBUTE
|
static String |
DATA_DIR_ELEMENT
The XML configuration element |
static String |
DEFAULT_BASE_DIR
Default base directory if one not specified |
| Constructor Summary | |
XMLAttributePersistenceManager()
Constructs a FileAttributePersistenceManager. |
|
| 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. |
javax.management.AttributeList |
load(String id)
Persists an AttributeList (name/value pair list), under a specified id. |
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,
javax.management.AttributeList attrs)
Uses the specified id to retrieve a previously persisted AttributeList. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String DATA_DIR_ELEMENT
public static final String DEFAULT_BASE_DIR
public static final String AL_ROOT_ELEMENT
public static final String AL_ID_ATTRIBUTE
public static final String AL_DATE_ATTRIBUTE
public static final String AL_ATTRIBUTE_ELEMENT
public static final String AL_NAME_ATTRIBUTE
public static final String AL_TYPE_ATTRIBUTE
public static final String AL_NULL_ATTRIBUTE
public static final String AL_SERIALIZED_ATTRIBUTE
public static final String AL_TRUE_VALUE
public static final String AL_FALSE_VALUE
| Constructor Detail |
public XMLAttributePersistenceManager()
| Method Detail |
public void create(String version,
Element config)
throws Exception
create in interface org.jboss.mx.persistence.AttributePersistenceManagerversion - a tag to identify the versionconfig - XML Element to load arbitrary config
Exception - when any error occurs during createpublic boolean getState()
getState in interface org.jboss.mx.persistence.AttributePersistenceManagerpublic void destroy()
destroy in interface org.jboss.mx.persistence.AttributePersistenceManager
public void store(String id,
javax.management.AttributeList attrs)
throws Exception
store in interface org.jboss.mx.persistence.AttributePersistenceManagerid - the key for retrieving the data
Exception - when an error occurs
public javax.management.AttributeList load(String id)
throws Exception
load in interface org.jboss.mx.persistence.AttributePersistenceManagerid - the key for retrieving the data later on, not null
Exception - when data cannot be persisted
public boolean exists(String id)
throws Exception
exists in interface org.jboss.mx.persistence.AttributePersistenceManagerid - the key of the image
Exception - on any error
public void remove(String id)
throws Exception
remove in interface org.jboss.mx.persistence.AttributePersistenceManagerid - the key of the image
Exception - when any error occurs
public void removeAll()
throws Exception
removeAll in interface org.jboss.mx.persistence.AttributePersistenceManagerException - when any error occurs
public String[] listAll()
throws Exception
listAll in interface org.jboss.mx.persistence.AttributePersistenceManagerException - when any error occurs
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||