public class EndpointMBeanRegistrar extends Object
EndpointMBean.EndpointObjectNameFactory| Constructor and Description |
|---|
EndpointMBeanRegistrar(MBeanServer mBeanServer,
EndpointObjectNameFactory objectNameFactory)
Create a new instance with the
MBeanExporter and
EndpointObjectNameFactory to use. |
| Modifier and Type | Method and Description |
|---|---|
ObjectName |
registerEndpointMBean(EndpointMBean endpoint)
Register the specified
EndpointMBean and return its ObjectName. |
boolean |
unregisterEndpointMbean(ObjectName objectName)
Unregister the specified
ObjectName if necessary. |
public EndpointMBeanRegistrar(MBeanServer mBeanServer, EndpointObjectNameFactory objectNameFactory)
MBeanExporter and
EndpointObjectNameFactory to use.mBeanServer - the mbean exporterobjectNameFactory - the ObjectName factorypublic ObjectName registerEndpointMBean(EndpointMBean endpoint)
EndpointMBean and return its ObjectName.endpoint - the endpoint to registerObjectName used to register the endpointpublic boolean unregisterEndpointMbean(ObjectName objectName)
ObjectName if necessary.objectName - the ObjectName of the endpoint to unregistertrue if the endpoint was unregistered, false if no such
endpoint was foundCopyright © 2017 Pivotal Software, Inc.. All rights reserved.