org.ow2.easybeans.component.jmx
Class JmxComponent

java.lang.Object
  extended by org.ow2.easybeans.component.jmx.JmxComponent
All Implemented Interfaces:
EZBComponent, EZBJmxComponent

public class JmxComponent
extends Object
implements EZBJmxComponent

Implementation of the EasyBeans JMX component.

Author:
missonng

Constructor Summary
JmxComponent()
           
 
Method Summary
 void init()
          Init method.
This method is called before the start method.
 void registerJ2EEManagedObject(EZBJ2EEManagedObject object, org.ow2.util.jmx.api.IBaseModelMBeanExt mbean)
          Register a new J2EE managed object.
If a J2EE managed object with the same id is already registered, it will be unregistered first.
 void registerMBeanAttribute(EZBMBeanAttribute mbeanAttribute)
          Register a new mbean attribute.
The attribute will automatically be register with each MBean matching his filter.
 void registerMBeanOperation(EZBMBeanOperation mbeanOperation)
          Register a new mbean operation.
The operation will automatically be register with each MBean matching his filter.
 void setCommonsModelerExtService(org.ow2.util.jmx.api.ICommonsModelerExtService service)
          Set the CommonsModelerExtService to use.
 void start()
          Start method.
This method is called after the init method.
 void stop()
          Stop method.
This method is called when component needs to be stopped.
 void unregisterJ2EEManagedObject(EZBJ2EEManagedObject object)
          Unregister a J2EE managed object.
 void unregisterMBeanAttribute(EZBMBeanAttribute mbeanAttribute)
          Unregister a mbean attribute.
 void unregisterMBeanOperation(EZBMBeanOperation mbeanOperation)
          Unregister a mbean operation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JmxComponent

public JmxComponent()
Method Detail

init

public void init()
          throws EZBComponentException
Init method.
This method is called before the start method.

Specified by:
init in interface EZBComponent
Throws:
EZBComponentException - if the initialization has failed.

start

public void start()
           throws EZBComponentException
Start method.
This method is called after the init method.

Specified by:
start in interface EZBComponent
Throws:
EZBComponentException - if the start has failed.

stop

public void stop()
          throws EZBComponentException
Stop method.
This method is called when component needs to be stopped.

Specified by:
stop in interface EZBComponent
Throws:
EZBComponentException - if the stop is failing.

setCommonsModelerExtService

public void setCommonsModelerExtService(org.ow2.util.jmx.api.ICommonsModelerExtService service)
Set the CommonsModelerExtService to use.

Parameters:
service - The CommonsModelerExtService to use.

registerJ2EEManagedObject

public void registerJ2EEManagedObject(EZBJ2EEManagedObject object,
                                      org.ow2.util.jmx.api.IBaseModelMBeanExt mbean)
Register a new J2EE managed object.
If a J2EE managed object with the same id is already registered, it will be unregistered first.

Specified by:
registerJ2EEManagedObject in interface EZBJmxComponent
Parameters:
object - The J2EE managed object to register.
mbean - the BaseModelMBean for this J2EE managed object.

unregisterJ2EEManagedObject

public void unregisterJ2EEManagedObject(EZBJ2EEManagedObject object)
Unregister a J2EE managed object.

Specified by:
unregisterJ2EEManagedObject in interface EZBJmxComponent
Parameters:
object - The J2EE managed object to unregister.

registerMBeanAttribute

public void registerMBeanAttribute(EZBMBeanAttribute mbeanAttribute)
Register a new mbean attribute.
The attribute will automatically be register with each MBean matching his filter.

Specified by:
registerMBeanAttribute in interface EZBJmxComponent
Parameters:
mbeanAttribute - The mbean attribute to register.

unregisterMBeanAttribute

public void unregisterMBeanAttribute(EZBMBeanAttribute mbeanAttribute)
Unregister a mbean attribute.

Specified by:
unregisterMBeanAttribute in interface EZBJmxComponent
Parameters:
mbeanAttribute - The mbean attribute to unregister.

registerMBeanOperation

public void registerMBeanOperation(EZBMBeanOperation mbeanOperation)
Register a new mbean operation.
The operation will automatically be register with each MBean matching his filter.

Specified by:
registerMBeanOperation in interface EZBJmxComponent
Parameters:
mbeanOperation - The mbean operation to register.

unregisterMBeanOperation

public void unregisterMBeanOperation(EZBMBeanOperation mbeanOperation)
Unregister a mbean operation.

Specified by:
unregisterMBeanOperation in interface EZBJmxComponent
Parameters:
mbeanOperation - The mbean operation to unregister.


Copyright © 2006-2011 OW2 Consortium. All Rights Reserved.