|
|||||||||
| 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
public class DynamicMBeanImpl
this class implements iPOJO DynamicMBean. it builds the dynamic MBean
| Constructor Summary | |
|---|---|
DynamicMBeanImpl(JmxConfigFieldMap properties,
org.apache.felix.ipojo.InstanceManager instanceManager)
DynamicMBeanImpl : constructor. |
|
| Method Summary | |
|---|---|
java.lang.Object |
getAttribute(java.lang.String arg0)
getAttribute implements from JMX. |
javax.management.AttributeList |
getAttributes(java.lang.String[] attributeNames)
getAttributes : implement from JMX. |
javax.management.MBeanInfo |
getMBeanInfo()
getMBeanInfo : return the MBean Class builded. |
javax.management.MBeanNotificationInfo[] |
getNotificationInfo()
getNotificationInfo : get the notification informations (use by JMX). |
java.lang.Object |
invoke(java.lang.String operationName,
java.lang.Object[] params,
java.lang.String[] signature)
invoke : invoke the required method on the targeted POJO. |
void |
sendNotification(java.lang.String msg,
java.lang.String attributeName,
java.lang.String attributeType,
java.lang.Object oldValue,
java.lang.Object newValue)
sendNotification : send a notification to a subscriver. |
void |
setAttribute(javax.management.Attribute attribute)
setAttribute : change specified attribute value. |
javax.management.AttributeList |
setAttributes(javax.management.AttributeList attributes)
setAttributes : change all the attributes value. |
| 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 |
| Constructor Detail |
|---|
public DynamicMBeanImpl(JmxConfigFieldMap properties,
org.apache.felix.ipojo.InstanceManager instanceManager)
properties - : data extracted from metadat.xml fileinstanceManager - : InstanceManager instance| Method Detail |
|---|
public java.lang.Object getAttribute(java.lang.String arg0)
throws javax.management.AttributeNotFoundException,
javax.management.MBeanException,
javax.management.ReflectionException
getAttribute in interface javax.management.DynamicMBeanarg0 - name of required attribute
javax.management.AttributeNotFoundException - : if the attribute doesn't exist
javax.management.MBeanException - :
javax.management.ReflectionException - :public javax.management.AttributeList getAttributes(java.lang.String[] attributeNames)
getAttributes in interface javax.management.DynamicMBeanattributeNames - : names of the required attributes
public javax.management.MBeanInfo getMBeanInfo()
getMBeanInfo in interface javax.management.DynamicMBean
public java.lang.Object invoke(java.lang.String operationName,
java.lang.Object[] params,
java.lang.String[] signature)
throws javax.management.MBeanException,
javax.management.ReflectionException
invoke in interface javax.management.DynamicMBeanoperationName - : name of the method calledparams - : parameters given to the methodsignature - : determine which method called
javax.management.MBeanException - :
javax.management.ReflectionException - :
public void setAttribute(javax.management.Attribute attribute)
throws javax.management.AttributeNotFoundException,
javax.management.InvalidAttributeValueException,
javax.management.MBeanException,
javax.management.ReflectionException
setAttribute in interface javax.management.DynamicMBeanattribute - : attribute with new value to be changed
javax.management.AttributeNotFoundException - : if the requiered attribute was not found
javax.management.InvalidAttributeValueException - : the value is inccorrect type
javax.management.MBeanException - :
javax.management.ReflectionException - :public javax.management.AttributeList setAttributes(javax.management.AttributeList attributes)
setAttributes in interface javax.management.DynamicMBeanattributes - : list of attribute value to be changed
public javax.management.MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo in interface javax.management.NotificationBroadcastergetNotificationInfo in class javax.management.NotificationBroadcasterSupport
public void sendNotification(java.lang.String msg,
java.lang.String attributeName,
java.lang.String attributeType,
java.lang.Object oldValue,
java.lang.Object newValue)
msg - : msg to sendattributeName - : name of the attributeattributeType - : type of the attributeoldValue - : oldvalue of the attributenewValue - : new value of the attribute
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||