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


javax.management.MBeanServerConnection

MBeanServerConnection
public interface MBeanServerConnection (Code)
An interface used to talk to an MBeanServer that is either remote or local. The local interface MBeanServer extends this one.
See Also:   javax.management.MBeanServer
author:
   Adrian Brock.
version:
   $Revision: 57200 $




Method Summary
public  voidaddNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback)
     Add a notification listener to an MBean.
public  voidaddNotificationListener(ObjectName name, ObjectName listener, NotificationFilter filter, Object handback)
     Add a notification listener to an MBean.
public  ObjectInstancecreateMBean(String className, ObjectName name)
     Create an MBean registered using the given object name.

Uses the default contructor.

public  ObjectInstancecreateMBean(String className, ObjectName name, ObjectName loaderName)
     Create an MBean registered using the given object name.

The MBean is loaded using the passed classloader.

public  ObjectInstancecreateMBean(String className, ObjectName name, Object[] params, String[] signature)
     Create an MBean registered using the given object name.

Uses the specified constructor.

public  ObjectInstancecreateMBean(String className, ObjectName name, ObjectName loaderName, Object[] params, String[] signature)
     Create an MBean registered using the given object name.

The MBean is loaded using the passed classloader.

public  ObjectgetAttribute(ObjectName name, String attribute)
     Retrieve a value from an MBean.
public  AttributeListgetAttributes(ObjectName name, String[] attributes)
     Retrieve a list of values from an MBean.
public  StringgetDefaultDomain()
     Retrieve the default domain of the mbeanserver.
public  String[]getDomains()
     Retrieve the domains of the mbeanserver.
public  IntegergetMBeanCount()
     Retrieve the number of mbeans registered in the server.
public  MBeanInfogetMBeanInfo(ObjectName name)
    
public  ObjectInstancegetObjectInstance(ObjectName name)
     Retrieve an MBean's registration information.
public  Objectinvoke(ObjectName name, String operationName, Object[] params, String[] signature)
     Invokes an operation on an mbean.
public  booleanisInstanceOf(ObjectName name, String className)
    
public  booleanisRegistered(ObjectName name)
     Test whether an mbean is registered.
public  SetqueryMBeans(ObjectName name, QueryExp query)
    
public  SetqueryNames(ObjectName name, QueryExp query)
    
public  voidremoveNotificationListener(ObjectName name, ObjectName listener)
     Removes a listener from an mbean.

All registrations of the listener are removed.

public  voidremoveNotificationListener(ObjectName name, ObjectName listener, NotificationFilter filter, Object handback)
     Removes a listener from an mbean.

Only the listener that was registered with the same filter and handback is removed.

public  voidremoveNotificationListener(ObjectName name, NotificationListener listener)
     Removes a listener from an mbean.

All registrations of the listener are removed.

public  voidremoveNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback)
     Removes a listener from an mbean.

Only the listener that was registered with the same filter and handback is removed.

public  voidsetAttribute(ObjectName name, Attribute attribute)
     Set a value for an MBean.
public  AttributeListsetAttributes(ObjectName name, AttributeList attributes)
     Set a list of values for an MBean.
public  voidunregisterMBean(ObjectName name)
     Unregisters an mbean.



Method Detail
addNotificationListener
public void addNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback) throws InstanceNotFoundException, IOException(Code)
Add a notification listener to an MBean.
Parameters:
  name - the name of the MBean broadcasting notifications
Parameters:
  listener - the listener to add
Parameters:
  filter - a filter to preprocess notifications
Parameters:
  handback - a object to add to any notifications
exception:
  InstanceNotFoundException - if the broadcaster is not registered
exception:
  IOException - for a communication problem during this operation



addNotificationListener
public void addNotificationListener(ObjectName name, ObjectName listener, NotificationFilter filter, Object handback) throws InstanceNotFoundException, IOException(Code)
Add a notification listener to an MBean.
Parameters:
  name - the name of the MBean broadcasting notifications
Parameters:
  listener - the object name listener to add
Parameters:
  filter - a filter to preprocess notifications
Parameters:
  handback - a object to add to any notifications
exception:
  InstanceNotFoundException - if the broadcaster or listener is not registered
exception:
  RuntimeOperationsException - wrapping an IllegalArgumentException for anull listener or the listener does not implement the Notification Listener interface
exception:
  IOException - for a communication problem during this operation



createMBean
public ObjectInstance createMBean(String className, ObjectName name) throws ReflectionException, InstanceAlreadyExistsException, MBeanRegistrationException, MBeanException, NotCompliantMBeanException, IOException(Code)
Create an MBean registered using the given object name.

