java命名空间javax.management.remote.rmi接口rmiconnection的类成员方法:
setattribute定义及介绍
本文导语:
setattribute
void setattribute(objectname name,
marshalledobject attribute,
subject delegationsubject)
throws instancenotfoundexception,
attributenotfoundexception,
invalidattributevalueexcep...
void setattribute(objectname name,
marshalledobject attribute,
subject delegationsubject)
throws instancenotfoundexception,
attributenotfoundexception,
invalidattributevalueexception,
mbeanexception,
reflectionexception,
ioexception
- 处理
mbeanserverconnection.setattribute(objectname, attribute) 方法。attribute 参数包装在 marshalledobject 中。
- 参数:
name - 在其中设置属性的 mbean 的名称。attribute - 要设置的属性的标识及要设置的值,封装在 marshalledobject 中。delegationsubject - 包含委托 principal 的 subject,如果使用了验证 principal,则为 null。
- 抛出:
instancenotfoundexception - 指定的 mbean 未在 mbean 服务器中注册。
attributenotfoundexception - 指定的属性在 mbean 中无法访问。
invalidattributevalueexception - 为属性指定的值无效。
mbeanexception - 包装了由 mbean 的设置方法抛出的异常。
reflectionexception - 包装了尝试调用设置方法时抛出的 java.lang.exception。
runtimeoperationsexception - 包装了 java.lang.illegalargumentexception:参数中的对象名为 null,或参数中的属性为 null。
securityexception - 如果客户端或委托的 subject(如果有)没有执行此操作的权限。
ioexception - 如果出现通用通信异常。- 另请参见:
getattribute(javax.management.objectname, java.lang.string, javax.security.auth.subject)