org.apache.openejb.monitoring
Class ManagedMBean
java.lang.Object
org.apache.openejb.monitoring.ManagedMBean
- All Implemented Interfaces:
- javax.management.DynamicMBean
public class ManagedMBean
- extends java.lang.Object
- implements javax.management.DynamicMBean
- Version:
- $Rev$ $Date$
Nested Class Summary |
static class |
ManagedMBean.FieldMember
Implementation of Member for java.lang.reflect.Field
Used for injection targets that are annotated fields |
static interface |
ManagedMBean.Member
Small utility interface used to allow polymorphing
of java.lang.reflect.Method and java.lang.reflect.Field
so that each can be treated as injection targets using
the same code. |
static class |
ManagedMBean.MethodMember
Implementation of Member for java.lang.reflect.Method
Used for injection targets that are annotated methods |
Method Summary |
java.lang.Object |
getAttribute(java.lang.String s)
|
javax.management.AttributeList |
getAttributes(java.lang.String[] strings)
|
javax.management.MBeanInfo |
getMBeanInfo()
|
java.lang.Object |
invoke(java.lang.String operation,
java.lang.Object[] args,
java.lang.String[] types)
|
void |
setAttribute(javax.management.Attribute attribute)
|
javax.management.AttributeList |
setAttributes(javax.management.AttributeList attributeList)
|
void |
setAttributesFilter(java.lang.String exclude,
java.lang.String include)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ManagedMBean
public ManagedMBean(java.lang.Object managed)
getAttribute
public java.lang.Object getAttribute(java.lang.String s)
throws javax.management.AttributeNotFoundException,
javax.management.MBeanException,
javax.management.ReflectionException
- Specified by:
getAttribute
in interface javax.management.DynamicMBean
- Throws:
javax.management.AttributeNotFoundException
javax.management.MBeanException
javax.management.ReflectionException
setAttribute
public void setAttribute(javax.management.Attribute attribute)
throws javax.management.AttributeNotFoundException,
javax.management.InvalidAttributeValueException,
javax.management.MBeanException,
javax.management.ReflectionException
- Specified by:
setAttribute
in interface javax.management.DynamicMBean
- Throws:
javax.management.AttributeNotFoundException
javax.management.InvalidAttributeValueException
javax.management.MBeanException
javax.management.ReflectionException
getAttributes
public javax.management.AttributeList getAttributes(java.lang.String[] strings)
- Specified by:
getAttributes
in interface javax.management.DynamicMBean
setAttributes
public javax.management.AttributeList setAttributes(javax.management.AttributeList attributeList)
- Specified by:
setAttributes
in interface javax.management.DynamicMBean
invoke
public java.lang.Object invoke(java.lang.String operation,
java.lang.Object[] args,
java.lang.String[] types)
throws javax.management.MBeanException,
javax.management.ReflectionException
- Specified by:
invoke
in interface javax.management.DynamicMBean
- Throws:
javax.management.MBeanException
javax.management.ReflectionException
getMBeanInfo
public javax.management.MBeanInfo getMBeanInfo()
- Specified by:
getMBeanInfo
in interface javax.management.DynamicMBean
setAttributesFilter
public void setAttributesFilter(java.lang.String exclude,
java.lang.String include)
Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.