|
||||||||||
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
Field Summary | |
---|---|
protected InstanceManager |
m_instanceManager
The instance manager. |
Constructor Summary | |
---|---|
DynamicMBeanImpl(JmxConfigFieldMap properties,
InstanceManager instanceManager)
Constructor. |
Method Summary | |
---|---|
Object |
getAttribute(String arg0)
Gets the value of the required attribute. |
javax.management.AttributeList |
getAttributes(String[] attributeNames)
Gets values of required attributes. |
javax.management.MBeanInfo |
getMBeanInfo()
Returns the MBean Class builded. |
javax.management.MBeanNotificationInfo[] |
getNotificationInfo()
Gets the notification informations (use by JMX). |
Object |
invoke(String operationName,
Object[] params,
String[] signature)
Invokes the required method on the targeted POJO. |
void |
sendNotification(String msg,
String attributeName,
String attributeType,
Object oldValue,
Object newValue)
Sends a notification to a subscriber. |
void |
setAttribute(javax.management.Attribute attribute)
Changes specified attribute value. |
javax.management.AttributeList |
setAttributes(javax.management.AttributeList attributes)
Changes 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 |
Field Detail |
---|
protected final InstanceManager m_instanceManager
Constructor Detail |
---|
public DynamicMBeanImpl(JmxConfigFieldMap properties, InstanceManager instanceManager)
properties
- the data extracted from metadat.xml fileinstanceManager
- the InstanceManager instanceMethod Detail |
---|
public Object getAttribute(String arg0) throws javax.management.AttributeNotFoundException, javax.management.MBeanException, javax.management.ReflectionException
getAttribute
in interface javax.management.DynamicMBean
arg0
- the name of required attribute
javax.management.AttributeNotFoundException
- if the attribute doesn't exist
javax.management.MBeanException
- if something bad occures
javax.management.ReflectionException
- if something bad occurespublic javax.management.AttributeList getAttributes(String[] attributeNames)
getAttributes
in interface javax.management.DynamicMBean
attributeNames
- the names of the required attributes
public javax.management.MBeanInfo getMBeanInfo()
getMBeanInfo
in interface javax.management.DynamicMBean
public Object invoke(String operationName, Object[] params, String[] signature) throws javax.management.MBeanException, javax.management.ReflectionException
invoke
in interface javax.management.DynamicMBean
operationName
- the name of the method calledparams
- the parameters given to the methodsignature
- the determine which method called
javax.management.MBeanException
- if something bad occures
javax.management.ReflectionException
- if something bad occurespublic void setAttribute(javax.management.Attribute attribute) throws javax.management.AttributeNotFoundException, javax.management.InvalidAttributeValueException, javax.management.MBeanException, javax.management.ReflectionException
setAttribute
in interface javax.management.DynamicMBean
attribute
- the attribute with new value to be changed
javax.management.AttributeNotFoundException
- if the required attribute was not found
javax.management.InvalidAttributeValueException
- if the value is inccorrect type
javax.management.MBeanException
- if something bad occures
javax.management.ReflectionException
- if something bad occurespublic javax.management.AttributeList setAttributes(javax.management.AttributeList attributes)
setAttributes
in interface javax.management.DynamicMBean
attributes
- the list of attribute value to be changed
public javax.management.MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo
in interface javax.management.NotificationBroadcaster
getNotificationInfo
in class javax.management.NotificationBroadcasterSupport
public void sendNotification(String msg, String attributeName, String attributeType, Object oldValue, Object newValue)
msg
- the msg to sendattributeName
- the name of the attributeattributeType
- the type of the attributeoldValue
- the old value of the attributenewValue
- the new value of the attribute
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |