public final class NoManagementService extends java.lang.Object implements ManagementService
DERBY_JMX_DOMAIN
Constructor and Description |
---|
NoManagementService() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getSystemIdentifier()
Get the system identifier that this MBean is managing.
|
boolean |
isManagementActive()
Is Derby's JMX management active.
|
java.lang.Object |
registerMBean(java.lang.Object bean,
java.lang.Class beanInterface,
java.lang.String keyProperties)
Registers an MBean with the MBean server.
|
void |
startManagement()
Inform Derby to start its JMX management by registering
MBeans relevant to its current state.
|
void |
stopManagement()
Inform Derby to stop its JMX management by unregistering
its MBeans.
|
void |
unregisterMBean(java.lang.Object mbeanIdentifier)
Unregister a mbean previously registered with registerMBean.
|
public java.lang.Object registerMBean(java.lang.Object bean, java.lang.Class beanInterface, java.lang.String keyProperties)
ManagementService
registerMBean
in interface ManagementService
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.public void unregisterMBean(java.lang.Object mbeanIdentifier)
ManagementService
unregisterMBean
in interface ManagementService
mbeanIdentifier
- An identifier returned by registerMBean.public boolean isManagementActive()
ManagementMBean
isManagementActive
in interface ManagementMBean
public void startManagement()
ManagementMBean
Require SystemPermission("jmx", "control")
if a security
manager is installed.
startManagement
in interface ManagementMBean
SystemPermission
public void stopManagement()
ManagementMBean
Require SystemPermission("jmx", "control")
if a security
manager is installed.
stopManagement
in interface ManagementMBean
SystemPermission
public java.lang.String getSystemIdentifier()
ManagementMBean
getSystemIdentifier
in interface ManagementMBean
Apache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.