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


java.lang.Object
   javax.management.MBeanInfo
      javax.management.modelmbean.ModelMBeanInfoSupport

ModelMBeanInfoSupport
public class ModelMBeanInfoSupport extends MBeanInfo implements ModelMBeanInfo,Serializable(Code)
This class represents the meta data for ModelMBeans. Descriptors have been added on the meta data objects.

Java resources wishing to be manageable instatiate the ModelMBean using the MBeanServer's createMBean method. The resource then sets the ModelMBeanInfo and Descriptors for the ModelMBean instance. The attributes and operations exposed via the ModelMBeanInfo for the ModelMBean are accessible from Mbeans, connectors/adapters like other MBeans. Through the Descriptors, values and methods in the managed application can be defined and mapped to attributes and operations of the ModelMBean. This mapping can be defined during development in a file or dynamically and programmatically at runtime.

Every ModelMBean which is instantiated in the MBeanServer becomes manageable: its attributes and operations become remotely accessible through the connectors/adaptors connected to that MBeanServer. A Java object cannot be registered in the MBeanServer unless it is a JMX compliant MBean. By instantiating a ModelMBean, resources are guaranteed that the MBean is valid. MBeanException and RuntimeOperationsException must be thrown on every public method. This allows for wrappering exceptions from distributed communications (RMI, EJB, etc.)



Field Summary
 ModelMBeanAttributeInfo[]attributes
    
 StringclassName
    
 ModelMBeanConstructorInfo[]constructors
    
 Stringdescription
    
 Descriptordescriptor
    
 ModelMBeanNotificationInfo[]notifications
    
 ModelMBeanOperationInfo[]operations
    

Constructor Summary
public  ModelMBeanInfoSupport(ModelMBeanInfo mbi)
     Constructs a ModelMBeanInfoSupport which is a duplicate of the one passed in.
public  ModelMBeanInfoSupport(String className, String description, ModelMBeanAttributeInfo[] attributes, ModelMBeanConstructorInfo[] constructors, ModelMBeanOperationInfo[] operations, ModelMBeanNotificationInfo[] notifications)
     Creates a ModelMBeanInfoSupport with the provided information, but the descriptor is a default.
public  ModelMBeanInfoSupport(String className, String description, ModelMBeanAttributeInfo[] attributes, ModelMBeanConstructorInfo[] constructors, ModelMBeanOperationInfo[] operations, ModelMBeanNotificationInfo[] notifications, Descriptor mbeandescriptor)
     Creates a ModelMBeanInfoSupport with the provided information
Parameters:
  className - classname of ModelMBeanInfo
Parameters:
  description - human readable description of the ModelMBean
Parameters:
  attributes - array of ModelMBeanAttributeInfo objects which have descriptors
Parameters:
  constructors - array of ModelMBeanConstructorInfo objects which have descriptor
Parameters:
  operations - array of ModelMBeanOperationInfo objects which have descriptor
Parameters:
  notifications - array of ModelMBeanNotificationInfo objects which have descriptor
Parameters:
  mbeandescriptor - the descriptor to be used as the MBeanDescriptorcontaining mbean wide policy.

Method Summary
public  Objectclone()
     To clone this ModelMBeanInfo implementation object as ModelMBeanInfoSupport object.
public  ModelMBeanAttributeInfogetAttribute(String inName)
     Returns a ModelMBeanAttributeInfo requested by name.
Parameters:
  inName - The name of the ModelMBeanAttributeInfo to get.
public  MBeanAttributeInfo[]getAttributes()
     Gets the attributes info of the ModelMBean targetted object.
public  StringgetClassName()
     Returns the name of the Java class of the MBean described by this ModelMBeanInfo.
public  ModelMBeanConstructorInfogetConstructor(String inName)
     Returns a ModelMBeanConstructorInfo requested by name.
Parameters:
  String - inName The name of the ModelMBeanConstructorInfo to get.
public  MBeanConstructorInfo[]getConstructors()
     Gets the constructors info of the ModelMBean targetted object.
public  StringgetDescription()
     Returns a human readable description of the MBean.
public  DescriptorgetDescriptor(String inDescriptorName)
     Returns a Descriptor requested by name
Parameters:
  inDescriptorName - The name of the descriptor.
public  DescriptorgetDescriptor(String inDescriptorName, String inDescriptorType)
     Returns a Descriptor requested by name and descriptorType.
