Java Doc for Management.java in  » EJB-Server-JBoss-4.2.1 » management » javax » management » j2ee » 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 » management » javax.management.j2ee 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.management.j2ee.Management

Management
public interface Management extends EJBObject(Code)
The Management interface provides the APIs to navigate and manipulate managed objects. The J2EE Management EJB component (MEJB) must implement this as its remote interface.
author:
   thomas.diesler@jboss.org




Method Summary
public  ObjectgetAttribute(ObjectName name, String attribute)
     Gets the value of a specific attribute of a named managed object.
public  AttributeListgetAttributes(ObjectName name, String[] attributes)
     Enables the values of several attributes of a named managed object.
public  StringgetDefaultDomain()
     Returns the default domain name of this MEJB.
public  ListenerRegistrationgetListenerRegistry()
     Returns the listener registry implementation for this MEJB.
public  IntegergetMBeanCount()
     Returns the number of managed objects registered in the MEJB.
public  MBeanInfogetMBeanInfo(ObjectName name)
     This method discovers the attributes and operations that a managed object exposes for management.
public  Objectinvoke(ObjectName name, String operationName, Object[] params, String[] signature)
     Invokes an operation on a managed object
Parameters:
  name - The object name of the managed object on which the method is to be invoked.
Parameters:
  operationName - The name of the operation to be invoked.
Parameters:
  params - An array containing the parameters to be set when the operation is invoked
Parameters:
  signature - An array containing the signature of the operation.
public  booleanisRegistered(ObjectName name)
     Checks whether a managed object, identified by its object name, is already registered with the MEJB.
Parameters:
  name - The object name of the managed object to be checked.
public  SetqueryNames(ObjectName name, QueryExp query)
     Gets the names of managed objects controlled by the MEJB. This method enables any of the following to be obtained: The names of all managed objects, the names of a set of managed objects specified by pattern matching on the ObjectName, a specific managed object name (equivalent to testing whether a managed object is registered). When the object name is null or no domain and key properties are specified, all objects are selected. It returns the set of J2EEObjectNames for the managed objects selected.
Parameters:
  name - The object name pattern identifying the managed objects to be retrieved.
public  voidsetAttribute(ObjectName name, Attribute attribute)
     Sets the value of a specific attribute of a named managed object.
public  AttributeListsetAttributes(ObjectName name, AttributeList attributes)
     Sets the values of several attributes of a named managed object.



Method Detail
getAttribute
public Object getAttribute(ObjectName name, String attribute) throws MBeanException, AttributeNotFoundException, InstanceNotFoundException, ReflectionException, RemoteException(Code)
Gets the value of a specific attribute of a named managed object. The managed object is identified by its object name.
Parameters:
  name - The object name of the managed object from which the attribute is to be retrieved.
Parameters:
  attribute - A String specifying the name of the attribute to be retrieved. The value of the retrieved attribute.
throws:
  AttributeNotFoundException - - The attribute specified is not accessible in the managed object.
throws:
  MBeanException - - Wraps an exception thrown by the managed object's getter.
throws:
  InstanceNotFoundException - - The managed object specified is not registered in the MEJB.
throws:
  ReflectionException - - An exception occurred when trying to invoke the getAttribute method of a Dynamic MBean
throws:
  RemoteException - - A communication exception occurred during the execution of a remote method call getAttributes



getAttributes
public AttributeList getAttributes(ObjectName name, String[] attributes) throws InstanceNotFoundException, ReflectionException, RemoteException(Code)
Enables the values of several attributes of a named managed object. The managed object is identified by its object name.
Parameters:
  name - The object name of the managed object from which the attributes are retrieved.
Parameters:
  attributes - A list of the attributes to be retrieved. The list of the retrieved attributes.
throws:
  InstanceNotFoundException - - The managed object specified is not registered in the MEJB.
throws:
  ReflectionException - - An exception occurred when trying to invoke the getAttributes method of a Dynamic MBean.
throws:
  RemoteException - - A communication exception occurred during the execution of a remote method call



getDefaultDomain
public String getDefaultDomain() throws RemoteException(Code)
Returns the default domain name of this MEJB.
throws:
  RemoteException - RemoteException - A communication exception occurred during the execution of a remote method call getListenerRegistry



getListenerRegistry
public ListenerRegistration getListenerRegistry() throws RemoteException(Code)
Returns the listener registry implementation for this MEJB. The listener registry implements the methods that enable clints to add and remove event notification listeners managed objects An implementation of javax.management.j2ee.ListenerRegistration
throws:
  RemoteException - - A communication exception occurred during the execution of a remote method call



