|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--AbstractLogEnabled | +--org.apache.avalon.phoenix.components.manager.AbstractSystemManager | +--org.apache.avalon.phoenix.components.manager.AbstractJMXManager
An abstract class via which JMX Managers can extend.
Field Summary |
Fields inherited from interface org.apache.avalon.phoenix.interfaces.SystemManager |
ROLE |
Constructor Summary | |
AbstractJMXManager()
|
Method Summary | |
protected abstract MBeanServer |
createMBeanServer()
Creates a new MBeanServer. |
protected Target |
createTarget(String name,
Object object,
Class[] interfaces)
Creates a target that can then be exported for management. |
void |
dispose()
|
protected Object |
export(String name,
Object object,
Class[] interfaces)
Export the object to the particular management medium using the supplied object and interfaces. |
protected void |
exportTarget(Target target)
Exports the target to the management repository. |
protected Object |
exportTopic(ModelMBeanInfo topic,
Object target,
String targetName)
Exports the topic to the management repository. |
protected String |
getDomain()
|
protected MBeanServer |
getMBeanServer()
|
void |
initialize()
|
protected void |
setDomain(String domain)
|
protected void |
setMBeanServer(MBeanServer mBeanServer)
|
void |
start()
|
void |
stop()
|
protected void |
unexport(String name,
Object exportedObject)
Stop the exported object from being managed. |
protected void |
verifyInterface(Class clazz)
Verify that an interface conforms to the requirements of management medium. |
Methods inherited from class org.apache.avalon.phoenix.components.manager.AbstractSystemManager |
getSubContext, register, register, unregister, verifyName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AbstractJMXManager()
Method Detail |
public void initialize() throws Exception
initialize
in class AbstractSystemManager
Exception
public void start() throws Exception
Exception
public void stop() throws Exception
Exception
public void dispose()
protected Object export(String name, Object object, Class[] interfaces) throws ManagerException
export
in class AbstractSystemManager
name
- the name of objectobject
- the objectinterfaces
- the interfaces
ManagerException
- if an error occursprotected void unexport(String name, Object exportedObject) throws ManagerException
unexport
in class AbstractSystemManager
name
- the name of objectexportedObject
- the object return by export
ManagerException
- if an error occursprotected void verifyInterface(Class clazz) throws ManagerException
verifyInterface
in class AbstractSystemManager
clazz
- the interface class
ManagerException
- if verification failsprotected MBeanServer getMBeanServer()
protected void setMBeanServer(MBeanServer mBeanServer)
protected String getDomain()
protected void setDomain(String domain)
protected abstract MBeanServer createMBeanServer() throws Exception
Exception
protected Target createTarget(String name, Object object, Class[] interfaces)
name
- name of the targetobject
- managed objectinterfaces
- interfaces to be exported
protected void exportTarget(Target target) throws Exception
target
- the management target
Exception
protected Object exportTopic(ModelMBeanInfo topic, Object target, String targetName) throws Exception
topic
- the descriptor for the topictarget
- to be managedtargetName
- the target's name
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |