Java Doc for RelationService.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) 


java.lang.Object
   javax.management.NotificationBroadcasterSupport
      javax.management.relation.RelationService

RelationService
public class RelationService extends NotificationBroadcasterSupport implements RelationServiceMBean,MBeanRegistration,NotificationListener(Code)
Implements the management interface for a relation service.

Revisions:

20020311 Adrian Brock:

  • Fixed setRole for external MBean and exception handling
  • EmptyStack exception in purging
  • Unregistered mbeans should only contain relation mbeans
  • Unregister notifications not working after change to MBean Filter

20020312 Adrian Brock:

  • Fixed wrong exception types thrown and missing exceptions
  • Allow null role list in createRelation

See Also:   RelationServiceMBean
author:
   Adrian Brock.
version:
   $Revision: 57200 $



Constructor Summary
public  RelationService(boolean purgeFlag)
    

Method Summary
public synchronized  voidaddRelation(ObjectName relation)
    
public synchronized  voidaddRelationType(RelationType relationType)
    
public  IntegercheckRoleReading(String roleName, String relationTypeName)
    
public  IntegercheckRoleWriting(Role role, String relationTypeName, Boolean initFlag)
    
public synchronized  voidcreateRelation(String relationId, String relationTypeName, RoleList roleList)
    
public synchronized  voidcreateRelationType(String relationTypeName, RoleInfo[] roleInfos)
    
public  MapfindAssociatedMBeans(ObjectName mbeanName, String relationTypeName, String roleName)
    
public  MapfindReferencingRelations(ObjectName mbeanName, String relationTypeName, String roleName)
    
public  ListfindRelationsOfType(String relationTypeName)
    
public  ListgetAllRelationIds()
    
public  ListgetAllRelationTypeNames()
    
public  RoleResultgetAllRoles(String relationId)
    
public  MBeanNotificationInfo[]getNotificationInfo()
    
public  booleangetPurgeFlag()
    
public  MapgetReferencedMBeans(String relationId)
    
public  StringgetRelationTypeName(String relationId)
    
public  ListgetRole(String relationId, String roleName)
    
public  IntegergetRoleCardinality(String relationId, String roleName)
    
public  RoleInfogetRoleInfo(String relationTypeName, String roleInfoName)
    
public  ListgetRoleInfos(String relationTypeName)
    
public  RoleResultgetRoles(String relationId, String[] roleNames)
    
public  voidhandleNotification(Notification notification, Object handback)
    
public  BooleanhasRelation(String relationId)
    
public  voidisActive()
    
public  StringisRelation(ObjectName objectName)
    
public  ObjectNameisRelationMBean(String relationId)
    
public  voidpostDeregister()
    
public  voidpostRegister(Boolean registered)
    
public  voidpreDeregister()
    
public  ObjectNamepreRegister(MBeanServer server, ObjectName objectName)
    
public  voidpurgeRelations()
    
public synchronized  voidremoveRelation(String relationId)
    
public synchronized  voidremoveRelationType(String relationTypeName)
    
public  voidsendRelationCreationNotification(String relationId)
    
public  voidsendRelationRemovalNotification(String relationId, List unregMBeans)
    
public  voidsendRoleUpdateNotification(String relationId, Role newRole, List oldRoleValue)
    
public  voidsetPurgeFlag(boolean value)
    
public  voidsetRole(String relationId, Role role)
    
public  RoleResultsetRoles(String relationId, RoleList roles)
    
public  voidupdateRoleMap(String relationId, Role newRole, List oldRoleValue)
    


Constructor Detail
RelationService
public RelationService(boolean purgeFlag)(Code)
Construct a new relation service
Parameters:
  purgeFlag - whether immediate purges should be performed,pass true for immediate, false otherwise




Method Detail
addRelation
public synchronized void addRelation(ObjectName relation) throws IllegalArgumentException, NoSuchMethodException, RelationServiceNotRegisteredException, InvalidRelationIdException, InvalidRelationServiceException, RelationTypeNotFoundException, InvalidRoleValueException, RoleNotFoundException, InstanceNotFoundException(Code)



addRelationType
public synchronized void addRelationType(RelationType relationType) throws IllegalArgumentException, InvalidRelationTypeException(Code)



checkRoleReading
public Integer checkRoleReading(String roleName, String relationTypeName) throws IllegalArgumentException, RelationTypeNotFoundException(Code)



checkRoleWriting
public Integer checkRoleWriting(Role role, String relationTypeName, Boolean initFlag) throws IllegalArgumentException, RelationTypeNotFoundException(Code)



createRelation
public synchronized void createRelation(String relationId, String relationTypeName, RoleList roleList) throws IllegalArgumentException, RelationServiceNotRegisteredException, InvalidRelationIdException, RelationTypeNotFoundException, InvalidRoleValueException, RoleNotFoundException(Code)



createRelationType
public synchronized void createRelationType(String relationTypeName, RoleInfo[] roleInfos) throws IllegalArgumentException, InvalidRelationTypeException(Code)



