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.String |
quotePropertyValue(java.lang.String value)
Quote an MBean key property value, so that it is safe to pass to
ManagementService.registerMBean(T, java.lang.Class<T>, java.lang.String) even if it potentially contains special
characters. |
<T> java.lang.Object |
registerMBean(T bean,
java.lang.Class<T> 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 <T> java.lang.Object registerMBean(T bean, java.lang.Class<T> 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
public java.lang.String quotePropertyValue(java.lang.String value)
ManagementService
ManagementService.registerMBean(T, java.lang.Class<T>, java.lang.String)
even if it potentially contains special
characters.quotePropertyValue
in interface ManagementService
value
- the value to quoteObjectName.quote(String)
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.