Uses the default contructor.
Parameters:
  className - the class name of the mbean
Parameters:
  name - the object name for registration, can be null an ObjectInstance describing the registration
exception:
  ReflectionException - for class not found or an exceptioninvoking the contructor
exception:
  InstanceAlreadyExistsException - for an MBean already registeredwith the passed or generated ObjectName
exception:
  MBeanRegistrationException - for any exception thrown by theMBean's preRegister
exception:
  MBeanException - for any exception thrown by the MBean's constructor
exception:
  NotCompliantMBeanException - if the class name does not correspond toa valid MBean
exception:
  RuntimeOperationsException - wrapping an IllegalArgumentException for anull class name, the ObjectName could not be determined or it is a pattern
exception:
  IOException - for a communication problem during this operation




createMBean
public ObjectInstance createMBean(String className, ObjectName name, ObjectName loaderName) throws ReflectionException, InstanceAlreadyExistsException, MBeanRegistrationException, MBeanException, NotCompliantMBeanException, InstanceNotFoundException, IOException(Code)
Create an MBean registered using the given object name.

The MBean is loaded using the passed classloader. Uses the default contructor.
Parameters:
  className - the class name of the mbean
Parameters:
  loaderName - an MBean that implements a classloader
Parameters:
  name - the object name for registration, can be null an ObjectInstance describing the registration
exception:
  ReflectionException - for class not found or an exceptioninvoking the contructor
exception:
  InstanceAlreadyExistsException - for an MBean already registeredwith the passed or generated ObjectName
exception:
  MBeanRegistrationException - for any exception thrown by theMBean's preRegister
exception:
  MBeanException - for any exception thrown by the MBean's constructor
exception:
  InstanceNotFoundException - if the loaderName is not a classloader registeredin the MBeanServer
exception:
  NotCompliantMBeanException - if the class name does not correspond toa valid MBean
exception:
  RuntimeOperationsException - wrapping an IllegalArgumentException for anull class name, the ObjectName could not be determined or it is a pattern
exception:
  IOException - for a communication problem during this operation




createMBean
public ObjectInstance createMBean(String className, ObjectName name, Object[] params, String[] signature) throws ReflectionException, InstanceAlreadyExistsException, MBeanRegistrationException, MBeanException, NotCompliantMBeanException, IOException(Code)
Create an MBean registered using the given object name.

Uses the specified constructor.
Parameters:
  className - the class name of the mbean
Parameters:
  name - the object name for registration, can be null
Parameters:
  params - the parameters for the constructor
Parameters:
  signature - the signature of the constructor an ObjectInstance describing the registration
exception:
  ReflectionException - for class not found or an exceptioninvoking the contructor
exception:
  InstanceAlreadyExistsException - for an MBean already registeredwith the passed or generated ObjectName
exception:
  MBeanRegistrationException - for any exception thrown by theMBean's preRegister
exception:
  MBeanException - for any exception thrown by the MBean's constructor
exception:
  NotCompliantMBeanException - if the class name does not correspond toa valid MBean
exception:
  RuntimeOperationsException - wrapping an IllegalArgumentException for anull class name, the ObjectName could not be determined or it is a pattern
exception:
  IOException - for a communication problem during this operation




createMBean
public ObjectInstance createMBean(String className, ObjectName name, ObjectName loaderName, Object[] params, String[] signature) throws ReflectionException, InstanceAlreadyExistsException, MBeanRegistrationException, MBeanException, NotCompliantMBeanException, InstanceNotFoundException, IOException(Code)
Create an MBean registered using the given object name.

The MBean is loaded using the passed classloader. Uses the specified constructor.
Parameters:
  className - the class name of the mbean
Parameters:
  loaderName - an MBean that implements a classloader
Parameters:
  name - the object name for registration, can be null
Parameters:
  params - the parameters for the constructor
Parameters:
  signature - the signature of the constructor an ObjectInstance describing the registration
exception:
  ReflectionException - for class not found or an exceptioninvoking the contructor
exception:
  InstanceAlreadyExistsException - for an MBean already registeredwith the passed or generated ObjectName
exception:
  MBeanRegistrationException - for any exception thrown by theMBean's preRegister
exception:
  MBeanException - for any exception thrown by the MBean's constructor
exception:
  InstanceNotFoundException - if the loaderName is not a classloader registeredin the MBeanServer
exception:
  NotCompliantMBeanException - if the class name does not correspond toa valid MBean
exception:
  RuntimeOperationsException - wrapping an IllegalArgumentException for anull class name, the ObjectName could not be determined or it is a pattern
