|
JavaTM Platform Standard Ed. 6 |
|||||||||
��һ���� ��һ���� | ��� ��� ������ | |||||||||
ժҪ�� Ƕ�� | �ֶ� | ���췽�� | ���� | ��ϸ��Ϣ�� �ֶ� | ���췽�� | ���� |
public interface Relation
�˽ӿڱ������κ� MBean �ࣨ������ʾΪһ��ʹ�� Relation Service �����Ĺ�ϵ����ʵ�֡�
�Ĺ�ϵ����ֻ�н�ɫ��û�����Ի��������� Relation Service ֱ�Ӵ�������ʾΪ RelationSupport ������ Relation Service �ڲ���������
����û�ϣ����ʾ�����ӵĹ�ϵ���������Ժ�/��������������ṩ�Լ�ʵ�� Relation �ӿڵ��ࡣ�����ͨ���� RelationSupport ��̳еõ���Ҳ����ͨ��ʵ�ָýӿڵõ���ȫȨ����ί�и� RelationSupport �����Ա����
ָ���������û���ϵ����Ϊ���������Ժ�/������Щ��Ҫ��Զ�̹�����������ˣ�����ζ���κ��û���ϵ�������һ�� MBean �ࡣ
����ժҪ | |
---|---|
RoleResult |
getAllRoles()
���ظù�ϵ�д��ڵ����н�ɫ�� |
Map<ObjectName,List<String>> |
getReferencedMBeans()
�����ڸù�ϵ�ĸ��ֽ�ɫ�����õ� MBean�� |
String |
getRelationId()
���ع�ϵ��ʶ��������Ψһ��ʶ Relation Service �ڵĹ�ϵ���� |
ObjectName |
getRelationServiceName()
���ش�����ϵ�� Relation Service �� ObjectName�� |
String |
getRelationTypeName()
������ع�ϵ���͵����ơ� |
List<ObjectName> |
getRole(String roleName)
����������ɫ���ƵĽ�ɫֵ�� |
Integer |
getRoleCardinality(String roleName)
���ص�ǰ�ڸ�����ɫ�����õ� MBean ���� |
RoleResult |
getRoles(String[] roleNameArray)
�������и������ƵĽ�ɫֵ�� |
void |
handleMBeanUnregistration(ObjectName objectName,
String roleName)
��ע����ɫ�����õ� MBean ʱ�� Relation Service ʹ�õĻص��� |
RoleList |
retrieveAllRoles()
���ع�ϵ�е����н�ɫ��������ȡģʽ�� |
void |
setRole(Role role)
���ø�����ɫ�� |
RoleResult |
setRoles(RoleList roleList)
���ø����Ľ�ɫ�� |
������ϸ��Ϣ |
---|
List<ObjectName> getRole(String roleName) throws IllegalArgumentException, RoleNotFoundException, RelationServiceNotRegisteredException
���չ�ϵ���ͼ���ɫ�Ƿ���ڼ��Ƿ�ɶ���
roleName
- ��ɫ����
IllegalArgumentException
- ���Ϊ null ��ɫ����
RoleNotFoundException
- �����
- �����ھ��и������ƵĽ�ɫ
- ��ɫ���ɶ���
RelationServiceNotRegisteredException
- ��� Relation Service δ�� MBean Server ��ע��setRole(javax.management.relation.Role)
RoleResult getRoles(String[] roleNameArray) throws IllegalArgumentException, RelationServiceNotRegisteredException
���չ�ϵ���ͼ��ÿ����ɫ�Ƿ���ڼ��Ƿ�ɶ���
roleNameArray
- Ҫ�����Ľ�ɫ���Ƶ�����
IllegalArgumentException
- ����� null ��ɫ����
RelationServiceNotRegisteredException
- ��� Relation Service δ�� MBean Server ��ע�ᡣsetRoles(javax.management.relation.RoleList)
Integer getRoleCardinality(String roleName) throws IllegalArgumentException, RoleNotFoundException
roleName
- ��ɫ����
IllegalArgumentException
- ����� null ��ɫ����
RoleNotFoundException
- ��������ھ��и������ƵĽ�ɫRoleResult getAllRoles() throws RelationServiceNotRegisteredException
RelationServiceNotRegisteredException
- ��� Relation Service δ�� MBean Server ��ע��RoleList retrieveAllRoles()
void setRole(Role role) throws IllegalArgumentException, RoleNotFoundException, RelationTypeNotFoundException, InvalidRoleValueException, RelationServiceNotRegisteredException, RelationNotFoundException
���������ڹ�ϵ�Ĺ�ϵ�������ṩ����Ӧ��ɫ�������ɫ
������֪ͨ�������� RELATION_BASIC_UPDATE �� RELATION_MBEAN_UPDATE �� RelationNotification������ȡ���ڸù�ϵ�Ƿ�Ϊ MBean��
role
- Ҫ���õĽ�ɫ�����ƺ���ֵ��
IllegalArgumentException
- ����� null ��ɫ��
RoleNotFoundException
- ��������ھ���ָ�����ƵĽ�ɫ�����߸ý�ɫ����д����ʼ����ɫʱδִ��д�����ģʽ���ԣ���
InvalidRoleValueException
- ���Ϊ��ɫ�ṩ��ֵ��Ч�����磺
- ����ֵ�����õ� MBean ��С����������С�̶ȣ�
- �ṩ��ֵ�����õ� MBean ���������������̶ȣ�
- ��ֵ�����õ� MBean ��һ�������Ǹý�ɫ������ MBean ��Ķ���
- ���������Ϊ�ý�ɫ�ṩ�� MBean��
RelationServiceNotRegisteredException
- ��� Relation Service δ�� MBean Server ��ע�ᡣ
RelationTypeNotFoundException
- ����� Relation Service ����δ�����ù�ϵ���͡�
RelationNotFoundException
- �����δ�� Relation Service �����ӹ�ϵ��getRole(java.lang.String)
RoleResult setRoles(RoleList roleList) throws IllegalArgumentException, RelationServiceNotRegisteredException, RelationTypeNotFoundException, RelationNotFoundException
���������ڹ�ϵ�Ĺ�ϵ�������ṩ����Ӧ��ɫ�������ɫ
ÿ�����µĽ�ɫ������һ��֪ͨ�������� RELATION_BASIC_UPDATE �� RELATION_MBEAN_UPDATE �� RelationNotification������ȡ���ڸù�ϵ�Ƿ�Ϊ MBean����
roleList
- Ҫ���õĽ�ɫ�б�
IllegalArgumentException
- ����� null ��ɫ�б���
RelationServiceNotRegisteredException
- ��� Relation Service δ�� MBean Server ��ע�
RelationTypeNotFoundException
- ����� Relation Service ����δ�����ù�ϵ���ͣ�
RelationNotFoundException
- �����δ�� Relation Service �����ӹ�ϵ MBean��getRoles(java.lang.String[])
void handleMBeanUnregistration(ObjectName objectName, String roleName) throws IllegalArgumentException, RoleNotFoundException, InvalidRoleValueException, RelationServiceNotRegisteredException, RelationTypeNotFoundException, RelationNotFoundException
Relation Service �����ô˷��������øù�ϵ��ȡ�ж�����ӳ����ע����Ӱ�졣
С�ģ��������û����ô˷�����
��ǰʵ����Ϊ�����䵱ǰֵ�����õ� MBean �� ObjectName �б���������ע����ֵ���ý�ɫ��
objectName
- ע���� MBean �� ObjectNameroleName
- ���������� MBean �Ľ�ɫ����
IllegalArgumentException
- ����� null ������
RoleNotFoundException
- �����ɫ���ڹ�ϵ�л�д��
InvalidRoleValueException
- �����ɫֵ����ѭ��ؽ�ɫ��Ϣ������Զ�����ڴ� Relation Service �е���ʱ��������
RelationServiceNotRegisteredException
- ��� Relation Service δ�� MBean Server ע�
RelationTypeNotFoundException
- ����� Relation Service ����δ�����ù�ϵ���ͣ�
RelationNotFoundException
- ���δ�� Relation Service �����ӵĹ�ϵ MBean ���ô˷�����Map<ObjectName,List<String>> getReferencedMBeans()
ObjectName -> ArrayList of String����ɫ����
String getRelationTypeName()
ObjectName getRelationServiceName()
String getRelationId()
|
JavaTM Platform Standard Ed. 6 |
|||||||||
��һ���� ��һ���� | ��� ��� ������ | |||||||||
ժҪ�� Ƕ�� | �ֶ� | ���췽�� | ���� | ��ϸ��Ϣ�� �ֶ� | ���췽�� | ���� |
��Ȩ���� 2007 Sun Microsystems, Inc. ��������Ȩ���� ����������֤��������������ĵ����·ַ�������