public interface ManagementAgent
Modifier and Type | Method and Description |
---|---|
void |
doStart() |
void |
findAndRegisterMbeans() |
MBeanServer |
getMBeanServer()
Get the MBeanServer which hosts managed objects.
|
boolean |
isRegistered(ObjectName name)
Is the given object registered
|
void |
register(Object obj,
ObjectName name)
Registers object with management infrastructure with a specific name.
|
void |
register(Object obj,
ObjectName name,
boolean forceRegistration)
Registers object with management infrastructure with a specific name.
|
void |
setMBeanServer(MBeanServer mbeanServer)
Sets a custom mbean server to use
|
void |
unregister(ObjectName name)
Unregisters object based upon registered name
|
void register(Object obj, ObjectName name) throws JMException
obj
- the object to registername
- the nameJMException
- is thrown if the registration failedvoid register(Object obj, ObjectName name, boolean forceRegistration) throws JMException
obj
- the object to registername
- the nameforceRegistration
- if set to true, then object will be registered despite
existing object is already registered with the name.JMException
- is thrown if the registration failedvoid unregister(ObjectName name) throws JMException
name
- the nameJMException
- is thrown if the unregistration failedboolean isRegistered(ObjectName name)
name
- the nameMBeanServer getMBeanServer()
void setMBeanServer(MBeanServer mbeanServer)
mbeanServer
- the custom mbean servervoid doStart()
Copyright © 2016 Alfresco. All rights reserved.