public final class CacheJmxRegistration extends Object
Configuration.statistics()
is enabled, then class will register all
the MBeans from cache local's ConfigurationRegistry to the MBean server.COMPONENT, MANAGER, NAME, TYPE
Constructor and Description |
---|
CacheJmxRegistration() |
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. |
public void start()
public void stop()
protected String initGroup()
groupName
during start.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.