Java Doc for MBeanServer.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.MBeanServer

All known Subclasses:   org.jboss.mx.server.MBeanServerImpl,
MBeanServer
public interface MBeanServer extends MBeanServerConnection(Code)
The interface used to access the MBean server instances.
See Also:   javax.management.MBeanServerFactory
See Also:   javax.management.loading.ClassLoaderRepository
author:
   Juha Lindfors.
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  ObjectInputStreamdeserialize(ObjectName name, byte[] data)
    
public  ObjectInputStreamdeserialize(String className, byte[] data)
    
public  ObjectInputStreamdeserialize(String className, ObjectName loaderName, byte[] data)
    
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  ClassLoadergetClassLoader(ObjectName name)
    
public  ClassLoadergetClassLoaderFor(ObjectName name)
    
public  ClassLoaderRepositorygetClassLoaderRepository()
    
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  Objectinstantiate(String className)
     Instantiates an object using the default loader repository and default no-args constructor.
See Also:   javax.management.loading.DefaultLoaderRepository
Parameters:
  className - Class to instantiate.
public  Objectinstantiate(String className, ObjectName loaderName)
     Instantiates an object using the given class loader.
public  Objectinstantiate(String className, Object[] params, String[] signature)
     Instantiates an object using the default loader repository and a given constructor. The class being instantiated must contain a constructor that matches the signature given as an argument to this method call.
See Also:   javax.management.loading.DefaultLoaderRepository
Parameters:
  className - class to instantiate
Parameters:
  params - argument values for the constructor call
Parameters:
  signature - signature of the constructor as fully qualified class names instantiated object
throws:
  ReflectionException - If there was an error while trying to invokethe class's constructor or the given class was not found.
