Source Code Cross Referenced 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 Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * JBoss, Home of Professional Open Source.
003:         * Copyright 2006, Red Hat Middleware LLC, and individual contributors
004:         * as indicated by the @author tags. See the copyright.txt file in the
005:         * distribution for a full listing of individual contributors.
006:         *
007:         * This is free software; you can redistribute it and/or modify it
008:         * under the terms of the GNU Lesser General Public License as
009:         * published by the Free Software Foundation; either version 2.1 of
010:         * the License, or (at your option) any later version.
011:         *
012:         * This software is distributed in the hope that it will be useful,
013:         * but WITHOUT ANY WARRANTY; without even the implied warranty of
014:         * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
015:         * Lesser General Public License for more details.
016:         *
017:         * You should have received a copy of the GNU Lesser General Public
018:         * License along with this software; if not, write to the Free
019:         * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
020:         * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
021:         */
022:        package javax.management.j2ee;
023:
024:        import javax.management.*;
025:        import javax.ejb.EJBObject;
026:        import java.rmi.RemoteException;
027:        import java.util.Set;
028:
029:        /**
030:         * The Management interface provides the APIs to navigate and manipulate managed objects.
031:         * The J2EE Management EJB component (MEJB) must implement this as its remote interface.
032:         * 
033:         * @author thomas.diesler@jboss.org
034:         */
035:        public interface Management extends EJBObject {
036:            /**
037:             * Gets the names of managed objects controlled by the MEJB.
038:             * This method enables any of the following to be obtained:
039:             * The names of all managed objects, the names of a set of managed objects specified by pattern matching on the
040:             * ObjectName, a specific managed object name (equivalent to testing whether a managed object is registered).
041:             * When the object name is null or no domain and key properties are specified, all objects are selected.
042:             * It returns the set of J2EEObjectNames for the managed objects selected.
043:             *
044:             * @param 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.
045:             * @return A set containing the ObjectNames for the managed objects selected. If no managed object satisfies the query, an empty set is returned.
046:             * @throws RemoteException A communication exception occurred during the execution of a remote method call
047:             */
048:            public Set queryNames(ObjectName name, QueryExp query)
049:                    throws RemoteException;
050:
051:            /**
052:             * Checks whether a managed object, identified by its object name, is already registered with the MEJB.
053:             *
054:             * @param name The object name of the managed object to be checked.
055:             * @return True if the managed object is already registered in the MEJB, false otherwise.
056:             * @throws RemoteException A communication exception occurred during the execution of a remote method call
057:             */
058:            public boolean isRegistered(ObjectName name) throws RemoteException;
059:
060:            /**
061:             * Returns the number of managed objects registered in the MEJB.
062:             *
063:             * @throws RemoteException A communication exception occurred during the execution of a remote method call
064:             */
065:            public Integer getMBeanCount() throws RemoteException;
066:
067:            /**
068:             * This method discovers the attributes and operations that a managed object exposes for management.
069:             *
070:             * @param name The name of the managed object to analyze
071:             * @return An instance of MBeanInfo allowing the retrieval of all attributes and operations of this managed object.
072:             * @throws IntrospectionException    An exception occurs during introspection.
073:             * @throws InstanceNotFoundException The managed object specified is not found.
074:             * @throws ReflectionException       An exception occurred when trying to perform reflection on a managed object
075:             * @throws RemoteException           A communication exception occurred during the execution of a remote method call
076:             */
077:            public MBeanInfo getMBeanInfo(ObjectName name)
078:                    throws IntrospectionException, InstanceNotFoundException,
079:                    ReflectionException, RemoteException;
080:
081:            /**
082:             * Gets the value of a specific attribute of a named managed object. The managed object is identified by its object name.
083:             *
084:             * @param name      The object name of the managed object from which the attribute is to be retrieved.
085:             * @param attribute A String specifying the name of the attribute to be retrieved.
086:             * @return The value of the retrieved attribute.
087:             * @throws AttributeNotFoundException - The attribute specified is not accessible in the managed object.
088:             * @throws MBeanException             - Wraps an exception thrown by the managed object's getter.
089:             * @throws InstanceNotFoundException  - The managed object specified is not registered in the MEJB.
090:             * @throws ReflectionException        - An exception occurred when trying to invoke the getAttribute method of a Dynamic MBean
091:             * @throws RemoteException            - A communication exception occurred during the execution of a remote method call getAttributes
092:             */
093:            public Object getAttribute(ObjectName name, String attribute)
094:                    throws MBeanException, AttributeNotFoundException,
095:                    InstanceNotFoundException, ReflectionException,
096:                    RemoteException;
097:
098:            /**
099:             * Enables the values of several attributes of a named managed object. The managed object is identified by its object name.
100:             *
101:             * @param name       The object name of the managed object from which the attributes are retrieved.
102:             * @param attributes A list of the attributes to be retrieved.
103:             * @return The list of the retrieved attributes.
104:             * @throws InstanceNotFoundException - The managed object specified is not registered in the MEJB.
105:             * @throws ReflectionException       - An exception occurred when trying to invoke the getAttributes method of a Dynamic MBean.
106:             * @throws RemoteException           - A communication exception occurred during the execution of a remote method call
107:             */
108:            public AttributeList getAttributes(ObjectName name,
109:                    String[] attributes) throws InstanceNotFoundException,
110:                    ReflectionException, RemoteException;
111:
112:            /**
113:             * Sets the value of a specific attribute of a named managed object. The managed object is identified by its object name.
114:             *
115:             * @param name      The name of the managed object within which the attribute is to be set.
116:             * @param attribute The identification of the attribute to be set and the value it is to be set to.
117:             * @throws InstanceNotFoundException
118:             * @throws AttributeNotFoundException
119:             * @throws InstanceNotFoundException      - The managed object specified is not registered in the MEJB.
120:             * @throws AttributeNotFoundException     - The attribute specified is not accessible in the managed object.
121:             * @throws InvalidAttributeValueException - The value specified for the attribute is not valid.
122:             * @throws MBeanException                 - Wraps an exception thrown by the managed object's setter.
123:             * @throws ReflectionException            - An exception occurred when trying to invoke the setAttribute method of a Dynamic MBean.
124:             * @throws RemoteException                - A communication exception occurred during the execution of a remote method call setAttributes
125:             */
126:            public void setAttribute(ObjectName name, Attribute attribute)
127:                    throws InstanceNotFoundException,
128:                    AttributeNotFoundException, InvalidAttributeValueException,
129:                    MBeanException, ReflectionException, RemoteException;
130:
131:            /**
132:             * Sets the values of several attributes of a named managed object. The managed object is identified by its object name.
133:             *
134:             * @param name       The object name of the managed object within which the attributes are to be set.
135:             * @param attributes A list of attributes: The identification of the attributes to be set and the values they are to be set to.
136:             * @return The list of attributes that were set, with their new values.
137:             * @throws InstanceNotFoundException - The managed object specified is not registered in the MEJB.
138:             * @throws ReflectionException       - An exception occurred when trying to invoke the setAttributes method of a Dynamic MBean.
139:             * @throws RemoteException           - A communication exception occurred during the execution of a remote method call invoke
140:             */
141:            public AttributeList setAttributes(ObjectName name,
142:                    AttributeList attributes) throws InstanceNotFoundException,
143:                    ReflectionException, RemoteException;
144:
145:            /**
146:             * Invokes an operation on a managed object
147:             *
148:             * @param name          The object name of the managed object on which the method is to be invoked.
149:             * @param operationName The name of the operation to be invoked.
150:             * @param params        An array containing the parameters to be set when the operation is invoked
151:             * @param 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.
152:             * @return The object returned by the operation, which represents the result of invoking the operation on the managed object specified.
153:             * @throws InstanceNotFoundException - The managed object specified is not registered in the MEJB.
154:             * @throws MBeanException            - Wraps an exception thrown by the managed object's invoked method.
155:             * @throws ReflectionException       - Wraps a java.lang.Exception thrown while trying to invoke the method.
156:             * @throws RemoteException           - A communication exception occurred during the execution of a remote method call getDefaultDomain
157:             */
158:            public Object invoke(ObjectName name, String operationName,
159:                    Object[] params, String[] signature)
160:                    throws InstanceNotFoundException, MBeanException,
161:                    ReflectionException, RemoteException;
162:
163:            /**
164:             * Returns the default domain name of this MEJB.
165:             *
166:             * @throws RemoteException RemoteException - A communication exception occurred during the execution of a remote method call getListenerRegistry
167:             */
168:            public String getDefaultDomain() throws RemoteException;
169:
170:            /**
171:             * 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
172:             *
173:             * @return An implementation of javax.management.j2ee.ListenerRegistration
174:             * @throws RemoteException - A communication exception occurred during the execution of a remote method call
175:             */
176:            public ListenerRegistration getListenerRegistry()
177:                    throws RemoteException;
178:
179:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.