exception:
  IOException - for a communication problem during this operation




getAttribute
public Object getAttribute(ObjectName name, String attribute) throws MBeanException, AttributeNotFoundException, InstanceNotFoundException, ReflectionException, IOException(Code)
Retrieve a value from an MBean.
Parameters:
  name - the object name of the mbean
Parameters:
  attribute - the attribute name of the value to retrieve the value
exception:
  ReflectionException - for an exception invoking the mbean
exception:
  MBeanException - for any exception thrown by the mbean
exception:
  InstanceNotFoundException - if the mbean is not registered
exception:
  AttributeNotFoundException - if the mbean has no such attribute
exception:
  RuntimeOperationsException - wrapping an IllegalArgumentException for anull name or attribute
exception:
  IOException - for a communication problem during this operation



getAttributes
public AttributeList getAttributes(ObjectName name, String[] attributes) throws InstanceNotFoundException, ReflectionException, IOException(Code)
Retrieve a list of values from an MBean.
Parameters:
  name - the object name of the mbean
Parameters:
  attributes - the attribute names of the values to retrieve the list of values, attributes with errors are ignored
exception:
  ReflectionException - for an exception invoking the mbean
exception:
  InstanceNotFoundException - if the mbean is not registered
exception:
  RuntimeOperationsException - wrapping an IllegalArgumentException for anull name or attributes
exception:
  IOException - for a communication problem during this operation



getDefaultDomain
public String getDefaultDomain() throws IOException(Code)
Retrieve the default domain of the mbeanserver. the default domain
exception:
  IOException - for a communication problem during this operation



getDomains
public String[] getDomains() throws IOException(Code)
Retrieve the domains of the mbeanserver. the domains
exception:
  IOException - for a communication problem during this operation



getMBeanCount
public Integer getMBeanCount() throws IOException(Code)
Retrieve the number of mbeans registered in the server. true the number of registered mbeans
exception:
  IOException - for a communication problem during this operation



getMBeanInfo
public MBeanInfo getMBeanInfo(ObjectName name) throws InstanceNotFoundException, IntrospectionException, ReflectionException, IOException(Code)
Retrieves the jmx metadata for an mbean
Parameters:
  name - the name of the mbean the metadata
exception:
  IntrospectionException - for any error during instrospection
exception:
  InstanceNotFoundException - if the mbean is not registered
exception:
  ReflectionException - for any error trying to invoke the operation on the mbean
exception:
  IOException - for a communication problem during this operation



getObjectInstance
public ObjectInstance getObjectInstance(ObjectName name) throws InstanceNotFoundException, IOException(Code)
Retrieve an MBean's registration information.
Parameters:
  name - the object name of the mbean
exception:
  InstanceNotFoundException - if the mbean is not registeredin the MBeanServer
exception:
  IOException - for a communication problem during this operation



invoke
public Object invoke(ObjectName name, String operationName, Object[] params, String[] signature) throws InstanceNotFoundException, MBeanException, ReflectionException, IOException(Code)
Invokes an operation on an mbean.
Parameters:
  name - the object name of the mbean
Parameters:
  operationName - the operation to perform
Parameters:
  params - the parameters
Parameters:
  signature - the signature of the operation any result of the operation
exception:
  ReflectionException - for an exception invoking the mbean
exception:
  MBeanException - for any exception thrown by the mbean
exception:
  InstanceNotFoundException - if the mbean is not registered
exception:
  IOException - for a communication problem during this operation



isInstanceOf
public boolean isInstanceOf(ObjectName name, String className) throws InstanceNotFoundException, IOException(Code)
Tests whether an mbean can be cast to the given type
Parameters:
  name - the name of the mbean
Parameters:
  className - the class name to check true when it is of that type, false otherwise
exception:
  InstanceNotFoundException - if the mbean is not registered
exception:
  IOException - for a communication problem during this operation



isRegistered
public boolean isRegistered(ObjectName name) throws IOException(Code)
Test whether an mbean is registered.
Parameters:
  name - the object name of the mbean true when the mbean is registered, false otherwise
exception:
  RuntimeOperationsException - wrapping an IllegalArgumentException for anull name
exception:
  IOException - for a communication problem during this operation



queryMBeans
public Set queryMBeans(ObjectName name, QueryExp query) throws IOException(Code)
Retrieve a set of Object instances
Parameters:
  name - an ObjectName pattern, can be null for all mbeans
Parameters:
  query - a query expression to further filter the mbeans, can be nullfor no query
exception:
  IOException - for a communication problem during this operation