Parameters:
  inDescriptorName - The name of the descriptor.
Parameters:
  inDescriptorType - The type of the descriptor being requested.If this is null then all types are searched.
public  Descriptor[]getDescriptors(String inDescriptorType)
     Returns a Descriptor array consisting of all Descriptors for the ModelMBeanInfo including the MBean Descriptor, attribute Descriptors, operation Descriptors, constructor Descriptors, and notification Descriptors.
Parameters:
  inDescriptorType - value of descriptorType field that must be setfor the descriptor to be returned.
public  DescriptorgetMBeanDescriptor()
     Returns a MBean's descriptor.
public  ModelMBeanNotificationInfogetNotification(String inName)
     Returns a ModelMBeanNotificationInfo requested by name.
Parameters:
  inName - The name of the ModelMBeanNotificationInfo to get.
public  MBeanNotificationInfo[]getNotifications()
     Gets the notifications info emitted by the ModelMBean targetted object.
public  ModelMBeanOperationInfogetOperation(String inName)
     Returns a ModelMBeanOperationInfo requested by name.
Parameters:
  inName - The name of the ModelMBeanOperationInfo to get.
public  MBeanOperationInfo[]getOperations()
     Gets the operations info of the ModelMBean targetted object.
public  voidsetDescriptor(Descriptor inDescriptor, String inDescriptorType)
     Adds or replaces descriptors in all the info arrays for the ModelMBean.
Parameters:
  inDescriptor - The descriptor to be set in the ModelMBean.It must NOT be null.
public  voidsetDescriptors(Descriptor[] inDescriptors)
     Adds or replaces descriptors in the ModelMBeanInfo.
Parameters:
  inDescriptors - The descriptors to be set in the ModelMBeanInfo.Null elements of the list will be ignored.
public  voidsetMBeanDescriptor(Descriptor inDescriptor)
     Sets the ModelMBean's descriptor (fully replace).

Field Detail
attributes
ModelMBeanAttributeInfo[] attributes(Code)



className
String className(Code)



constructors
ModelMBeanConstructorInfo[] constructors(Code)



description
String description(Code)



descriptor
Descriptor descriptor(Code)



notifications
ModelMBeanNotificationInfo[] notifications(Code)



operations
ModelMBeanOperationInfo[] operations(Code)




Constructor Detail
ModelMBeanInfoSupport
public ModelMBeanInfoSupport(ModelMBeanInfo mbi)(Code)
Constructs a ModelMBeanInfoSupport which is a duplicate of the one passed in.
Parameters:
  mbi - the ModelMBeanInfo instance from which the ModelMBeanInfobeing created is initialized



ModelMBeanInfoSupport
public ModelMBeanInfoSupport(String className, String description, ModelMBeanAttributeInfo[] attributes, ModelMBeanConstructorInfo[] constructors, ModelMBeanOperationInfo[] operations, ModelMBeanNotificationInfo[] notifications)(Code)
Creates a ModelMBeanInfoSupport with the provided information, but the descriptor is a default. The default descriptor is: name=mbeanName, descriptorType=mbean, displayName=this.getClassName(), persistPolicy=never, log=F,export=F,visiblity=1
Parameters:
  className - classname of ModelMBeanInfo
Parameters:
  description - human readable description of the ModelMBean
Parameters:
  attributes - array of ModelMBeanAttributeInfo objects which have descriptors
Parameters:
  constructors - array of ModelMBeanConstructorInfo objects which have descriptor
Parameters:
  operations - array of ModelMBeanOperationInfo objects which have descriptor
Parameters:
  notifications - array of ModelMBeanNotificationInfo objects which have descriptor



ModelMBeanInfoSupport
public ModelMBeanInfoSupport(String className, String description, ModelMBeanAttributeInfo[] attributes, ModelMBeanConstructorInfo[] constructors, ModelMBeanOperationInfo[] operations, ModelMBeanNotificationInfo[] notifications, Descriptor mbeandescriptor)(Code)
Creates a ModelMBeanInfoSupport with the provided information
Parameters:
  className - classname of ModelMBeanInfo
Parameters:
  description - human readable description of the ModelMBean
Parameters:
  attributes - array of ModelMBeanAttributeInfo objects which have descriptors
Parameters:
  constructors - array of ModelMBeanConstructorInfo objects which have descriptor
Parameters:
  operations - array of ModelMBeanOperationInfo objects which have descriptor
