public interface RelationSupportMBean extends Relation
relationsupport类符合标准的设计模式MBean。所以用户可以决定实例化一个relationsupport对象自己为MBean(如下MBean设计模式),将其登记在MBean服务器,然后将其添加在关系服务。
用户也可以创建自己的MBean关系类的时候,它延伸relationsupport,检索所需的接口的实现(见下文)。
也有可能在用户关系MBean类的一个成员是一个relationsupport对象,并委派所有成员实现所需的界面。
relationsupport实现关系的界面(由关系服务处理)。
Modifier and Type | Method and Description |
---|---|
Boolean |
isInRelationService()
返回指定对象是否仍由关系服务处理的内部标志。
|
void |
setRelationServiceManagementFlag(Boolean flag)
指定这种关系是否由关系服务处理。
|
getAllRoles, getReferencedMBeans, getRelationId, getRelationServiceName, getRelationTypeName, getRole, getRoleCardinality, getRoles, handleMBeanUnregistration, retrieveAllRoles, setRole, setRoles
Boolean isInRelationService()
Boolean.TRUE
如果对象仍然是由关系服务和
Boolean.FALSE
否则。
void setRelationServiceManagementFlag(Boolean flag) throws IllegalArgumentException
指定这种关系是否由关系服务处理。
小心,这种方法必须被暴露的关系服务将通过其管理接口访问关系。建议不要使用这种方法。使用它不影响关系服务中关系对象的注册,但会提供关于它的错误信息!
flag
无论关系是由关系服务处理。
IllegalArgumentException
如果空参数
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.