javax.management
Interface PersistentMBean

All Known Subinterfaces:
ModelMBean (src)
All Known Implementing Classes:
ModelMBeanInvoker (src) , RequiredModelMBean (src)

public interface PersistentMBean

This interface should be implemented by all MBeans that wish their state to be persisted.


Method Summary
 void load()
          Retrieves the MBean's state from a persistence store.
 void store()
          Stores the MBean's state to a persistence store.
 

Method Detail

load

public void load()
          throws MBeanException (src) ,
                 RuntimeOperationsException (src) ,
                 InstanceNotFoundException (src) 
Retrieves the MBean's state from a persistence store.

Throws:
MBeanException (src) - wraps application exceptions from persistence store
InstanceNotFoundException (src) - if the MBean's state could not be found
RuntimeOperationsException (src)

store

public void store()
           throws MBeanException (src) ,
                  RuntimeOperationsException (src) ,
                  InstanceNotFoundException (src) 
Stores the MBean's state to a persistence store.

Throws:
MBeanException (src) - wraps application exceptions from persistence store
InstanceNotFoundException (src) - if the MBean's state could not be stored
RuntimeOperationsException (src)