A persister makes the state of a component or entry persistent. It is called upon call of register, unregister or invoke methods of the JMX server.
Each entry is associated to a persister. If no persister is specified the default persister is used.
The association between an entry and a persister is by name. The name of the entry is the name of the domain of its instances. Therefore names should be immutable.
To be persistent MBeans must implement the PersistentMBean interface. This is a marker interface. Therefore no implementation is required within the MBean.
Currently a persister based on XStream XML serialization has been implemented. The directory for saving and loading files becomes immutable on first call of the store method.
|