Parameters:
  notifications - array of ModelMBeanNotificationInfo objects which have descriptor
Parameters:
  mbeandescriptor - the descriptor to be used as the MBeanDescriptorcontaining mbean wide policy. If the descriptor is invalidor null, a default descriptor will be constructed.The default descriptor is:name=mbeanName,descriptorType=mbean,displayName=this.getClassName(),persistPolicy=never,log=F,export=F,visiblity=1.If the descriptor does not contain all these fields,they will be added with these default values.




Method Detail
clone
public Object clone()(Code)
To clone this ModelMBeanInfo implementation object as ModelMBeanInfoSupport object. The duplicate copy of the object



getAttribute
public ModelMBeanAttributeInfo getAttribute(String inName) throws MBeanException, RuntimeOperationsException(Code)
Returns a ModelMBeanAttributeInfo requested by name.
Parameters:
  inName - The name of the ModelMBeanAttributeInfo to get. ModelMBeanAttributeInfo requested by name
exception:
  MBeanException - Wraps another exception
exception:
  RuntimeOperationsException - Wraps another exception forinvalid attribute name or ModelMBeanAttributeInfo to be returned.



getAttributes
public MBeanAttributeInfo[] getAttributes()(Code)
Gets the attributes info of the ModelMBean targetted object. The return object will be a array of ModelMBeanAttributeInfo objcts. The array of MBeanAttributeInfo objects are returned aftergetting the attributes info of ModelMBean targetted object



getClassName
public String getClassName()(Code)
Returns the name of the Java class of the MBean described by this ModelMBeanInfo. the name of the Java class of the MBean described by this ModelMBeanInfo.



getConstructor
public ModelMBeanConstructorInfo getConstructor(String inName) throws MBeanException, RuntimeOperationsException(Code)
Returns a ModelMBeanConstructorInfo requested by name.
Parameters:
  String - inName The name of the ModelMBeanConstructorInfo to get. ModelMBeanConstructorInfo requested by name
exception:
  MBeanException - Wraps another exception
exception:
  RuntimeOperationsException - Wraps another exception for invalidattribute name or ModelMBeanConstructorInfo to be returned.



getConstructors
public MBeanConstructorInfo[] getConstructors()(Code)
Gets the constructors info of the ModelMBean targetted object. The return object will be a array of ModelMBeanConstructorInfo objects. The array of MBeanConstructorInfo objects are returned aftergetting the constructors info of ModelMBean targetted object.



getDescription
public String getDescription()(Code)
Returns a human readable description of the MBean. Optional. a human readable description of the MBean. Optional.



getDescriptor
public Descriptor getDescriptor(String inDescriptorName) throws MBeanException, RuntimeOperationsException(Code)
Returns a Descriptor requested by name
Parameters:
  inDescriptorName - The name of the descriptor. Descriptor containing the descriptor for the ModelMBean with thesame name. If a descriptor is not found, null is returned.
exception:
  MBeanException - Wraps another exception
exception:
  RuntimeOperationsException - Wraps exceptions for invalidinput name or type.



getDescriptor
public Descriptor getDescriptor(String inDescriptorName, String inDescriptorType) throws MBeanException, RuntimeOperationsException(Code)
Returns a Descriptor requested by name and descriptorType.
Parameters:
  inDescriptorName - The name of the descriptor.
Parameters:
  inDescriptorType - The type of the descriptor being requested.If this is null then all types are searched. Valid typesare 'attribute', 'constructor', 'operation', and'notification'. This value must be equal to the'descriptorType' field in the descriptor that is returned. Descriptor containing the descriptor for the ModelMBean withthe same name and descriptorType. If a descriptor is notfound, null is returned.
exception:
  MBeanException - Wraps another exception
exception:
  RuntimeOperationsException - Wraps exceptions for invalidinput name or type.



getDescriptors
public Descriptor[] getDescriptors(String inDescriptorType) throws MBeanException, RuntimeOperationsException(Code)
Returns a Descriptor array consisting of all Descriptors for the ModelMBeanInfo including the MBean Descriptor, attribute Descriptors, operation Descriptors, constructor Descriptors, and notification Descriptors.
Parameters:
  inDescriptorType - value of descriptorType field that must be setfor the descriptor to be returned. Must be "mbean","attribute", "operation", "constructor", or "notification".If it is null then all types will be returned. Descriptor array containing all descriptors for the ModelMBean
exception:
  MBeanException - Wraps another exception
