Interface MBeanRegistrator
public interface MBeanRegistrator
Registers the MBean.
- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescriptionstatic MBeanRegistratorObtains the platform (ManagementFactory.getPlatformMBeanServer())MBeanRegistrator.voidregisterMBean(ObjectName name, Object mbean) Registers an MBean.
-
Method Details
-
getPlatformMBeanRegistrator
Obtains the platform (ManagementFactory.getPlatformMBeanServer())MBeanRegistrator.- Returns:
- Platform
MBeanRegistrator.
-
registerMBean
void registerMBean(ObjectName name, Object mbean) throws InstanceAlreadyExistsException, MBeanRegistrationException, NotCompliantMBeanException Registers an MBean.- Parameters:
name- Name of the MBean.mbean- MBean.- Throws:
InstanceAlreadyExistsException- If MBean already registered by name.MBeanRegistrationException- If fails to register the MBean.NotCompliantMBeanException- If MBean is not compliant.
-