|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.management.StandardMBean
org.apache.servicemix.jbi.management.BaseStandardMBean
public class BaseStandardMBean
An MBean wrapper for an Existing Object
| Field Summary | |
|---|---|
protected ExecutorService |
executorService
|
| Constructor Summary | |
|---|---|
BaseStandardMBean(Object object,
Class interfaceMBean,
String description,
MBeanAttributeInfo[] attrs,
MBeanOperationInfo[] ops,
ExecutorService executorService)
Constructor |
|
| Methods inherited from class javax.management.StandardMBean |
|---|
cacheMBeanInfo, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getImpact, getImplementation, getImplementationClass, getMBeanInterface, getParameterName, getParameterName, setImplementation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ExecutorService executorService
| Constructor Detail |
|---|
public BaseStandardMBean(Object object,
Class interfaceMBean,
String description,
MBeanAttributeInfo[] attrs,
MBeanOperationInfo[] ops,
ExecutorService executorService)
throws ReflectionException,
NotCompliantMBeanException
object - interfaceMBean - description - attrs - ops - executorService2 -
ReflectionException
NotCompliantMBeanException| Method Detail |
|---|
public MBeanInfo getMBeanInfo()
getMBeanInfo in interface DynamicMBeangetMBeanInfo in class StandardMBeanpublic ObjectName getObjectName()
public MBeanServer getBeanServer()
public Object getAttribute(String name)
throws AttributeNotFoundException,
MBeanException,
ReflectionException
getAttribute in interface DynamicMBeangetAttribute in class StandardMBeanname -
AttributeNotFoundException
MBeanException
ReflectionException
public void setAttribute(Attribute attr)
throws AttributeNotFoundException,
InvalidAttributeValueException,
MBeanException,
ReflectionException
setAttribute in interface DynamicMBeansetAttribute in class StandardMBeanattr -
AttributeNotFoundException
InvalidAttributeValueException
MBeanException
ReflectionException
public void updateAttribute(String name,
Object value)
name - value - public void propertyChange(PropertyChangeEvent event)
propertyChange in interface PropertyChangeListenerevent - public AttributeList getAttributes(String[] attributes)
getAttributes in interface DynamicMBeangetAttributes in class StandardMBeanattributes - -
array of Attribute names
public AttributeList setAttributes(AttributeList attributes)
setAttributes in interface DynamicMBeansetAttributes in class StandardMBeanattributes -
public Object invoke(String name,
Object[] params,
String[] signature)
throws MBeanException,
ReflectionException
invoke in interface DynamicMBeaninvoke in class StandardMBeanname - params - signature -
MBeanException
ReflectionException
public ObjectName preRegister(MBeanServer mbs,
ObjectName on)
throws Exception
preRegister in interface MBeanRegistrationmbs - on -
Exceptionpublic void postRegister(Boolean done)
postRegister in interface MBeanRegistrationdone -
public void preDeregister()
throws Exception
preDeregister in interface MBeanRegistrationExceptionpublic void postDeregister()
postDeregister in interface MBeanRegistration
public void sendNotification(Notification notification)
throws MBeanException,
RuntimeOperationsException
sendNotification in interface ModelMBeanNotificationBroadcasternotification -
MBeanException
RuntimeOperationsException
public void sendNotification(String text)
throws MBeanException,
RuntimeOperationsException
sendNotification in interface ModelMBeanNotificationBroadcastertext -
MBeanException
RuntimeOperationsException
public void addAttributeChangeNotificationListener(NotificationListener l,
String attrName,
Object handback)
throws MBeanException,
RuntimeOperationsException,
IllegalArgumentException
addAttributeChangeNotificationListener in interface ModelMBeanNotificationBroadcasterl - attrName - handback -
MBeanException
RuntimeOperationsException
IllegalArgumentException
public void removeAttributeChangeNotificationListener(NotificationListener l,
String attrName)
throws MBeanException,
RuntimeOperationsException,
ListenerNotFoundException
removeAttributeChangeNotificationListener in interface ModelMBeanNotificationBroadcasterl - attrName -
MBeanException
RuntimeOperationsException
ListenerNotFoundException
public void sendAttributeChangeNotification(AttributeChangeNotification notification)
throws MBeanException,
RuntimeOperationsException
sendAttributeChangeNotification in interface ModelMBeanNotificationBroadcasternotification -
MBeanException
RuntimeOperationsException
public void sendAttributeChangeNotification(Attribute oldAttr,
Attribute newAttr)
throws MBeanException,
RuntimeOperationsException
sendAttributeChangeNotification in interface ModelMBeanNotificationBroadcasteroldAttr - newAttr -
MBeanException
RuntimeOperationsExceptionpublic final MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo in interface NotificationBroadcaster
public void addNotificationListener(NotificationListener l,
NotificationFilter filter,
Object handle)
throws IllegalArgumentException
addNotificationListener in interface NotificationBroadcasterl - filter - handle -
IllegalArgumentException
public void removeNotificationListener(NotificationListener l)
throws ListenerNotFoundException
removeNotificationListener in interface NotificationBroadcasterl -
ListenerNotFoundException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||