java命名空间javax.management接口mbeanserver的类成员方法:
setattribute定义及介绍
本文导语:
setattribute
void setattribute(objectname name,
attribute attribute)
throws instancenotfoundexception,
attributenotfoundexception,
invalidattributevalueexception,
mbeanexception,
...
void setattribute(objectname name,
attribute attribute)
throws instancenotfoundexception,
attributenotfoundexception,
invalidattributevalueexception,
mbeanexception,
reflectionexception
- 从接口
mbeanserverconnection 复制的描述
- 设置指定 mbean 的特定属性值。通过 mbean 的对象名来标识 mbean。
- 指定者:
- 接口
mbeanserverconnection 中的 setattribute
- 参数:
name - 要设置其属性的 mbean 的名称。attribute - 要设置的属性的标识及其要设置成的值。
- 抛出:
instancenotfoundexception - 如果指定的 mbean 未在该 mbean 服务器中注册。
attributenotfoundexception - 如果指定的属性在 mbean 中是不可访问的。
invalidattributevalueexception - 如果为该属性指定的值无效。
mbeanexception - 包装 mbean 的设置方法所抛出的异常。
reflectionexception - 包装试图调用设置方法时所抛出的 java.lang.exception。- 另请参见:
mbeanserverconnection.getattribute(javax.management.objectname, java.lang.string)