public interface DynamicMBean
Modifier and Type | Method and Description |
---|---|
Object |
getAttribute(String attribute)
得到的动态MBean的特定属性的值。
|
AttributeList |
getAttributes(String[] attributes)
得到的动态MBean的几个属性的值。
|
MBeanInfo |
getMBeanInfo()
提供暴露的属性和行为的动态MBean使用mbeaninfo对象。
|
Object |
invoke(String actionName, Object[] params, String[] signature)
让一个动作被调用的动态MBean。
|
void |
setAttribute(Attribute attribute)
整套动态MBean的特定属性的值。
|
AttributeList |
setAttributes(AttributeList attributes)
设置动态MBean的几个属性的值。
|
Object getAttribute(String attribute) throws AttributeNotFoundException, MBeanException, ReflectionException
attribute
-属性的名称进行检索
AttributeNotFoundException
MBeanException
-包装
java.lang.Exception
通过MBean的吸气剂扔。
ReflectionException
-包装
java.lang.Exception
扔在试图调用getter。
setAttribute(javax.management.Attribute)
void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException
attribute
-属性要设置的识别和可设置的值。
AttributeNotFoundException
InvalidAttributeValueException
MBeanException
-包装
java.lang.Exception
通过MBean的setter抛出。
ReflectionException
-包装
java.lang.Exception
扔在试图调用MBean的二传手。
getAttribute(java.lang.String)
AttributeList getAttributes(String[] attributes)
attributes
-目录的属性进行检索。
setAttributes(javax.management.AttributeList)
AttributeList setAttributes(AttributeList attributes)
attributes
-目录属性:属性的识别是集和它们的值被设置为。
getAttributes(java.lang.String[])
Object invoke(String actionName, Object[] params, String[] signature) throws MBeanException, ReflectionException
actionName
-名字的动作被调用。
params
-一个数组包含的参数需要设置,当调用动作。
signature
-一个数组包含行动的签名。类的对象将通过同一个类加载器加载的一个用于装载MBean的动作被调用。
MBeanException
-包装
java.lang.Exception
通过MBean的方法被调用。
ReflectionException
-包装
java.lang.Exception
扔在试图调用的方法
MBeanInfo getMBeanInfo()
MBeanInfo
允许所有的属性和行为的动态MBean暴露被检索。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.