java命名空间javax.management.remote.rmi类rmiconnectionimpl_stub的类成员方法:
setattribute定义及介绍
本文导语:
setattribute
public void setattribute(objectname $param_objectname_1,
marshalledobject $param_marshalledobject_2,
subject $param_subject_3)
throws ioexception,
attributenotfoundexception,
...
public void setattribute(objectname $param_objectname_1,
marshalledobject $param_marshalledobject_2,
subject $param_subject_3)
throws ioexception,
attributenotfoundexception,
instancenotfoundexception,
invalidattributevalueexception,
mbeanexception,
reflectionexception
- 从接口
rmiconnection 复制的描述
- 处理
mbeanserverconnection.setattribute(objectname, attribute) 方法。attribute 参数包装在 marshalledobject 中。
- 指定者:
- 接口
rmiconnection 中的 setattribute
- 参数:
$param_objectname_1 - 在其中设置属性的 mbean 的名称。$param_marshalledobject_2 - 要设置的属性的标识及要设置的值,封装在 marshalledobject 中。$param_subject_3 - 包含委托 principal 的 subject,如果使用了验证 principal,则为 null。
- 抛出:
ioexception - 如果出现通用通信异常。
attributenotfoundexception - 指定的属性在 mbean 中无法访问。
instancenotfoundexception - 指定的 mbean 未在 mbean 服务器中注册。
invalidattributevalueexception - 为属性指定的值无效。
mbeanexception - 包装了由 mbean 的设置方法抛出的异常。
reflectionexception - 包装了尝试调用设置方法时抛出的 java.lang.exception。- 另请参见:
rmiconnection.getattribute(javax.management.objectname, java.lang.string, javax.security.auth.subject)