Java Doc for RelationNotification.java in  » JMX » jfoxmx » 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 » JMX » jfoxmx » javax.management.relation 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.management.Notification
   javax.management.relation.RelationNotification

RelationNotification
public class RelationNotification extends Notification (Code)
A RelationNotification notification is sent when a relation is created via the Relation Service, or a MBean is added as a relation in the Relation Service, or a role is updated in a relation, or a relation is removed from the Relation Service
author:
   Young Yang


Field Summary
final public static  StringRELATION_BASIC_CREATION
    
final public static  StringRELATION_BASIC_REMOVAL
    
final public static  StringRELATION_BASIC_UPDATE
    
final public static  StringRELATION_MBEAN_CREATION
    
final public static  StringRELATION_MBEAN_REMOVAL
    
final public static  StringRELATION_MBEAN_UPDATE
    

Constructor Summary
public  RelationNotification(String theNtfType, Object theSrcObj, long TheSeqNbr, long theTimeStamp, String theMsg, String theRelId, String theRelTypeName, ObjectName theRelObjName, List theUnregMBeanList)
     Creates a notification for either a relation creation (RelationSupport object created internally in the Relation Service, or a MBean added as a relation) or for a relation removal from the Relation Service
Parameters:
  theNtfType - type of the notification; either:

- RELATION_BASIC_CREATION

- RELATION_MBEAN_CREATION

- RELATION_BASIC_REMOVAL

- RELATION_MBEAN_REMOVAL
Parameters:
  theSrcObj - source object, sending the notification.

public  RelationNotification(String theNtfType, Object theSrcObj, long TheSeqNbr, long theTimeStamp, String theMsg, String theRelId, String theRelTypeName, ObjectName theRelObjName, String theRoleName, List theNewRoleValue, List theOldRoleValue)
     Creates a notification for a role update in a relation
Parameters:
  theNtfType - type of the notification; either:

- RELATION_BASIC_UPDATE

- RELATION_MBEAN_UPDATE
Parameters:
  theSrcObj - source object, sending the notification.


Method Summary
public  ListgetMBeansToUnregister()
    
public  ListgetNewRoleValue()
    
public  ObjectNamegetObjectName()
    
public  ListgetOldRoleValue()
    
public  StringgetRelationId()
    
public  StringgetRelationTypeName()
    
public  StringgetRoleName()
    

Field Detail
RELATION_BASIC_CREATION
final public static String RELATION_BASIC_CREATION(Code)
Type for the creation of an internal relation



RELATION_BASIC_REMOVAL
final public static String RELATION_BASIC_REMOVAL(Code)
Type for the removal from the Relation Service of an internal relation



RELATION_BASIC_UPDATE
final public static String RELATION_BASIC_UPDATE(Code)
Type for an update of an internal relation



RELATION_MBEAN_CREATION
final public static String RELATION_MBEAN_CREATION(Code)
Type for the relation MBean added into the Relation Service



RELATION_MBEAN_REMOVAL
final public static String RELATION_MBEAN_REMOVAL(Code)
Type for the removal from the Relation Service of a relation MBean



RELATION_MBEAN_UPDATE
final public static String RELATION_MBEAN_UPDATE(Code)
Type for the update of a relation MBean




Constructor Detail
RelationNotification
public RelationNotification(String theNtfType, Object theSrcObj, long TheSeqNbr, long theTimeStamp, String theMsg, String theRelId, String theRelTypeName, ObjectName theRelObjName, List theUnregMBeanList) throws IllegalArgumentException(Code)
Creates a notification for either a relation creation (RelationSupport object created internally in the Relation Service, or a MBean added as a relation) or for a relation removal from the Relation Service
Parameters:
  theNtfType - type of the notification; either:

- RELATION_BASIC_CREATION

- RELATION_MBEAN_CREATION

- RELATION_BASIC_REMOVAL

