Interface MBeanRegistrator
-
public interface MBeanRegistrator
Registers the MBean.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static MBeanRegistrator
getPlatformMBeanRegistrator()
Obtains the platform (ManagementFactory.getPlatformMBeanServer()
)MBeanRegistrator
.void
registerMBean(javax.management.ObjectName name, java.lang.Object mbean)
Registers an MBean.
-
-
-
Method Detail
-
getPlatformMBeanRegistrator
static MBeanRegistrator getPlatformMBeanRegistrator()
Obtains the platform (ManagementFactory.getPlatformMBeanServer()
)MBeanRegistrator
.- Returns:
- Platform
MBeanRegistrator
.
-
registerMBean
void registerMBean(javax.management.ObjectName name, java.lang.Object mbean) throws javax.management.InstanceAlreadyExistsException, javax.management.MBeanRegistrationException, javax.management.NotCompliantMBeanException
Registers an MBean.- Parameters:
name
- Name of the MBean.mbean
- MBean.- Throws:
javax.management.InstanceAlreadyExistsException
- If MBean already registered by name.javax.management.MBeanRegistrationException
- If fails to register the MBean.javax.management.NotCompliantMBeanException
- If MBean is not compliant.
-
-