queryNames
public Set queryNames(ObjectName name, QueryExp query) throws IOException(Code)
Retrieve a set of Object names
Parameters:
  name - an ObjectName pattern, can be null for all mbeans
Parameters:
  query - a query expression to further filter the mbeans, can be nullfor no query
exception:
  IOException - for a communication problem during this operation



removeNotificationListener
public void removeNotificationListener(ObjectName name, ObjectName listener) throws InstanceNotFoundException, ListenerNotFoundException, IOException(Code)
Removes a listener from an mbean.

All registrations of the listener are removed.
Parameters:
  name - the name of the MBean broadcasting notifications
Parameters:
  listener - the object name of the listener to remove
exception:
  InstanceNotFoundException - if the broadcaster or listener is not registered
exception:
  ListenerNotFoundException - if the listener is not registered against the broadcaster
exception:
  IOException - for a communication problem during this operation




removeNotificationListener
public void removeNotificationListener(ObjectName name, ObjectName listener, NotificationFilter filter, Object handback) throws InstanceNotFoundException, ListenerNotFoundException, IOException(Code)
Removes a listener from an mbean.

Only the listener that was registered with the same filter and handback is removed.
Parameters:
  name - the name of the MBean broadcasting notifications
Parameters:
  listener - the object name of listener to remove
Parameters:
  filter - the filter of the listener to remove
exception:
  InstanceNotFoundException - if the broadcaster or listener is not registered
exception:
  ListenerNotFoundException - if the listener, filter, handback is not registered against the broadcaster
exception:
  IOException - for a communication problem during this operation




removeNotificationListener
public void removeNotificationListener(ObjectName name, NotificationListener listener) throws InstanceNotFoundException, ListenerNotFoundException, IOException(Code)
Removes a listener from an mbean.

All registrations of the listener are removed.
Parameters:
  name - the name of the MBean broadcasting notifications
Parameters:
  listener - the listener to remove
exception:
  InstanceNotFoundException - if the broadcaster is not registered
exception:
  ListenerNotFoundException - if the listener is not registered against the broadcaster
exception:
  IOException - for a communication problem during this operation




removeNotificationListener
public void removeNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback) throws InstanceNotFoundException, ListenerNotFoundException, IOException(Code)
Removes a listener from an mbean.

Only the listener that was registered with the same filter and handback is removed.
Parameters:
  name - the name of the MBean broadcasting notifications
Parameters:
  listener - the listener to remove
Parameters:
  filter - the filter of the listener to remove
exception:
  InstanceNotFoundException - if the broadcaster is not registered
exception:
  ListenerNotFoundException - if the listener, filter, handbackis not registered against the broadcaster
exception:
  IOException - for a communication problem during this operation




setAttribute
public void setAttribute(ObjectName name, Attribute attribute) throws InstanceNotFoundException, AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException, IOException(Code)
Set a value for an MBean.
Parameters:
  name - the object name of the mbean
Parameters:
  attribute - the attribute name and value to set
exception:
  ReflectionException - for an exception invoking the mbean
exception:
  MBeanException - for any exception thrown by the mbean
exception:
  InstanceNotFoundException - if the mbean is not registered
exception:
  AttributeNotFoundException - if the mbean has no such attribute
exception:
  InvalidAttributeValueException - if the new value has an incorrect type
exception:
  RuntimeOperationsException - wrapping an IllegalArgumentException for anull name or attribute
exception:
  IOException - for a communication problem during this operation



setAttributes
public AttributeList setAttributes(ObjectName name, AttributeList attributes) throws InstanceNotFoundException, ReflectionException, IOException(Code)
Set a list of values for an MBean.
Parameters:
  name - the object name of the mbean
Parameters:
  attributes - the attribute names and values to set the list of values, attributes with errors are ignored
exception:
  ReflectionException - for an exception invoking the mbean
exception:
  InstanceNotFoundException - if the mbean is not registered
exception:
  RuntimeOperationsException - wrapping an IllegalArgumentException for anull name or attributes
exception:
  IOException - for a communication problem during this operation



unregisterMBean
public void unregisterMBean(ObjectName name) throws InstanceNotFoundException, MBeanRegistrationException, IOException(Code)
Unregisters an mbean.
Parameters:
  name - the object name of the mbean to unregister
exception:
  InstanceNotFoundException - if the mbean is not registeredin the MBeanServer
exception:
  MBeanRegistrationException - for any exception thrown by theMBean's preDeregister
exception:
  RuntimeOperationsException - wrapping an IllegalArgumentException for anull name, or trying to unregister a JMX implementation MBean
exception:
  IOException - for a communication problem during this operation



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