public class JmxServiceImpl extends java.lang.Object implements JmxService, Stoppable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
OBJ_NAME_TEMPLATE |
Constructor and Description |
---|
JmxServiceImpl(java.util.Map configValues) |
Modifier and Type | Method and Description |
---|---|
void |
registerMBean(javax.management.ObjectName objectName,
java.lang.Object mBean)
Registers the given
mBean under the given objectName |
void |
registerService(Manageable service,
java.lang.Class<? extends Service> serviceRole)
Handles registration of a manageable service.
|
void |
stop()
Stop phase notification
|
public static final java.lang.String OBJ_NAME_TEMPLATE
public void stop()
Stoppable
public void registerService(Manageable service, java.lang.Class<? extends Service> serviceRole)
JmxService
registerService
in interface JmxService
service
- The manageable serviceserviceRole
- The service's role.public void registerMBean(javax.management.ObjectName objectName, java.lang.Object mBean)
JmxService
mBean
under the given objectName
registerMBean
in interface JmxService
objectName
- The name under which to register the MBeanmBean
- The MBean to registerCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.