org.eclipse.jetty.jmx
类 ObjectMBean
java.lang.Object
org.eclipse.jetty.jmx.ObjectMBean
- 所有已实现的接口:
- DynamicMBean
- 直接已知子类:
- AbstractHandlerMBean, DeploymentManagerMBean, FilterMappingMBean, HolderMBean, LogMBean, ServerMBean, ServletMappingMBean
public class ObjectMBean
- extends Object
- implements DynamicMBean
ObjectMBean.
A dynamic MBean that can wrap an arbitary Object instance.
the attributes and methods exposed by this bean are controlled by
the merge of property bundles discovered by names related to all
superclasses and all superinterfaces.
Attributes and methods exported may be "Object" and must exist on the
wrapped object, or "MBean" and must exist on a subclass of OBjectMBean
or "MObject" which exists on the wrapped object, but whose values are
converted to MBean object names.
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_managed
protected Object _managed
ObjectMBean
public ObjectMBean(Object managedObject)
mbeanFor
public static Object mbeanFor(Object o)
- Create MBean for Object. Attempts to create an MBean for the object by searching the package
and class name space. For example an object of the type
class com.acme.MyClass extends com.acme.util.BaseClass implements com.acme.Iface
Then this method would look for the following classes:
- com.acme.jmx.MyClassMBean
- com.acme.util.jmx.BaseClassMBean
- org.eclipse.jetty.jmx.ObjectMBean
- 参数:
o - The object
- 返回:
- A new instance of an MBean for the object or null.
getManagedObject
public Object getManagedObject()
getObjectName
public ObjectName getObjectName()
getObjectContextBasis
public String getObjectContextBasis()
getObjectNameBasis
public String getObjectNameBasis()
setMBeanContainer
protected void setMBeanContainer(MBeanContainer container)
getMBeanContainer
public MBeanContainer getMBeanContainer()
getMBeanInfo
public MBeanInfo getMBeanInfo()
- 指定者:
- 接口
DynamicMBean 中的 getMBeanInfo
getAttribute
public Object getAttribute(String name)
throws AttributeNotFoundException,
MBeanException,
ReflectionException
- 指定者:
- 接口
DynamicMBean 中的 getAttribute
- 抛出:
AttributeNotFoundException
MBeanException
ReflectionException
getAttributes
public AttributeList getAttributes(String[] names)
- 指定者:
- 接口
DynamicMBean 中的 getAttributes
setAttribute
public void setAttribute(Attribute attr)
throws AttributeNotFoundException,
InvalidAttributeValueException,
MBeanException,
ReflectionException
- 指定者:
- 接口
DynamicMBean 中的 setAttribute
- 抛出:
AttributeNotFoundException
InvalidAttributeValueException
MBeanException
ReflectionException
setAttributes
public AttributeList setAttributes(AttributeList attrs)
- 指定者:
- 接口
DynamicMBean 中的 setAttributes
invoke
public Object invoke(String name,
Object[] params,
String[] signature)
throws MBeanException,
ReflectionException
- 指定者:
- 接口
DynamicMBean 中的 invoke
- 抛出:
MBeanException
ReflectionException
defineAttribute
public MBeanAttributeInfo defineAttribute(String name,
String metaData)
- Define an attribute on the managed object. The meta data is defined by looking for standard
getter and setter methods. Descriptions are obtained with a call to findDescription with the
attribute name.
- 参数:
name - metaData - "description" or "access:description" or "type:access:description" where type is
one of:
- "Object" The field/method is on the managed object.
- "MBean" The field/method is on the mbean proxy object
- "MObject" The field/method is on the managed object and value should be converted to MBean reference
- "MMBean" The field/method is on the mbean proxy object and value should be converted to MBean reference
the access is either "RW" or "RO".
Copyright © 2013. All Rights Reserved.