Class NoManagementService
java.lang.Object
org.apache.derby.impl.services.jmxnone.NoManagementService
- All Implemented Interfaces:
ManagementService, ManagementMBean
Dummy management service for environments that do not support
JMX, such as Java SE compact profile 2.
-
Field Summary
Fields inherited from interface ManagementService
DERBY_JMX_DOMAIN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the system identifier that this MBean is managing.booleanIs Derby's JMX management active.quotePropertyValue(String value) Quote an MBean key property value, so that it is safe to pass toManagementService.registerMBean(T, Class, String)even if it potentially contains special characters.<T> ObjectregisterMBean(T bean, Class<T> beanInterface, String keyProperties) Registers an MBean with the MBean server.voidInform Derby to start its JMX management by registering MBeans relevant to its current state.voidInform Derby to stop its JMX management by unregistering its MBeans.voidunregisterMBean(Object mbeanIdentifier) Unregister a mbean previously registered with registerMBean.
-
Constructor Details
-
NoManagementService
public NoManagementService()
-
-
Method Details
-
registerMBean
Description copied from interface:ManagementServiceRegisters an MBean with the MBean server. The mbean will be unregistered automatically when Derby shuts down.- Specified by:
registerMBeanin interfaceManagementService- Parameters:
bean- The MBean to wrap with a StandardMBean and registerbeanInterface- The management interface for the MBean.keyProperties- The String representation of the MBean's key properties, they will be added into the ObjectName with Derby's domain. Key type should be first with a short name for the bean, typically the class name without the package.- Returns:
- An identifier that can later be used to unregister the mbean.
-
unregisterMBean
Description copied from interface:ManagementServiceUnregister a mbean previously registered with registerMBean.- Specified by:
unregisterMBeanin interfaceManagementService- Parameters:
mbeanIdentifier- An identifier returned by registerMBean.
-
isManagementActive
public boolean isManagementActive()Description copied from interface:ManagementMBeanIs Derby's JMX management active. If active then Derby has registered MBeans relevant to its current state.- Specified by:
isManagementActivein interfaceManagementMBean- Returns:
- true Derby has registered beans, false Derby has not registered any beans.
-
startManagement
public void startManagement()Description copied from interface:ManagementMBeanInform Derby to start its JMX management by registering MBeans relevant to its current state. If Derby is not booted then no action is taken.Require
SystemPermission("jmx", "control")if a security manager is installed.- Specified by:
startManagementin interfaceManagementMBean- See Also:
-
stopManagement
public void stopManagement()Description copied from interface:ManagementMBeanInform Derby to stop its JMX management by unregistering its MBeans. If Derby is not booted then no action is taken.Require
SystemPermission("jmx", "control")if a security manager is installed.- Specified by:
stopManagementin interfaceManagementMBean- See Also:
-
getSystemIdentifier
Description copied from interface:ManagementMBeanGet the system identifier that this MBean is managing. The system identifier is a runtime value to disambiguate multiple Derby systems in the same virtual machine but different class loaders.- Specified by:
getSystemIdentifierin interfaceManagementMBean- Returns:
- Runtime identifier for the system, null if Derby is not running.
-
quotePropertyValue
Description copied from interface:ManagementServiceQuote an MBean key property value, so that it is safe to pass toManagementService.registerMBean(T, Class, String)even if it potentially contains special characters.- Specified by:
quotePropertyValuein interfaceManagementService- Parameters:
value- the value to quote- Returns:
- the quoted value
- See Also:
-