JE management is divided between the JEApplicationMBean class and JEMBeanHelper class. JEApplicationMBean contains an instance of JEMBeanHelper, which knows about JE attributes, operations and notifications. JEApplicationMBean itself has the responsibility of configuring, opening and closing the JE environment along with any other resources used by the application, and maintains a com.sleepycat.je.Environment handle.
The approach taken for accessing the environment is an application specific choice. Some of the salient considerations are:
Another MBean approach for environment access can be seen in com.sleepycat.je.jmx.JEMonitor. That MBean does not take responsibility for opening and closing environments, and can only operate against already-open environments.
|
|
|
|