Java Doc for MBeanServerImpl.java in  » EJB-Server-JBoss-4.2.1 » jmx » org » jboss » mx » server » 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 » org.jboss.mx.server 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jboss.mx.server.MBeanServerImpl

MBeanServerImpl
public class MBeanServerImpl implements MBeanServer,ServerConstants,ServiceConstants,ModelMBeanConstants(Code)
MBean server implementation. The MBean server behaviour can be configured by setting the following system properties: The loader repository is used for managing class loaders in the MBean server. The default repository uses the UnifiedLoaderRepository implementation ( ServerConstants.DEFAULT_LOADER_REPOSITORY_CLASS DEFAULT_LOADER_REPOSITORY_CLASS ).

The default registry is ( ServerConstants.DEFAULT_MBEAN_REGISTRY_CLASS DEFAULT_MBEAN_REGISTRY_CLASS ).

The RequiredModelMBean uses XMBean implementation by default ( ServerConstants.DEFAULT_REQUIRED_MODELMBEAN_CLASS DEFAULT_REQUIRED_MODELMBEAN_CLASS ).
See Also:   javax.management.MBeanServer
See Also:   javax.management.modelmbean.RequiredModelMBean
See Also:   org.jboss.mx.server.ServerConstants
See Also:   org.jboss.mx.loading.LoaderRepository
See Also:   org.jboss.mx.loading.UnifiedLoaderRepository3
See Also:   org.jboss.mx.modelmbean.XMBean
author:
   Juha Lindfors.
author:
   Trevor Squires.
author:
   Adrian Brock.
author:
   Thomas Diesler.
author:
   Scott.Stark@jboss.org
version:
   $Revision: 57200 $



Field Summary
protected  MBeanServerouter
    
protected  MBeanRegistryregistry
     Registry used by this server to map MBean object names to resource references.

Constructor Summary
public  MBeanServerImpl(String defaultDomain, MBeanServer outer, MBeanServerDelegate delegate)
     Creates an MBean server implementation with a given default domain name and registers the mandatory server delegate MBean to the server ( ServerConstants.MBEAN_SERVER_DELEGATE MBEAN_SERVER_DELEGATE ).

Method Summary
public  voidaddNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback)
     Adds a listener to a registered MBean. A notification emitted by the MBean will be forwarded by the MBeanServer to the listener. If the source of the notification is a reference to the MBean object, the MBean server will replace it by the MBean's ObjectName.
public  voidaddNotificationListener(ObjectName name, ObjectName listener, NotificationFilter filter, Object handback)
     Adds a listener to a registered MBean. A notification emitted by the MBean will be forwarded by the MBeanServer to the listener. If the source of the notification is a reference to the MBean object, the MBean server will replace it by the MBean's ObjectName.
public  ObjectInstancecreateMBean(String className, ObjectName name)
    
public  ObjectInstancecreateMBean(String className, ObjectName name, Object[] params, String[] signature)
    
public  ObjectInstancecreateMBean(String className, ObjectName name, ObjectName loaderName)
    
public  ObjectInstancecreateMBean(String className, ObjectName name, ObjectName loaderName, Object[] params, String[] signature)
    
protected  MBeanRegistrycreateRegistry(String defaultDomain)
    
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)
    
public  AttributeListgetAttributes(ObjectName name, String[] attributes)
    
public  ClassLoadergetClassLoader(ObjectName name)
    
Parameters:
  name - The ObjectName of the ClassLoader.
public  ClassLoadergetClassLoaderFor(ObjectName name)
    
public  ClassLoaderRepositorygetClassLoaderRepository()
    
public  StringgetDefaultDomain()
    
public  String[]getDomains()
    
public  java.lang.IntegergetMBeanCount()
    
public  MBeanInfogetMBeanInfo(ObjectName name)
    
public  ObjectInstancegetObjectInstance(ObjectName name)
    
protected  voidhandleInstantiateExceptions(Throwable t, String className)
    
