| Package | Description | 
|---|---|
| javax.management.relation | Provides the definition of the Relation Service. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | RelationServiceMBean. addRelation(ObjectName relationObjectName)Adds an MBean created by the user (and registered by him in the MBean
 Server) as a relation in the Relation Service. | 
| void | RelationService. addRelation(ObjectName relationObjectName)Adds an MBean created by the user (and registered by him in the MBean
 Server) as a relation in the Relation Service. | 
| void | RelationServiceMBean. createRelation(String relationId,
              String relationTypeName,
              RoleList roleList)Creates a simple relation (represented by a RelationSupport object) of
 given relation type, and adds it in the Relation Service. | 
| void | RelationService. createRelation(String relationId,
              String relationTypeName,
              RoleList roleList)Creates a simple relation (represented by a RelationSupport object) of
 given relation type, and adds it in the Relation Service. | 
| void | RelationSupport. handleMBeanUnregistration(ObjectName objectName,
                         String roleName)Callback used by the Relation Service when a MBean referenced in a role
 is unregistered. | 
| void | Relation. handleMBeanUnregistration(ObjectName objectName,
                         String roleName)Callback used by the Relation Service when a MBean referenced in a role
 is unregistered. | 
| void | RelationSupport. setRole(Role role)Sets the given role. | 
| void | Relation. setRole(Role role)Sets the given role. | 
| void | RelationServiceMBean. setRole(String relationId,
       Role role)Sets the given role in given relation. | 
| void | RelationService. setRole(String relationId,
       Role role)Sets the given role in given relation. | 
| Constructor and Description | 
|---|
| RelationSupport(String relationId,
               ObjectName relationServiceName,
               MBeanServer relationServiceMBeanServer,
               String relationTypeName,
               RoleList list)Creates a  RelationSupportobject. | 
| RelationSupport(String relationId,
               ObjectName relationServiceName,
               String relationTypeName,
               RoleList list)Creates a  RelationSupportobject. | 
 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, 2025, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.