java命名空间javax.management.remote.rmi接口rmiconnection的类成员方法:
setattributes定义及介绍
本文导语:
setattributes
attributelist setattributes(objectname name,
marshalledobject attributes,
subject delegationsubject)
throws instancenotfoundexception,
reflectionexception,
...
setattributes
attributelist setattributes(objectname name,
marshalledobject attributes,
subject delegationsubject)
throws instancenotfoundexception,
reflectionexception,
ioexception
- 处理
mbeanserverconnection.setattributes(objectname, attributelist) 方法。attributelist 参数包装在 marshalledobject 中。
- 参数:
name - 要在其中设置属性的 mbean 的对象名。attributes - 属性列表:要设置的属性的标识及要设置的值,封装在 marshalledobject 中。delegationsubject - 包含委托 principal 的 subject,如果使用了验证 principal,则为 null。
- 返回:
- 原先设置过的带有新值的属性列表。
- 抛出:
instancenotfoundexception - 指定的 mbean 未在 mbean 服务器中注册。
reflectionexception - 尝试调用 dynamic mbean 的 getattributes 方法时出现的异常。
runtimeoperationsexception - 包装了 java.lang.illegalargumentexception:参数中的对象名为 null,或参数中的属性为 null。
securityexception - 如果客户端或委托的 subject(如果有)没有执行此操作的权限。
ioexception - 如果出现通用通信异常。- 另请参见:
getattributes(javax.management.objectname, java.lang.string[], javax.security.auth.subject)