public class ManagementManager extends Object
The mechanics for starting and stopping JMX servers are not defined here, and must be done by plug-ins, by providing the implementation of ManagementServer
.
This Manager controls the lifecycle of management servers.
A management server is started when an instance of this class is created, and its shutdown when the close operation is invoked
The management server startup is triggered when the Manager gets enabled.
Constructor and Description |
---|
ManagementManager(NucleusContext ctxt)
Constructor for Management.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close a instance.
|
void |
deregisterMBean(String name)
Deregister an MBean from the MBeanServer
|
String |
getDomainName()
Domain name for this manager instance.
|
String |
getInstanceName()
Instance name for this manager instance.
|
boolean |
isOpen()
Whether this Manager is not closed
|
void |
registerMBean(Object mbean,
String name)
Register an MBean into the MBeanServer
|
public ManagementManager(NucleusContext ctxt)
ctxt
- the NucleusContext that we are operating forpublic String getInstanceName()
public String getDomainName()
public void registerMBean(Object mbean, String name)
mbean
- the MBean instancename
- the mbean namepublic void deregisterMBean(String name)
name
- the mbean namepublic boolean isOpen()
public void close()
NucleusException
- if the manager is closedCopyright © 2019. All rights reserved.