|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.management.NotificationBroadcasterSupport
org.apache.felix.ipojo.handlers.jmx.DynamicMBeanImpl
org.apache.felix.ipojo.handlers.jmx.DynamicMBeanWRegisterImpl
public class DynamicMBeanWRegisterImpl
This class implements a 'wide' iPOJO DynamicMBean that can perform actions before and after its registration and deregistration.
| Field Summary | |
|---|---|
private javax.management.ObjectName |
m_objName
The effective name of the MBean. |
private MethodMetadata |
m_postDeregisterMeth
The postDeregister method of MBeanRegistration interface. |
private MethodMetadata |
m_postRegisterMeth
The postRegister method of MBeanRegistration interface. |
private MethodMetadata |
m_preDeregisterMeth
The preDeregister method of MBeanRegistration interface. |
private MethodMetadata |
m_preRegisterMeth
The preRegister method of MBeanRegistration interface. |
| Fields inherited from class org.apache.felix.ipojo.handlers.jmx.DynamicMBeanImpl |
|---|
m_instanceManager |
| Constructor Summary | |
|---|---|
DynamicMBeanWRegisterImpl(JmxConfigFieldMap properties,
InstanceManager instanceManager,
MethodMetadata preRegisterMeth,
MethodMetadata postRegisterMeth,
MethodMetadata preDeregisterMeth,
MethodMetadata postDeregisterMeth)
Constructs a new DynamicMBeanWRegisterImpl. |
|
| Method Summary | |
|---|---|
private java.lang.Object |
callMethod(MethodMetadata methodMetadata,
java.lang.String methodName,
java.lang.Object[] params)
Private method used to execute a given callback. |
javax.management.ObjectName |
getObjectName()
Returns the MBean name used to register it. |
void |
postDeregister()
This method is executed after the MBean deregistration. |
void |
postRegister(java.lang.Boolean registrationDone)
This method is executed after the MBean registration. |
void |
preDeregister()
This method is before after the MBean deregistration. |
javax.management.ObjectName |
preRegister(javax.management.MBeanServer server,
javax.management.ObjectName name)
This method is executed before the MBean registration. |
| Methods inherited from class org.apache.felix.ipojo.handlers.jmx.DynamicMBeanImpl |
|---|
getAttribute, getAttributes, getMBeanInfo, getNotificationInfo, invoke, sendNotification, setAttribute, setAttributes |
| Methods inherited from class javax.management.NotificationBroadcasterSupport |
|---|
addNotificationListener, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private MethodMetadata m_preRegisterMeth
private MethodMetadata m_postRegisterMeth
private MethodMetadata m_preDeregisterMeth
private MethodMetadata m_postDeregisterMeth
private javax.management.ObjectName m_objName
| Constructor Detail |
|---|
public DynamicMBeanWRegisterImpl(JmxConfigFieldMap properties,
InstanceManager instanceManager,
MethodMetadata preRegisterMeth,
MethodMetadata postRegisterMeth,
MethodMetadata preDeregisterMeth,
MethodMetadata postDeregisterMeth)
properties - the data extracted from the metadata.xmlinstanceManager - the instance managerpreRegisterMeth - the method to call before MBean registrationpostRegisterMeth - the method to call after MBean registrationpreDeregisterMeth - the method to call before MBean deregistrationpostDeregisterMeth - the method to call after MBean registration| Method Detail |
|---|
public javax.management.ObjectName getObjectName()
public javax.management.ObjectName preRegister(javax.management.MBeanServer server,
javax.management.ObjectName name)
throws java.lang.Exception
preRegister in interface javax.management.MBeanRegistrationserver - the server on which the MBean will be registeredname - the name of the MBean to expose
java.lang.Exception - This exception will be caught by the MBean server and re-thrown as an MBeanRegistrationException.public void postRegister(java.lang.Boolean registrationDone)
postRegister in interface javax.management.MBeanRegistrationregistrationDone - indicates whether or not the MBean has been successfully registered in the MBean server.
public void preDeregister()
throws java.lang.Exception
preDeregister in interface javax.management.MBeanRegistrationjava.lang.Exception - This exception will be caught by the MBean server and re-thrown as an MBeanRegistrationException.public void postDeregister()
postDeregister in interface javax.management.MBeanRegistration
private java.lang.Object callMethod(MethodMetadata methodMetadata,
java.lang.String methodName,
java.lang.Object[] params)
methodMetadata - the metadata description of the callbackmethodName - the name of the callbackparams - the parameters of the callback
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||