Java Doc for Relation.java in  » EJB-Server-JBoss-4.2.1 » jmx » javax » management » relation » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » EJB Server JBoss 4.2.1 » jmx » javax.management.relation 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.management.relation.Relation

Relation
public interface Relation (Code)
This interface is implemented by an MBean that represents a relation.

Relations with only roles can be created by the relation service using a RelationSupport object.

More complicated relations have to implemented manually. The RelationSupport can be used to help in the implementation.

Any properties or methods must be exposed for management by the implementing MBean.
author:
   Adrian Brock.
version:
   $Revision: 57200 $





Method Summary
public  RoleResultgetAllRoles()
     Retrieves all the roles in this relation.
public  MapgetReferencedMBeans()
     Retrieves MBeans referenced by roles of this relation.

The return value is a map keyed by MBean object names.

public  StringgetRelationId()
     Retrieves the relation id used to identify the relation within the relation service.
public  ObjectNamegetRelationServiceName()
     Retrieves the object name of the relation service this relation is registered with.
public  StringgetRelationTypeName()
     Retrieves the relation type for this relation.
public  ListgetRole(String roleName)
     Retrieves the role for the passed role name.
public  IntegergetRoleCardinality(String roleName)
     Retrieves the number of MBeans in a given role.
Parameters:
  roleName - the role name.
public  RoleResultgetRoles(String[] roleNames)
     Retrieves the roles in this relation with the passed names.
public  voidhandleMBeanUnregistration(ObjectName objectName, String roleName)
    
public  RoleListretrieveAllRoles()
     Retrieve all the roles in this relation without checking the role mode.
public  voidsetRole(Role role)
     Sets the passed role for this relation.

The role is checked according to its role definition in the relation type.

public  RoleResultsetRoles(RoleList roleList)
     Sets the roles.

The roles are checked according to its role definition in the relation type. The role is not valid if there are the wrong number of MBeans, an MBean is of an incorrect class or an MBean does not exist.

A notification RELATION_BASIC_UPDATE is sent when the relation is not an MBean or RELATION_MBEAN_UPDATE when it is for every updated role.

The return role result has a role list for successfully updated roles and an unresolved list for roles not set.
Parameters:
  roleList - the new roles.




Method Detail
getAllRoles
public RoleResult getAllRoles() throws RelationServiceNotRegisteredException(Code)
Retrieves all the roles in this relation. the roles both resolved and unresolved.
throws:
  RelationServiceNotRegisteredException - when the relation serviceis not registered with an MBeanServer.



getReferencedMBeans
public Map getReferencedMBeans()(Code)
Retrieves MBeans referenced by roles of this relation.

The return value is a map keyed by MBean object names. The objects are associated with an ArrayList that contains all the role names the MBean has within this relation. the map of object names and their roles.




getRelationId
public String getRelationId()(Code)
Retrieves the relation id used to identify the relation within the relation service. the unique id.



getRelationServiceName
public ObjectName getRelationServiceName()(Code)
Retrieves the object name of the relation service this relation is registered with. the relation service object name.



getRelationTypeName
public String getRelationTypeName()(Code)
Retrieves the relation type for this relation. the relation type.



getRole
public List getRole(String roleName) throws IllegalArgumentException, RoleNotFoundException, RelationServiceNotRegisteredException(Code)
Retrieves the role for the passed role name. The role must exist and be readable.

The return value is an ArrayList of object names in the role.
Parameters:
  roleName - the role name. the role.
throws:
  IllegalArgumentException - for a null role name.
throws:
  RoleNotFoundException - when there is no such role orit is not readable.
throws:
  RelationServiceNotRegisteredException - when the relation serviceis not registered with an MBeanServer.




getRoleCardinality
public Integer getRoleCardinality(String roleName) throws IllegalArgumentException, RoleNotFoundException(Code)
Retrieves the number of MBeans in a given role.
Parameters:
  roleName - the role name. the number of MBeans.
throws:
  IllegalArgumentException - for a null role name.
throws:
  RoleNotFoundException - when there is no such role.



getRoles
public RoleResult getRoles(String[] roleNames) throws IllegalArgumentException, RelationServiceNotRegisteredException(Code)
Retrieves the roles in this relation with the passed names.
Parameters:
  roleNames - an array of role names the roles both resolved and unresolved.
throws:
  IllegalArgumentException - for a null role names.
throws:
  RelationServiceNotRegisteredException - when the relation serviceis not registered with an MBeanServer.



handleMBeanUnregistration
public void handleMBeanUnregistration(ObjectName objectName, String roleName) throws IllegalArgumentException, RoleNotFoundException, InvalidRoleValueException, RelationServiceNotRegisteredException, RelationTypeNotFoundException, RelationNotFoundException(Code)
The relation service will call this service when an MBean referenced in a role is unregistered.

The object name should be removed from the role.

Calling this method manually may result in incorrect behaviour
Parameters:
  objectName - the object name unregistered.
Parameters:
  roleName - the role the containing the object.
throws:
  RoleNotFoundException - if the role does exist or it is notwritable.
throws:
  InvalidRoleValueException - when the role does not conformto the associated role info.
throws:
  RelationServiceNotRegisteredException - when the relation serviceis not registered with an MBeanServer.
throws:
  RelationTypeNotFoundException - when the relation type hasnot been registered in the relation service.
throws:
  RelationNotFoundException - when this method is called forfor an MBean not registered with the relation service.




retrieveAllRoles
public RoleList retrieveAllRoles()(Code)
Retrieve all the roles in this relation without checking the role mode. the list of roles.



setRole
public void setRole(Role role) throws IllegalArgumentException, RoleNotFoundException, RelationTypeNotFoundException, InvalidRoleValueException, RelationServiceNotRegisteredException, RelationNotFoundException(Code)
Sets the passed role for this relation.

The role is checked according to its role definition in the relation type. The role is not valid if there are the wrong number of MBeans, an MBean is of an incorrect class or an MBean does not exist.

The notification RELATION_BASIC_UPDATE is sent when the relation is not an MBean or RELATION_MBEAN_UPDATE when it is.


Parameters:
  role - the new role.
throws:
  IllegalArgumentException - for a null role.
throws:
  InvalidRoleValueException - if the role is not valid.
throws:
  RoleNotFoundException - if the role is not writable.This test is not performed at initialisation.
throws:
  RelationServiceNotRegisteredException - when the relation serviceis not registered with an MBeanServer.
throws:
  RelationTypeNotFoundException - when the relation type hasnot been registered in the relation service.
throws:
  RelationNotFoundException - when this method is called forfor an MBean not registered with the relation service.




setRoles
public RoleResult setRoles(RoleList roleList) throws IllegalArgumentException, RelationServiceNotRegisteredException, RelationTypeNotFoundException, RelationNotFoundException(Code)
Sets the roles.

The roles are checked according to its role definition in the relation type. The role is not valid if there are the wrong number of MBeans, an MBean is of an incorrect class or an MBean does not exist.

A notification RELATION_BASIC_UPDATE is sent when the relation is not an MBean or RELATION_MBEAN_UPDATE when it is for every updated role.

The return role result has a role list for successfully updated roles and an unresolved list for roles not set.
Parameters:
  roleList - the new roles. the resulting role result.
throws:
  IllegalArgumentException - for a null role name.
throws:
  RelationServiceNotRegisteredException - when the relation serviceis not registered with an MBeanServer.
throws:
  RelationTypeNotFoundException - when the relation type hasnot been registered in the relation service.
throws:
  RelationNotFoundException - when this method is called forfor an MBean not registered with the relation service.




www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.