Relation

Relation

Relation Service로 관리되는 관계를 나타내는 MBean 클래스가 반드시 구현해야 하는 인터페이스예요. 단순 관계(역할만 존재)는 Relation Service가 직접 만들 수 있고(내부적으로 RelationSupport 객체로 처리), 속성·메서드가 필요한 복잡한 관계는 사용자가 Relation 인터페이스를 구현한 클래스를 직접 제공해야 해요.

출처: Java API Reference

본문

Relation Service로 관리되는 관계를 나타내는 MBean 클래스가 반드시 구현해야 하는 인터페이스예요. 단순 관계(역할만 존재)는 Relation Service가 직접 만들 수 있고(내부적으로 RelationSupport 객체로 처리), 속성·메서드가 필요한 복잡한 관계는 사용자가 Relation 인터페이스를 구현한 클래스를 직접 제공해야 해요.

public interface Relation
public List<ObjectName> getRole(String roleName) throws IllegalArgumentException, RoleNotFoundException, RelationServiceNotRegisteredException
public RoleResult getRoles(String[] roleNameArray) throws IllegalArgumentException, RelationServiceNotRegisteredException
public Integer getRoleCardinality(String roleName) throws IllegalArgumentException, RoleNotFoundException
public RoleResult getAllRoles() throws RelationServiceNotRegisteredException
public RoleList retrieveAllRoles()
public void setRole(Role role) throws IllegalArgumentException, RoleNotFoundException, RelationTypeNotFoundException, InvalidRoleValueException, RelationServiceNotRegisteredException, RelationNotFoundException
public RoleResult setRoles(RoleList roleList) throws IllegalArgumentException, RelationServiceNotRegisteredException, RelationTypeNotFoundException, RelationNotFoundException
public void handleMBeanUnregistration(ObjectName objectName, String roleName) throws IllegalArgumentException, RoleNotFoundException, InvalidRoleValueException, RelationServiceNotRegisteredException, RelationTypeNotFoundException, RelationNotFoundException
public Map<ObjectName,List<String>> getReferencedMBeans()
public String getRelationTypeName()
public ObjectName getRelationServiceName()
public String getRelationId()

더 알아보기 (Learn more)

Java 공식 API