public  Objectinstantiate(String className)
    
public  Objectinstantiate(String className, Object[] params, String[] signature)
    
public  Objectinstantiate(String className, ObjectName loaderName)
    
public  Objectinstantiate(String className, ObjectName loaderName, Object[] params, String[] signature)
    
protected  Objectinstantiate(String className, ClassLoader cl, Object[] params, String[] signature)
     Instantiate an object, the passed classloader is set as the thread's context classloader for the duration of this method.
public  Objectinvoke(ObjectName name, String operationName, Object[] params, String[] signature)
    
public  booleanisInstanceOf(ObjectName name, String className)
    
public  booleanisRegistered(ObjectName name)
    
protected  booleanqueryMBean(ObjectName objectName, QueryExp queryExp)
    
public  SetqueryMBeans(ObjectName name, QueryExp query)
    
public  SetqueryNames(ObjectName name, QueryExp query)
    
public  ObjectInstanceregisterMBean(Object object, ObjectName name)
     Registers a pre-existing object as an MBean with the MBean server.
protected  ObjectInstanceregisterMBean(Object mbean, ObjectName name, ObjectName loaderName)
    
protected  ObjectInstanceregisterMBean(Object object, ObjectName name, ClassLoader cl)
    
public  voidreleaseServer()
    
public  voidremoveNotificationListener(ObjectName name, NotificationListener listener)
     Removes a listener from a registered MBean.
public  voidremoveNotificationListener(ObjectName name, ObjectName listener)
     Removes a listener from a registered MBean.
public  voidremoveNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback)
     Removes a listener from a registered MBean.
public  voidremoveNotificationListener(ObjectName name, ObjectName listener, NotificationFilter filter, Object handback)
     Removes a listener from a registered MBean.
public  voidsetAttribute(ObjectName name, Attribute attribute)
    
public  AttributeListsetAttributes(ObjectName name, AttributeList attributes)
    
public  StringtoString()
    
public  voidunregisterMBean(ObjectName name)
    

Field Detail
outer
protected MBeanServer outer(Code)
The wrapping MBeanServer



registry
protected MBeanRegistry registry(Code)
Registry used by this server to map MBean object names to resource references.




Constructor Detail
MBeanServerImpl
public MBeanServerImpl(String defaultDomain, MBeanServer outer, MBeanServerDelegate delegate)(Code)
Creates an MBean server implementation with a given default domain name and registers the mandatory server delegate MBean to the server ( ServerConstants.MBEAN_SERVER_DELEGATE MBEAN_SERVER_DELEGATE ).
Parameters:
  defaultDomain - default domain name
Parameters:
  outer - the wrapping MBeanServer, passed to MBeansat registration.
Parameters:
  delegate - the delegate to usefor Notifications.




Method Detail
addNotificationListener
public void addNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback) throws InstanceNotFoundException(Code)
Adds a listener to a registered MBean. A notification emitted by the MBean will be forwarded by the MBeanServer to the listener. If the source of the notification is a reference to the MBean object, the MBean server will replace it by the MBean's ObjectName. Otherwise the source is unchanged.



addNotificationListener
public void addNotificationListener(ObjectName name, ObjectName listener, NotificationFilter filter, Object handback) throws InstanceNotFoundException(Code)
Adds a listener to a registered MBean. A notification emitted by the MBean will be forwarded by the MBeanServer to the listener. If the source of the notification is a reference to the MBean object, the MBean server will replace it by the MBean's ObjectName. Otherwise the source is unchanged. The listener object that receives notifications is the one that is registered with the given name at the time this method is called. Even if it is subsequently unregistered, it will continue to receive notifications.



createMBean
public ObjectInstance createMBean(String className, ObjectName name) throws ReflectionException, InstanceAlreadyExistsException, MBeanRegistrationException, MBeanException, NotCompliantMBeanException(Code)



