Package org.apache.derby.mbeans
Class Management
- java.lang.Object
-
- org.apache.derby.mbeans.Management
-
- All Implemented Interfaces:
ManagementMBean
public class Management extends java.lang.Object implements ManagementMBean
Management MBean to allow applications to dynamically control visibility of Derby's MBeans. If Derby does not register its ManagementMBean then an application may register this implementation of ManagementMBean itself and use it to start Derby's JMX management.If Derby is not booted then invoking startManagement will do nothing.
-
-
Constructor Summary
Constructors Constructor Description Management()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private ManagementMBean
getManagementService()
java.lang.String
getSystemIdentifier()
Return the system identifier that this MBean is managing.private static java.lang.Object
getSystemModule(java.lang.String factoryInterface)
Privileged module lookup.boolean
isManagementActive()
Return state of Derby's JMX management.void
startManagement()
Start Derby's MBeans.void
stopManagement()
Stop Derby's MBeans.
-
-
-
Method Detail
-
getManagementService
private ManagementMBean getManagementService()
-
startManagement
public void startManagement()
Start Derby's MBeans.- Specified by:
startManagement
in interfaceManagementMBean
- See Also:
ManagementMBean.startManagement()
-
stopManagement
public void stopManagement()
Stop Derby's MBeans.- Specified by:
stopManagement
in interfaceManagementMBean
- See Also:
ManagementMBean.stopManagement()
-
isManagementActive
public boolean isManagementActive()
Return state of Derby's JMX management.- Specified by:
isManagementActive
in interfaceManagementMBean
- Returns:
- true Derby has registered beans, false Derby has not registered any beans.
- See Also:
ManagementMBean.isManagementActive()
-
getSystemIdentifier
public java.lang.String getSystemIdentifier()
Return the system identifier that this MBean is managing.- Specified by:
getSystemIdentifier
in interfaceManagementMBean
- Returns:
- Runtime identifier for the system, null if Derby is not running.
- See Also:
ManagementMBean.getSystemIdentifier()
-
getSystemModule
private static java.lang.Object getSystemModule(java.lang.String factoryInterface)
Privileged module lookup. Must be private so that user code can't call this entry point.
-
-