findAssociatedMBeans
public Map findAssociatedMBeans(ObjectName mbeanName, String relationTypeName, String roleName) throws IllegalArgumentException(Code)



findReferencingRelations
public Map findReferencingRelations(ObjectName mbeanName, String relationTypeName, String roleName) throws IllegalArgumentException(Code)



findRelationsOfType
public List findRelationsOfType(String relationTypeName) throws IllegalArgumentException, RelationTypeNotFoundException(Code)



getAllRelationIds
public List getAllRelationIds()(Code)



getAllRelationTypeNames
public List getAllRelationTypeNames()(Code)



getAllRoles
public RoleResult getAllRoles(String relationId) throws IllegalArgumentException, RelationNotFoundException, RelationServiceNotRegisteredException(Code)



getNotificationInfo
public MBeanNotificationInfo[] getNotificationInfo()(Code)



getPurgeFlag
public boolean getPurgeFlag()(Code)



getReferencedMBeans
public Map getReferencedMBeans(String relationId) throws IllegalArgumentException, RelationNotFoundException(Code)



getRelationTypeName
public String getRelationTypeName(String relationId) throws IllegalArgumentException, RelationNotFoundException(Code)



getRole
public List getRole(String relationId, String roleName) throws IllegalArgumentException, RelationNotFoundException, RelationServiceNotRegisteredException, RoleNotFoundException(Code)



getRoleCardinality
public Integer getRoleCardinality(String relationId, String roleName) throws IllegalArgumentException, RelationNotFoundException, RoleNotFoundException(Code)



getRoleInfo
public RoleInfo getRoleInfo(String relationTypeName, String roleInfoName) throws IllegalArgumentException, RelationTypeNotFoundException, RoleInfoNotFoundException(Code)



getRoleInfos
public List getRoleInfos(String relationTypeName) throws IllegalArgumentException, RelationTypeNotFoundException(Code)



getRoles
public RoleResult getRoles(String relationId, String[] roleNames) throws IllegalArgumentException, RelationNotFoundException, RelationServiceNotRegisteredException(Code)



handleNotification
public void handleNotification(Notification notification, Object handback)(Code)



hasRelation
public Boolean hasRelation(String relationId) throws IllegalArgumentException(Code)



isActive
public void isActive() throws RelationServiceNotRegisteredException(Code)



isRelation
public String isRelation(ObjectName objectName) throws IllegalArgumentException(Code)



isRelationMBean
public ObjectName isRelationMBean(String relationId) throws IllegalArgumentException, RelationNotFoundException(Code)



postDeregister
public void postDeregister()(Code)



postRegister
public void postRegister(Boolean registered)(Code)



preDeregister
public void preDeregister() throws Exception(Code)



preRegister
public ObjectName preRegister(MBeanServer server, ObjectName objectName) throws Exception(Code)



purgeRelations
public void purgeRelations() throws RelationServiceNotRegisteredException(Code)



removeRelation
public synchronized void removeRelation(String relationId) throws IllegalArgumentException, RelationNotFoundException, RelationServiceNotRegisteredException(Code)



removeRelationType
public synchronized void removeRelationType(String relationTypeName) throws IllegalArgumentException, RelationTypeNotFoundException, RelationServiceNotRegisteredException(Code)



sendRelationCreationNotification
public void sendRelationCreationNotification(String relationId) throws IllegalArgumentException, RelationNotFoundException(Code)



sendRelationRemovalNotification
public void sendRelationRemovalNotification(String relationId, List unregMBeans) throws IllegalArgumentException, RelationNotFoundException(Code)



sendRoleUpdateNotification
public void sendRoleUpdateNotification(String relationId, Role newRole, List oldRoleValue) throws IllegalArgumentException, RelationNotFoundException(Code)



setPurgeFlag
public void setPurgeFlag(boolean value)(Code)



setRole
public void setRole(String relationId, Role role) throws RelationServiceNotRegisteredException, IllegalArgumentException, RelationNotFoundException, RoleNotFoundException, InvalidRoleValueException(Code)



setRoles
public RoleResult setRoles(String relationId, RoleList roles) throws IllegalArgumentException, RelationServiceNotRegisteredException, RelationNotFoundException(Code)



updateRoleMap
public void updateRoleMap(String relationId, Role newRole, List oldRoleValue) throws IllegalArgumentException, RelationServiceNotRegisteredException, RelationNotFoundException(Code)



Methods inherited from javax.management.NotificationBroadcasterSupport
public void addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)(Code)(Java Doc)
public MBeanNotificationInfo[] getNotificationInfo()(Code)(Java Doc)
protected void handleNotification(NotificationListener listener, Notification notification, Object handback)(Code)(Java Doc)
public void removeNotificationListener(NotificationListener listener) throws ListenerNotFoundException(Code)(Java Doc)
public void removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws ListenerNotFoundException(Code)(Java Doc)
public void sendNotification(Notification notification)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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