|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object mx4j.persist.Persister mx4j.persist.FilePersister
A persister object that stores to files.
Constructor Summary | |
FilePersister(java.lang.String location,
java.lang.String name)
Creates a new FilePersister. |
Method Summary | |
java.lang.String |
getFileName()
Returns the path where the information is stored. |
java.lang.Object |
load()
Loads the information persisted on the storage media. |
void |
store(java.lang.Object data)
Store the given information to the storage media. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FilePersister(java.lang.String location, java.lang.String name) throws javax.management.MBeanException
location
- the directory where the file will be written (must already exist);
if null the name is used as a locationname
- the file name used to store informationMethod Detail |
public java.lang.String getFileName()
public java.lang.Object load() throws javax.management.MBeanException, javax.management.RuntimeOperationsException, javax.management.InstanceNotFoundException
PersisterMBean
javax.management.MBeanException
javax.management.RuntimeOperationsException
javax.management.InstanceNotFoundException
PersisterMBean.store(java.lang.Object)
public void store(java.lang.Object data) throws javax.management.MBeanException, javax.management.RuntimeOperationsException, javax.management.InstanceNotFoundException
PersisterMBean
javax.management.MBeanException
javax.management.RuntimeOperationsException
javax.management.InstanceNotFoundException
PersisterMBean.load()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |