public final class CacheManagerJmxRegistration extends Object
COMPONENT, MANAGER, NAME, TYPE
Constructor and Description |
---|
CacheManagerJmxRegistration() |
Modifier and Type | Method and Description |
---|---|
boolean |
enabled()
Checks that JMX is effectively enabled.
|
String |
getDomain()
Gets the domain name.
|
String |
getGroupName()
Gets the group name.
|
MBeanServer |
getMBeanServer()
Gets the MBean server.
|
protected String |
initGroup()
Subclasses must implement this hook to initialize
groupName during start. |
ObjectName |
registerExternalMBean(Object managedComponent,
String groupName)
Registers a MBean, but does not track it to perform automatic unregistration on stop.
|
void |
registerMBean(Object managedComponent)
Registers a MBean (and tracks it to perform automatic unregistration on stop).
|
void |
registerMBean(Object managedComponent,
String groupName)
Registers a MBean (and tracks it to perform automatic unregistration on stop).
|
void |
start()
Looks up the MBean server and initializes domain and group.
|
void |
stop()
Unregisters the MBeans that were registered on start.
|
void |
unregisterMBean(ObjectName objectName)
Unregisters the MBean located under the given
ObjectName , if it exists. |
protected String initGroup()
groupName
during start.public void start()
public void stop()
public final boolean enabled()
public final String getDomain()
public final String getGroupName()
public final MBeanServer getMBeanServer()
public ObjectName registerExternalMBean(Object managedComponent, String groupName) throws Exception
Exception
public void registerMBean(Object managedComponent) throws Exception
Exception
public void registerMBean(Object managedComponent, String groupName) throws Exception
Exception
public void unregisterMBean(ObjectName objectName) throws Exception
ObjectName
, if it exists.objectName
- ObjectName
where the MBean is registeredException
- If unregistration could not be completed.Copyright © 2021 JBoss by Red Hat. All rights reserved.