exception:
  RuntimeOperationsException - Wraps another exception



getMBeanDescriptor
public Descriptor getMBeanDescriptor() throws MBeanException, RuntimeOperationsException(Code)
Returns a MBean's descriptor. This descriptor contains metadata about the MBean and default policies for persistence and caching for the entire MBean. Policies may be overridden by descriptors associated with attribute, constructors, or operations with the same fieldNames. The MBeanDescriptor
exception:
  MBeanException - Wraps another exception
exception:
  RuntimeOperationsException - Wraps another exception



getNotification
public ModelMBeanNotificationInfo getNotification(String inName) throws MBeanException, RuntimeOperationsException(Code)
Returns a ModelMBeanNotificationInfo requested by name.
Parameters:
  inName - The name of the ModelMBeanNotificationInfo to get. ModelMBeanNotificationInfo requested by name
exception:
  MBeanException - Wraps another exception
exception:
  RuntimeOperationsException - Wraps another exception



getNotifications
public MBeanNotificationInfo[] getNotifications()(Code)
Gets the notifications info emitted by the ModelMBean targetted object. The return object will be a array of ModelMBeanNotificationInfo objects. The array of MBeanNotificationInfo objects are returned aftergetting the notifications info of the ModelMBean targetted object.



getOperation
public ModelMBeanOperationInfo getOperation(String inName) throws MBeanException, RuntimeOperationsException(Code)
Returns a ModelMBeanOperationInfo requested by name.
Parameters:
  inName - The name of the ModelMBeanOperationInfo to get. ModelMBeanOperationInfo requested by name
exception:
  MBeanException - Wraps another exception
exception:
  RuntimeOperationsException - Wraps another exception for invalidattribute name or ModelMBeanOperationInfo to be returned.



getOperations
public MBeanOperationInfo[] getOperations()(Code)
Gets the operations info of the ModelMBean targetted object. The return object will be a array of ModelMBeanOperationInfo objects. The array of MBeanOperationInfo objects are returned aftergetting the operations info of the ModelMBean targetted object.



setDescriptor
public void setDescriptor(Descriptor inDescriptor, String inDescriptorType) throws MBeanException, RuntimeOperationsException(Code)
Adds or replaces descriptors in all the info arrays for the ModelMBean.
Parameters:
  inDescriptor - The descriptor to be set in the ModelMBean.It must NOT be null. All descriptors must have name anddescriptorType fields.
Parameters:
  inDescriptorType - The type of the descriptor being set. If thisis null then the descriptorType field in the descriptoris used. If specified this value must be set in thedescriptorType field for the descriptor to be returned.Must be "mbean","attribute", "operation", "constructor",or "notification".
exception:
  RuntimeOperationsException - Wraps exceptions for illegalor null arguments.



setDescriptors
public void setDescriptors(Descriptor[] inDescriptors) throws MBeanException, RuntimeOperationsException(Code)
Adds or replaces descriptors in the ModelMBeanInfo.
Parameters:
  inDescriptors - The descriptors to be set in the ModelMBeanInfo.Null elements of the list will be ignored. All descriptorsmust have name and descriptorType fields.
exception:
  MBeanException - Wraps another exception
exception:
  RuntimeOperationsException - Wraps exceptions for illegalor null arguments



setMBeanDescriptor
public void setMBeanDescriptor(Descriptor inDescriptor) throws MBeanException, RuntimeOperationsException(Code)
Sets the ModelMBean's descriptor (fully replace). This descriptor contains metadata about the MBean and default policies for persistence and caching for the entire MBean. Policies may be overridden by descriptors associated with attribute, constructors, or operations with the same fieldNames. This operation does a complete replacement of the descriptor, no merging is done.
Parameters:
  inDescriptor - This descriptor contains metadata about the MBeanand default policies for persistence and caching forthe entire MBean.
exception:
  MBeanException - Wraps another exception
exception:
  RuntimeOperationsException - Wraps another exception



Methods inherited from javax.management.MBeanInfo
public Object clone()(Code)(Java Doc)
public MBeanAttributeInfo[] getAttributes()(Code)(Java Doc)
public String getClassName()(Code)(Java Doc)
public MBeanConstructorInfo[] getConstructors()(Code)(Java Doc)
public String getDescription()(Code)(Java Doc)
public MBeanNotificationInfo[] getNotifications()(Code)(Java Doc)
public MBeanOperationInfo[] getOperations()(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.