Top Description Constructors Methods
org.apache.derby.impl.services.jmxnone

public final Class NoManagementService

extends Object
implements ManagementService
Class Inheritance
All Implemented Interfaces
org.apache.derby.iapi.services.jmx.ManagementService, org.apache.derby.mbeans.ManagementMBean
Imports
org.apache.derby.iapi.services.jmx.ManagementService

Dummy management service for environments that do not support JMX, such as Java SE compact profile 2.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
getSystemIdentifier()

Implements org.apache.derby.mbeans.ManagementMBean.getSystemIdentifier.

Get the system identifier that this MBean is managing.

public boolean
public String
quotePropertyValue(String
the value to quote
value
)

Implements org.apache.derby.iapi.services.jmx.ManagementService.quotePropertyValue.

Quote an MBean key property value, so that it is safe to pass to registerMBean even if it potentially contains special characters.

public <T> Object
registerMBean(T
The MBean to wrap with a StandardMBean and register
bean
,
Class<T>
The management interface for the MBean.
beanInterface
,
String
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.
keyProperties
)

Implements org.apache.derby.iapi.services.jmx.ManagementService.registerMBean.

Registers an MBean with the MBean server.

public void
startManagement()

Implements org.apache.derby.mbeans.ManagementMBean.startManagement.

Inform Derby to start its JMX management by registering MBeans relevant to its current state.

public void
stopManagement()

Implements org.apache.derby.mbeans.ManagementMBean.stopManagement.

Inform Derby to stop its JMX management by unregistering its MBeans.

public void
unregisterMBean(Object
An identifier returned by registerMBean.
mbeanIdentifier
)

Implements org.apache.derby.iapi.services.jmx.ManagementService.unregisterMBean.

Unregister a mbean previously registered with registerMBean.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

NoManagementServiceback to summary
public NoManagementService()

Method Detail

getSystemIdentifierback to summary
public String getSystemIdentifier()

Implements org.apache.derby.mbeans.ManagementMBean.getSystemIdentifier.

Doc from org.apache.derby.mbeans.ManagementMBean.getSystemIdentifier.

Get 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.

Returns:String

Runtime identifier for the system, null if Derby is not running.

isManagementActiveback to summary
public boolean isManagementActive()

Implements org.apache.derby.mbeans.ManagementMBean.isManagementActive.

Doc from org.apache.derby.mbeans.ManagementMBean.isManagementActive.

Is Derby's JMX management active. If active then Derby has registered MBeans relevant to its current state.

Returns:boolean

true Derby has registered beans, false Derby has not registered any beans.

quotePropertyValueback to summary
public String quotePropertyValue(String value)

Implements org.apache.derby.iapi.services.jmx.ManagementService.quotePropertyValue.

Doc from org.apache.derby.iapi.services.jmx.ManagementService.quotePropertyValue.

Quote an MBean key property value, so that it is safe to pass to registerMBean even if it potentially contains special characters.

Parameters
value:String

the value to quote

Returns:String

the quoted value

registerMBeanback to summary
public <T> Object registerMBean(T bean, Class<T> beanInterface, String keyProperties)

Implements org.apache.derby.iapi.services.jmx.ManagementService.registerMBean.

Doc from org.apache.derby.iapi.services.jmx.ManagementService.registerMBean.

Registers an MBean with the MBean server. The mbean will be unregistered automatically when Derby shuts down.

Parameters
<T>
The kind of bean
bean:T

The MBean to wrap with a StandardMBean and register

beanInterface:Class<T>

The management interface for the MBean.

keyProperties:String

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:Object

An identifier that can later be used to unregister the mbean.

startManagementback to summary
public void startManagement()

Implements org.apache.derby.mbeans.ManagementMBean.startManagement.

Doc from org.apache.derby.mbeans.ManagementMBean.startManagement.

Inform 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.

stopManagementback to summary
public void stopManagement()

Implements org.apache.derby.mbeans.ManagementMBean.stopManagement.

Doc from org.apache.derby.mbeans.ManagementMBean.stopManagement.

Inform 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.

unregisterMBeanback to summary
public void unregisterMBean(Object mbeanIdentifier)

Implements org.apache.derby.iapi.services.jmx.ManagementService.unregisterMBean.

Doc from org.apache.derby.iapi.services.jmx.ManagementService.unregisterMBean.

Unregister a mbean previously registered with registerMBean.

Parameters
mbeanIdentifier:Object

An identifier returned by registerMBean.