01: /**
02: * Copyright (C) The MX4J Contributors.
03: * All rights reserved.
04: *
05: * This software is distributed under the terms of the MX4J License version 1.0.
06: * See the terms of the MX4J License in the documentation provided with this software.
07: */package javax.management.relation;
08:
09: import java.util.List;
10: import java.util.Map;
11: import javax.management.ObjectName;
12:
13: /**
14: * @version $Revision: 1.4 $
15: */
16: public interface Relation {
17: public List getRole(String roleName)
18: throws IllegalArgumentException, RoleNotFoundException,
19: RelationServiceNotRegisteredException;
20:
21: public RoleResult getRoles(String[] roleNames)
22: throws IllegalArgumentException,
23: RelationServiceNotRegisteredException;
24:
25: public Integer getRoleCardinality(String roleName)
26: throws IllegalArgumentException, RoleNotFoundException;
27:
28: public RoleResult getAllRoles()
29: throws RelationServiceNotRegisteredException;
30:
31: public RoleList retrieveAllRoles();
32:
33: public void setRole(Role role) throws IllegalArgumentException,
34: RoleNotFoundException, RelationTypeNotFoundException,
35: InvalidRoleValueException,
36: RelationServiceNotRegisteredException,
37: RelationNotFoundException;
38:
39: public RoleResult setRoles(RoleList roleList)
40: throws IllegalArgumentException,
41: RelationServiceNotRegisteredException,
42: RelationTypeNotFoundException, RelationNotFoundException;
43:
44: public void handleMBeanUnregistration(ObjectName objectName,
45: String roleName) throws IllegalArgumentException,
46: RoleNotFoundException, InvalidRoleValueException,
47: RelationServiceNotRegisteredException,
48: RelationTypeNotFoundException, RelationNotFoundException;
49:
50: public Map getReferencedMBeans();
51:
52: public String getRelationTypeName();
53:
54: public ObjectName getRelationServiceName();
55:
56: public String getRelationId();
57: }
|