- RELATION_MBEAN_REMOVAL
Parameters:
  theSrcObj - source object, sending the notification. Will alwaysbe a RelationService object.
Parameters:
  TheSeqNbr - sequence number to identify the notification
Parameters:
  theTimeStamp - time stamp
Parameters:
  theMsg - human-readable message describing the notification
Parameters:
  theRelId - relation id identifying the relation in the RelationService
Parameters:
  theRelTypeName - name of the relation type
Parameters:
  theRelObjName - ObjectName of the relation object if it is a MBean(null for relations internally handled by the Relation Service)
Parameters:
  theUnregMBeanList - list of ObjectNames of referenced MBeansexpected to be unregistered due to relation removal (only for removal,due to CIM qualifiers, can be null)
exception:
  IllegalArgumentException - if:

- no value for the notification type

- the notification type is not RELATION_BASIC_CREATION,RELATION_MBEAN_CREATION, RELATION_BASIC_REMOVAL orRELATION_MBEAN_REMOVAL

- no source object

- the source object is not a Relation Service

- no relation id

- no relation type name




RelationNotification
public RelationNotification(String theNtfType, Object theSrcObj, long TheSeqNbr, long theTimeStamp, String theMsg, String theRelId, String theRelTypeName, ObjectName theRelObjName, String theRoleName, List theNewRoleValue, List theOldRoleValue) throws IllegalArgumentException(Code)
Creates a notification for a role update in a relation
Parameters:
  theNtfType - type of the notification; either:

- RELATION_BASIC_UPDATE

- RELATION_MBEAN_UPDATE
Parameters:
  theSrcObj - source object, sending the notification. Will alwaysbe a RelationService object.
Parameters:
  TheSeqNbr - sequence number to identify the notification
Parameters:
  theTimeStamp - time stamp
Parameters:
  theMsg - human-readable message describing the notification
Parameters:
  theRelId - relation id identifying the relation in the RelationService
Parameters:
  theRelTypeName - name of the relation type
Parameters:
  theRelObjName - ObjectName of the relation object if it is a MBean(null for relations internally handled by the Relation Service)
Parameters:
  theRoleName - name of the updated role
Parameters:
  theNewRoleValue - new value (ArrayList of ObjectName objects)
Parameters:
  theOldRoleValue - old value (ArrayList of ObjectName objects)
exception:
  IllegalArgumentException - if null parameter





Method Detail
getMBeansToUnregister
public List getMBeansToUnregister()(Code)
Returns the list of ObjectNames of MBeans expected to be unregistered due to a relation removal (only for relation removal)



getNewRoleValue
public List getNewRoleValue()(Code)
Returns new value of updated role (only for role update)



getObjectName
public ObjectName getObjectName()(Code)
Returns the ObjectName (if the relation is a MBean, else null) of the created/removed/updated relation



getOldRoleValue
public List getOldRoleValue()(Code)
Returns old value of updated role (only for role update)



getRelationId
public String getRelationId()(Code)
Returns the relation identifier of created/removed/updated relation



getRelationTypeName
public String getRelationTypeName()(Code)
Returns the relation type name of created/removed/updated relation



getRoleName
public String getRoleName()(Code)
Returns name of updated role of updated relation (only for role update)



Fields inherited from javax.management.Notification
protected Object source(Code)(Java Doc)

Methods inherited from javax.management.Notification
public String getMessage()(Code)(Java Doc)
public long getSequenceNumber()(Code)(Java Doc)
public Object getSource()(Code)(Java Doc)
public long getTimeStamp()(Code)(Java Doc)
public String getType()(Code)(Java Doc)
public Object getUserData()(Code)(Java Doc)
public void setSequenceNumber(long sequenceNumber)(Code)(Java Doc)
public void setSource(Object source) throws java.lang.IllegalArgumentException(Code)(Java Doc)
public void setTimeStamp(long timeStamp)(Code)(Java Doc)
public void setUserData(Object userData)(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.