ManagementService, ManagementMBeanpublic final class NoManagementService extends java.lang.Object implements ManagementService
DERBY_JMX_DOMAIN| Constructor | Description |
|---|---|
NoManagementService() |
| Modifier and Type | Method | 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)
ManagementServiceregisterMBean in interface ManagementServicebean - 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)
ManagementServiceunregisterMBean in interface ManagementServicembeanIdentifier - An identifier returned by registerMBean.public boolean isManagementActive()
ManagementMBeanisManagementActive in interface ManagementMBeanpublic void startManagement()
ManagementMBean
Require SystemPermission("jmx", "control") if a security
manager is installed.
startManagement in interface ManagementMBeanSystemPermissionpublic void stopManagement()
ManagementMBean
Require SystemPermission("jmx", "control") if a security
manager is installed.
stopManagement in interface ManagementMBeanSystemPermissionpublic java.lang.String getSystemIdentifier()
ManagementMBeangetSystemIdentifier in interface ManagementMBeanpublic java.lang.String quotePropertyValue(java.lang.String value)
ManagementServiceManagementService.registerMBean(T, java.lang.Class<T>, java.lang.String) even if it potentially contains special
characters.quotePropertyValue in interface ManagementServicevalue - the value to quoteObjectName.quote(String)Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.