createMBean
public ObjectInstance createMBean(String className, ObjectName name, Object[] params, String[] signature) throws ReflectionException, InstanceAlreadyExistsException, MBeanRegistrationException, MBeanException, NotCompliantMBeanException(Code)



createMBean
public ObjectInstance createMBean(String className, ObjectName name, ObjectName loaderName) throws ReflectionException, InstanceAlreadyExistsException, MBeanRegistrationException, MBeanException, NotCompliantMBeanException, InstanceNotFoundException(Code)



createMBean
public ObjectInstance createMBean(String className, ObjectName name, ObjectName loaderName, Object[] params, String[] signature) throws ReflectionException, InstanceAlreadyExistsException, MBeanRegistrationException, MBeanException, NotCompliantMBeanException, InstanceNotFoundException(Code)



createRegistry
protected MBeanRegistry createRegistry(String defaultDomain)(Code)



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



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



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



getAttribute
public Object getAttribute(ObjectName name, String attribute) throws MBeanException, AttributeNotFoundException, InstanceNotFoundException, ReflectionException(Code)



getAttributes
public AttributeList getAttributes(ObjectName name, String[] attributes) throws InstanceNotFoundException, ReflectionException(Code)



getClassLoader
public ClassLoader getClassLoader(ObjectName name) throws InstanceNotFoundException(Code)

Parameters:
  name - The ObjectName of the ClassLoader. May be null, in which casethe MBean server's own ClassLoader is returned.
throws:
  InstanceNotFoundException -



getClassLoaderFor
public ClassLoader getClassLoaderFor(ObjectName name) throws InstanceNotFoundException(Code)



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



getDefaultDomain
public String getDefaultDomain()(Code)



getDomains
public String[] getDomains()(Code)



getMBeanCount
public java.lang.Integer getMBeanCount()(Code)



getMBeanInfo
public MBeanInfo getMBeanInfo(ObjectName name) throws InstanceNotFoundException, IntrospectionException, ReflectionException(Code)



getObjectInstance
public ObjectInstance getObjectInstance(ObjectName name) throws InstanceNotFoundException(Code)



handleInstantiateExceptions
protected void handleInstantiateExceptions(Throwable t, String className) throws ReflectionException, MBeanException(Code)
Handles errors thrown during class instantiation



instantiate
public Object instantiate(String className) throws ReflectionException, MBeanException(Code)



instantiate
public Object instantiate(String className, Object[] params, String[] signature) throws ReflectionException, MBeanException(Code)



instantiate
public Object instantiate(String className, ObjectName loaderName) throws ReflectionException, MBeanException, InstanceNotFoundException(Code)



instantiate
public Object instantiate(String className, ObjectName loaderName, Object[] params, String[] signature) throws ReflectionException, MBeanException, InstanceNotFoundException(Code)



instantiate
protected Object instantiate(String className, ClassLoader cl, Object[] params, String[] signature) throws ReflectionException, MBeanException(Code)
Instantiate an object, the passed classloader is set as the thread's context classloader for the duration of this method.
Parameters:
  className - the class name of the object to instantiate
Parameters:
  cl - the thread classloader, pass null to use the ClassLoaderRepository
Parameters:
  params - the parameters for the constructor
Parameters:
  signature - the signature of the constructor
exception:
  ReflectionException - wraps a ClassCastException orany Exception trying to invoke the constructor
exception:
  MBeanException - wraps any exception thrown by the constructor
exception:
  RuntimeOperationsException - Wraps an IllegalArgument for anull className



invoke
public Object invoke(ObjectName name, String operationName, Object[] params, String[] signature) throws InstanceNotFoundException, MBeanException, ReflectionException(Code)



isInstanceOf
public boolean isInstanceOf(ObjectName name, String className) throws InstanceNotFoundException(Code)



isRegistered
public boolean isRegistered(ObjectName name)(Code)



queryMBean
protected boolean queryMBean(ObjectName objectName, QueryExp queryExp)(Code)
Query an MBean against the query
Parameters:
  objectName - the object name of the mbean to check