public  Objectinstantiate(String className, ObjectName loaderName, Object[] params, String[] signature)
     Instantiates an object using the given class loader.
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  ObjectInstanceregisterMBean(Object object, ObjectName name)
     Registers an mbean.
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(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



addNotificationListener
public void addNotificationListener(ObjectName name, ObjectName listener, NotificationFilter filter, Object handback) throws InstanceNotFoundException(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



createMBean
public ObjectInstance createMBean(String className, ObjectName name) throws ReflectionException, InstanceAlreadyExistsException, MBeanRegistrationException, MBeanException, NotCompliantMBeanException(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




createMBean
public ObjectInstance createMBean(String className, ObjectName name, ObjectName loaderName) throws ReflectionException, InstanceAlreadyExistsException, MBeanRegistrationException, MBeanException, NotCompliantMBeanException, InstanceNotFoundException(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




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

Uses the specified constructor.
Parameters:
  className - the class name of the mbean
Parameters:
  loaderName - an MBean that implements a classloader
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




createMBean
public ObjectInstance createMBean(String className, ObjectName name, ObjectName loaderName, Object[] params, String[] signature) throws ReflectionException, InstanceAlreadyExistsException, MBeanRegistrationException, MBeanException, NotCompliantMBeanException, InstanceNotFoundException(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




deserialize
public ObjectInputStream deserialize(ObjectName name, byte[] data) throws InstanceNotFoundException, OperationsException(Code)
MBeanServer.getClassLoaderFor(ObjectName)



deserialize
public ObjectInputStream deserialize(String className, byte[] data) throws OperationsException, ReflectionException(Code)
MBeanServer.getClassLoaderFor(ObjectName)



deserialize
public ObjectInputStream deserialize(String className, ObjectName loaderName, byte[] data) throws InstanceNotFoundException, OperationsException, ReflectionException(Code)
MBeanServer.getClassLoaderFor(ObjectName)



getAttribute
public Object getAttribute(ObjectName name, String attribute) throws MBeanException, AttributeNotFoundException, InstanceNotFoundException, ReflectionException(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



getAttributes
public AttributeList getAttributes(ObjectName name, String[] attributes) throws InstanceNotFoundException, ReflectionException(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



getClassLoader
public ClassLoader getClassLoader(ObjectName name) throws InstanceNotFoundException(Code)
Retrieve the classloader registered as an MBean
Parameters:
  name - the object name of the classloader the classloader
exception:
  InstanceNotFoundException - when the mbean is not registered



getClassLoaderFor
public ClassLoader getClassLoaderFor(ObjectName name) throws InstanceNotFoundException(Code)
Retrieve the classloader for an mbean
Parameters:
  name - the object name of the mbean the classloader
exception:
  InstanceNotFoundException - when the mbean is not registered



getClassLoaderRepository
public ClassLoaderRepository getClassLoaderRepository()(Code)
Retrieve the classloader repository for this mbean server the classloader repository



getDefaultDomain
public String getDefaultDomain()(Code)
Retrieve the default domain of the mbeanserver. the default domain



getDomains
public String[] getDomains()(Code)
Retrieve the domains of the mbeanserver. the domains



getMBeanCount
public Integer getMBeanCount()(Code)
Retrieve the number of mbeans registered in the server. true the number of registered mbeans



getMBeanInfo
public MBeanInfo getMBeanInfo(ObjectName name) throws InstanceNotFoundException, IntrospectionException, ReflectionException(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



getObjectInstance
public ObjectInstance getObjectInstance(ObjectName name) throws InstanceNotFoundException(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



instantiate
public Object instantiate(String className) throws ReflectionException, MBeanException(Code)
Instantiates an object using the default loader repository and default no-args constructor.
See Also:   javax.management.loading.DefaultLoaderRepository
Parameters:
  className - Class to instantiate. Must have a public no-argsconstructor. Cannot contain a null reference. instantiated object
throws:
  ReflectionException - If there was an error while trying to invokethe class's constructor or the given class was not found. Thisexception wraps the actual exception thrown.
throws:
  MBeanException - If the object constructor threw a checked exceptionduring the initialization. This exception wraps the actualexception thrown.
throws:
  RuntimeMBeanException - If the class constructor threw a runtimeexception. This exception wraps the actual exception thrown.
throws:
  RuntimeErrorException - If the class constructor threw an error.This exception wraps the actual error thrown.
throws:
  RuntimeOperationsException - If the className is null.Wraps an IllegalArgumentException instance.



instantiate
public Object instantiate(String className, ObjectName loaderName) throws ReflectionException, MBeanException, InstanceNotFoundException(Code)
Instantiates an object using the given class loader. If the loader name contains a null reference, the class loader of the MBean server implementation will be used. The object must have a default, no-args constructor.
Parameters:
  className - Class to instantiate. Must have a public no args constructor.Cannot contain a null reference.
Parameters:
  loaderName - Object name of a class loader that has been registered to the server.If null, the class loader of the MBean server is used. instantiated object
throws:
  ReflectionException - If there was an error while trying to invokethe class's constructor or the given class was not found. Thisexception wraps the actual exception thrown.
throws:
  MBeanException - If the object constructor threw a checked exceptionduring the initialization. This exception wraps the actual exceptionthrown.
throws:
  InstanceNotFoundException - if the specified class loader was notregistered to the agent
throws:
  RuntimeMBeanException - If the class constructor raised a runtimeexception. This exception wraps the actual exception thrown.
throws:
  RuntimeErrorException - If the class constructor raised an error.This exception wraps the actual error thrown.
throws:
  RuntimeOperationsException - if the className is null.Wraps an IllegalArgumentException instance.



instantiate
public Object instantiate(String className, Object[] params, String[] signature) throws ReflectionException, MBeanException(Code)
Instantiates an object using the default loader repository and a given constructor. The class being instantiated must contain a constructor that matches the signature given as an argument to this method call.
See Also:   javax.management.loading.DefaultLoaderRepository
Parameters:
  className - class to instantiate
Parameters:
  params - argument values for the constructor call
Parameters:
  signature - signature of the constructor as fully qualified class names instantiated object
throws:
  ReflectionException - If there was an error while trying to invokethe class's constructor or the given class was not found. Thisexception wraps the actual exception thrown.
throws:
  MBeanException - If the object constructor raised a checked exceptionduring the initialization. This exception wraps the actual exceptionthrown.
throws:
  RuntimeMBeanException - If the class constructor raised a runtimeexception. This exception wraps the actual exception thrown.
throws:
  RuntimeErrorException - If the class constructor raised an error.This exception wraps the actual error thrown.
throws:
  RuntimeOperationsException - if the className is null.Wraps an IllegalArgumentException instance.



instantiate
public Object instantiate(String className, ObjectName loaderName, Object[] params, String[] signature) throws ReflectionException, MBeanException, InstanceNotFoundException(Code)
Instantiates an object using the given class loader. If the loader name contains a null reference, the class loader of the MBean server implementation will be used. The object must contain a constructor with a matching signature given as a parameter to this call.
Parameters:
  className - class to instantiate
Parameters:
  loaderName - object name of a registered class loader in the agent.
Parameters:
  params - argument values for the constructor call
Parameters:
  signature - signature of the constructor as fully qualified class name strings instantiated object
throws:
  ReflectionException - If there was an error while trying to invoke theclass's constructor or the given class was not found. this exceptionwraps the actual exception thrown.
throws:
  MBeanException - If the object constructor raised a checked exceptionduring the initialization. This exception wraps the actual exception thrown.
throws:
  InstanceNotFoundException - if the specified class loader was notregistered to the agent.
throws:
  RuntimeMBeanException - If the class constructor raised a runtimeexception. This exception wraps the actual exception thrown.
throws:
  RuntimeErrorException - If the class constructor raised an error.This exception wraps the actual error thrown.
throws:
  RuntimeOperationsException - if the className argument is null.Wraps an IllegalArgumentException instance.



invoke
public Object invoke(ObjectName name, String operationName, Object[] params, String[] signature) throws InstanceNotFoundException, MBeanException, ReflectionException(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



isInstanceOf
public boolean isInstanceOf(ObjectName name, String className) throws InstanceNotFoundException(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



isRegistered
public boolean isRegistered(ObjectName name)(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



queryMBeans
public Set queryMBeans(ObjectName name, QueryExp query)(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



queryNames
public Set queryNames(ObjectName name, QueryExp query)(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



registerMBean
public ObjectInstance registerMBean(Object object, ObjectName name) throws InstanceAlreadyExistsException, MBeanRegistrationException, NotCompliantMBeanException(Code)
Registers an mbean.
Parameters:
  object - the mbean implementation to register
Parameters:
  name - the object name of the mbean to register
exception:
  InstanceAlreadyExistsException - if the object name is already registeredin the MBeanServer
exception:
  MBeanRegistrationException - for any exception thrown by theMBean's preDeregister
exception:
  NotCompliantMBeanException - if the class name does not correspond toa valid MBean
exception:
  RuntimeOperationsException - wrapping an IllegalArgumentException for anull name, or trying to register a JMX implementation MBean



removeNotificationListener
public void removeNotificationListener(ObjectName name, ObjectName listener) throws InstanceNotFoundException, ListenerNotFoundException(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




removeNotificationListener
public void removeNotificationListener(ObjectName name, ObjectName listener, NotificationFilter filter, Object handback) throws InstanceNotFoundException, ListenerNotFoundException(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, handbackis not registered against the broadcaster




removeNotificationListener
public void removeNotificationListener(ObjectName name, NotificationListener listener) throws InstanceNotFoundException, ListenerNotFoundException(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




removeNotificationListener
public void removeNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback) throws InstanceNotFoundException, ListenerNotFoundException(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, handback is not registered against the broadcaster




setAttribute
public void setAttribute(ObjectName name, Attribute attribute) throws InstanceNotFoundException, AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException(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



setAttributes
public AttributeList setAttributes(ObjectName name, AttributeList attributes) throws InstanceNotFoundException, ReflectionException(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



unregisterMBean
public void unregisterMBean(ObjectName name) throws InstanceNotFoundException, MBeanRegistrationException(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



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