getMBeanCount
public Integer getMBeanCount() throws RemoteException(Code)
Returns the number of managed objects registered in the MEJB.
throws:
  RemoteException - A communication exception occurred during the execution of a remote method call



getMBeanInfo
public MBeanInfo getMBeanInfo(ObjectName name) throws IntrospectionException, InstanceNotFoundException, ReflectionException, RemoteException(Code)
This method discovers the attributes and operations that a managed object exposes for management.
Parameters:
  name - The name of the managed object to analyze An instance of MBeanInfo allowing the retrieval of all attributes and operations of this managed object.
throws:
  IntrospectionException - An exception occurs during introspection.
throws:
  InstanceNotFoundException - The managed object specified is not found.
throws:
  ReflectionException - An exception occurred when trying to perform reflection on a managed object
throws:
  RemoteException - A communication exception occurred during the execution of a remote method call



invoke
public Object invoke(ObjectName name, String operationName, Object[] params, String[] signature) throws InstanceNotFoundException, MBeanException, ReflectionException, RemoteException(Code)
Invokes an operation on a managed object
Parameters:
  name - The object name of the managed object on which the method is to be invoked.
Parameters:
  operationName - The name of the operation to be invoked.
Parameters:
  params - An array containing the parameters to be set when the operation is invoked
Parameters:
  signature - An array containing the signature of the operation. The class objects will be loaded using the same class loader as the one used for loading the managed object on which the operation was invoked. The object returned by the operation, which represents the result of invoking the operation on the managed object specified.
throws:
  InstanceNotFoundException - - The managed object specified is not registered in the MEJB.
throws:
  MBeanException - - Wraps an exception thrown by the managed object's invoked method.
throws:
  ReflectionException - - Wraps a java.lang.Exception thrown while trying to invoke the method.
throws:
  RemoteException - - A communication exception occurred during the execution of a remote method call getDefaultDomain



isRegistered
public boolean isRegistered(ObjectName name) throws RemoteException(Code)
Checks whether a managed object, identified by its object name, is already registered with the MEJB.
Parameters:
  name - The object name of the managed object to be checked. True if the managed object is already registered in the MEJB, false otherwise.
throws:
  RemoteException - A communication exception occurred during the execution of a remote method call



queryNames
public Set queryNames(ObjectName name, QueryExp query) throws RemoteException(Code)
Gets the names of managed objects controlled by the MEJB. This method enables any of the following to be obtained: The names of all managed objects, the names of a set of managed objects specified by pattern matching on the ObjectName, a specific managed object name (equivalent to testing whether a managed object is registered). When the object name is null or no domain and key properties are specified, all objects are selected. It returns the set of J2EEObjectNames for the managed objects selected.
Parameters:
  name - The object name pattern identifying the managed objects to be retrieved. If null or no domain and key properties are specified, all the managed objects registered will be retrieved. A set containing the ObjectNames for the managed objects selected. If no managed object satisfies the query, an empty set is returned.
throws:
  RemoteException - A communication exception occurred during the execution of a remote method call



setAttribute
public void setAttribute(ObjectName name, Attribute attribute) throws InstanceNotFoundException, AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException, RemoteException(Code)
Sets the value of a specific attribute of a named managed object. The managed object is identified by its object name.
Parameters:
  name - The name of the managed object within which the attribute is to be set.
Parameters:
  attribute - The identification of the attribute to be set and the value it is to be set to.
throws:
  InstanceNotFoundException -
throws:
  AttributeNotFoundException -
throws:
  InstanceNotFoundException - - The managed object specified is not registered in the MEJB.
throws:
  AttributeNotFoundException - - The attribute specified is not accessible in the managed object.
throws:
  InvalidAttributeValueException - - The value specified for the attribute is not valid.
throws:
  MBeanException - - Wraps an exception thrown by the managed object's setter.
throws:
  ReflectionException - - An exception occurred when trying to invoke the setAttribute method of a Dynamic MBean.
throws:
  RemoteException - - A communication exception occurred during the execution of a remote method call setAttributes



setAttributes
public AttributeList setAttributes(ObjectName name, AttributeList attributes) throws InstanceNotFoundException, ReflectionException, RemoteException(Code)
Sets the values of several attributes of a named managed object. The managed object is identified by its object name.
Parameters:
  name - The object name of the managed object within which the attributes are to be set.
Parameters:
  attributes - A list of attributes: The identification of the attributes to be set and the values they are to be set to. The list of attributes that were set, with their new values.
throws:
  InstanceNotFoundException - - The managed object specified is not registered in the MEJB.
throws:
  ReflectionException - - An exception occurred when trying to invoke the setAttributes method of a Dynamic MBean.
throws:
  RemoteException - - A communication exception occurred during the execution of a remote method call invoke



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