Parameters:
  queryExp - the query expression to test true when the query applies to the MBean or the query is null,false otherwise.



queryMBeans
public Set queryMBeans(ObjectName name, QueryExp query)(Code)



queryNames
public Set queryNames(ObjectName name, QueryExp query)(Code)



registerMBean
public ObjectInstance registerMBean(Object object, ObjectName name) throws InstanceAlreadyExistsException, MBeanRegistrationException, NotCompliantMBeanException(Code)
Registers a pre-existing object as an MBean with the MBean server. If the object name given is null, the MBean must provide its own name by implementing the MBeanRegistration interface and returning the name from the preRegister method.



registerMBean
protected ObjectInstance registerMBean(Object mbean, ObjectName name, ObjectName loaderName) throws ReflectionException, InstanceAlreadyExistsException, MBeanRegistrationException, MBeanException, NotCompliantMBeanException, InstanceNotFoundException(Code)
Register an MBean

The classloader is used as the thread context classloader during access to the mbean and it's interceptors
Parameters:
  mbean - the mbean to register
Parameters:
  name - the object name to register
Parameters:
  loaderName - the object name of a class loader also used asas the MBeans TCL
exception:
  InstanceAlreadyExistsException - when already registered
exception:
  MBeanRegistrationException - whenpreRegister(MBeanServer, ObjectName) throws an exception
exception:
  NotCompliantMBeanException - when the object is not an MBean




registerMBean
protected ObjectInstance registerMBean(Object object, ObjectName name, ClassLoader cl) throws InstanceAlreadyExistsException, MBeanRegistrationException, NotCompliantMBeanException(Code)
Register an MBean

The classloader is used as the thread context classloader during access to the mbean and it's interceptors
Parameters:
  object - the mbean to register
Parameters:
  name - the object name to register
Parameters:
  cl - the thread classloader, pass null for the current one
exception:
  InstanceAlreadyExistsException - when already registered
exception:
  MBeanRegistrationException - whenpreRegister(MBeanServer, ObjectName) throws an exception
exception:
  NotCompliantMBeanException - when the object is not an MBean




releaseServer
public void releaseServer()(Code)



removeNotificationListener
public void removeNotificationListener(ObjectName name, NotificationListener listener) throws InstanceNotFoundException, ListenerNotFoundException(Code)
Removes a listener from a registered MBean. If the listener is registered more than once, perhaps with different filters or callbacks, this method will remove all those registrations.



removeNotificationListener
public void removeNotificationListener(ObjectName name, ObjectName listener) throws InstanceNotFoundException, ListenerNotFoundException(Code)
Removes a listener from a registered MBean. If the listener is registered more than once, perhaps with different filters or callbacks, this method will remove all those registrations.



removeNotificationListener
public void removeNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback) throws InstanceNotFoundException, ListenerNotFoundException(Code)
Removes a listener from a registered MBean. The MBean must have a listener that exactly matches the given listener, filter, and handback parameters. If there is more than one such listener, only one is removed. The filter and handback parameters may be null if and only if they are null in a listener to be removed.



removeNotificationListener
public void removeNotificationListener(ObjectName name, ObjectName listener, NotificationFilter filter, Object handback) throws InstanceNotFoundException, ListenerNotFoundException(Code)
Removes a listener from a registered MBean. The MBean must have a listener that exactly matches the given listener, filter, and handback parameters. If there is more than one such listener, only one is removed. The filter and handback parameters may be null if and only if they are null in a listener to be removed.



setAttribute
public void setAttribute(ObjectName name, Attribute attribute) throws InstanceNotFoundException, AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException(Code)



setAttributes
public AttributeList setAttributes(ObjectName name, AttributeList attributes) throws InstanceNotFoundException, ReflectionException(Code)



toString
public String toString()(Code)
Simple toString() revealing default domain



unregisterMBean
public void unregisterMBean(ObjectName name) throws InstanceNotFoundException, MBeanRegistrationException(Code)



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.