public interface MBeanPluginContext extends MBeanServerExecutor
MBeanPlugin's context for accessing JMX with all known MBeanServers. Also it allows to register
on MBeans for offering own functionality.MBeanServerExecutor.MBeanAction<R>, MBeanServerExecutor.MBeanEachCallback| Modifier and Type | Method and Description |
|---|---|
ObjectName |
registerMBean(Object pMBean,
String... pOptionalName)
Register a MBean under a certain name to the platform MBeanServer.
|
call, each, hasMBeansListChangedSince, queryNamesObjectName registerMBean(Object pMBean, String... pOptionalName) throws MalformedObjectNameException, NotCompliantMBeanException, InstanceAlreadyExistsException
jolokia
and a type type=plugin when registering MBeans.pMBean - MBean to registerpOptionalName - optional name under which the bean should be registered. If not provided,
it depends on whether the MBean to register implements MBeanRegistration or
not.MalformedObjectNameExceptionNotCompliantMBeanExceptionInstanceAlreadyExistsExceptionCopyright © 2017. All rights reserved.