|
||||||||||
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(java.lang.String name,
java.lang.Object object,
java.lang.Class[] interfaces)
Creates a target that can then be exported for management. |
void |
dispose()
|
protected java.lang.Object |
export(java.lang.String name,
java.lang.Object object,
java.lang.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 java.lang.Object |
exportTopic(ModelMBeanInfo topic,
java.lang.Object target,
java.lang.String targetName)
Exports the topic to the management repository. |
protected java.lang.String |
getDomain()
|
protected MBeanServer |
getMBeanServer()
|
void |
initialize()
|
protected void |
setDomain(java.lang.String domain)
|
protected void |
setMBeanServer(MBeanServer mBeanServer)
|
void |
start()
|
void |
stop()
|
protected void |
unexport(java.lang.String name,
java.lang.Object exportedObject)
Stop the exported object from being managed. |
protected void |
verifyInterface(java.lang.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 java.lang.Exception
initialize
in class AbstractSystemManager
java.lang.Exception
public void start() throws java.lang.Exception
java.lang.Exception
public void stop() throws java.lang.Exception
java.lang.Exception
public void dispose()
protected java.lang.Object export(java.lang.String name, java.lang.Object object, java.lang.Class[] interfaces) throws ManagerException
export
in class AbstractSystemManager
name
- the name of objectobject
- the objectinterfaces
- the interfaces
ManagerException
- if an error occursprotected void unexport(java.lang.String name, java.lang.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(java.lang.Class clazz) throws ManagerException
verifyInterface
in class AbstractSystemManager
clazz
- the interface class
ManagerException
- if verification failsprotected MBeanServer getMBeanServer()
protected void setMBeanServer(MBeanServer mBeanServer)
protected java.lang.String getDomain()
protected void setDomain(java.lang.String domain)
protected abstract MBeanServer createMBeanServer() throws java.lang.Exception
java.lang.Exception
protected Target createTarget(java.lang.String name, java.lang.Object object, java.lang.Class[] interfaces)
name
- name of the targetobject
- managed objectinterfaces
- interfaces to be exported
protected void exportTarget(Target target) throws java.lang.Exception
target
- the management target
java.lang.Exception
protected java.lang.Object exportTopic(ModelMBeanInfo topic, java.lang.Object target, java.lang.String targetName) throws java.lang.Exception
topic
- the descriptor for the topictarget
- to be managedtargetName
- the target's name
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |