Java Doc for AbstractMBeanServer.java in  » EJB-Server-resin-3.1.5 » resin » com » caucho » jmx » 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 resin 3.1.5 » resin » com.caucho.jmx 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.caucho.jmx.AbstractMBeanServer

All known Subclasses:   com.caucho.jmx.LocalMBeanServer,  com.caucho.jmx.GlobalMBeanServer,  com.caucho.jmx.EnvironmentMBeanServer,  com.caucho.jmx.MBeanServerImpl,
AbstractMBeanServer
abstract public class AbstractMBeanServer implements MBeanServer(Code)
The main interface for retrieving and managing JMX objects.


Field Summary
static  ObjectNameSERVER_DELEGATE_NAME
    

Constructor Summary
public  AbstractMBeanServer(String defaultDomain)
     Creats a new MBeanServer implementation.

Method Summary
public  voidaddNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback)
    
public  voidaddNotificationListener(ObjectName name, ObjectName listenerName, NotificationFilter filter, Object handback)
    
protected  MBeanContextcreateContext()
     Returns the context implementation.
abstract protected  MBeanContextcreateContext(ClassLoader loader)
     Returns the context implementation, creating if necessary.
public  ObjectInstancecreateMBean(String className, ObjectName name)
     Instantiate and register an MBean.
Parameters:
  className - the className to be instantiated.
Parameters:
  name - the name of the mbean.
public  ObjectInstancecreateMBean(String className, ObjectName name, ObjectName loaderName)
     Instantiate and register an MBean.
public  ObjectInstancecreateMBean(String className, ObjectName name, Object[] params, String[] signature)
     Instantiate and register an MBean.
public  ObjectInstancecreateMBean(String className, ObjectName name, ObjectName loaderName, Object[] params, String[] signature)
     Instantiate and register an MBean.
public  ObjectInputStreamdeserialize(ObjectName name, byte[] data)
     Deserializes a byte array in the class loader of the mbean.
public  ObjectInputStreamdeserialize(String className, byte[] data)
     Deserializes a byte array in the class loader of the mbean.
public  ObjectInputStreamdeserialize(String className, ObjectName loaderName, byte[] data)
     Deserializes a byte array in the class loader of the mbean.
public  voiddestroy()
     Handles the case where a class loader is dropped.
public  ObjectgetAttribute(ObjectName name, String attribute)
     Returns a specific attribute of a named MBean.
public  AttributeListgetAttributes(ObjectName name, String[] attributes)
     Returns a list of several MBean attributes.
public  ClassLoadergetClassLoader(ObjectName loaderName)
     Returns the named ClassLoader.
public  ClassLoadergetClassLoaderFor(ObjectName name)
     Returns the ClassLoader that was used for loading the MBean.
public  ClassLoaderRepositorygetClassLoaderRepository()
    
abstract protected  MBeanContextgetContext(ClassLoader loader)
     Returns the context implementation.
public  StringgetDefaultDomain()
    
public  String[]getDomains()
    
protected  MBeanContextgetExistingContext()
     Returns the context implementation.
abstract protected  MBeanContextgetExistingContext(ClassLoader loader)
     Returns the context implementation.
protected  MBeanContextgetGlobalContext()
     Returns the context implementation.
protected  MBeanViewgetGlobalView()
     Returns the view implementation.
 MBeanWrappergetMBean(ObjectName name)
     Finds the MBean implementation.
public  IntegergetMBeanCount()
     Returns the number of MBeans registered.
public  MBeanInfogetMBeanInfo(ObjectName name)
    
public  ObjectInstancegetObjectInstance(ObjectName name)
     Returns the MBean registered with the given name.
Parameters:
  name - the name of the mbean.
protected  MBeanViewgetParentView()
     Returns the view implementation.
protected  MBeanViewgetView()
     Returns the view implementation.
public  Objectinstantiate(String className)
     Instantiate an MBean object to be registered with the server.
Parameters:
  className - the className to be instantiated.
public  Objectinstantiate(String className, ObjectName loaderName)
     Instantiate an MBean object to be registered with the server.
public  Objectinstantiate(String className, Object[] params, String[] signature)
     Instantiate an MBean object with the given arguments to be passed to the constructor.
public  Objectinstantiate(String className, ObjectName loaderName, Object[] params, String[] signature)
     Instantiate an MBean object with the given arguments to be passed to the constructor.
public  Objectinvoke(ObjectName name, String operationName, Object[] params, String[] signature)
     Invokers an operation on an MBean.
public  booleanisInstanceOf(ObjectName name, String className)
     Returns true if the MBean is an instance of the specified class.
Parameters:
  name - the name of the mbean
Parameters:
  className - the className to test.
public  booleanisRegistered(ObjectName name)
     Returns true if the given object is registered with the server.
Parameters:
  name - the name of the mbean to test.
public  Set<ObjectInstance>queryMBeans(ObjectName name, QueryExp query)
     Returns a set of MBeans matching the query.
Parameters:
  name - the name of the mbean to match.
Parameters:
  query - the queryd to match.
public  Set<ObjectName>queryNames(ObjectName name, QueryExp query)
     Returns a set of names for MBeans matching the query.
Parameters:
  name - the name of the mbean to match.
Parameters:
  query - the query to match.
public  ObjectInstanceregisterMBean(Object object, ObjectName name)
     Registers an MBean with the server.
Parameters:
  object - the object to be registered as an MBean
Parameters:
  name - the name of the mbean.
protected  voidremoveContext(MBeanContext context, ClassLoader loader)
     Removes the context implementation.
public  voidremoveNotificationListener(ObjectName name, NotificationListener listener)
    
public  voidremoveNotificationListener(ObjectName name, ObjectName listenerName)
    
public  voidremoveNotificationListener(ObjectName name, ObjectName listenerName, NotificationFilter filter, Object handback)
    
public  voidremoveNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback)
    
public  voidsetAttribute(ObjectName name, Attribute attribute)
     Sets an attribute in the MBean.
public  AttributeListsetAttributes(ObjectName name, AttributeList attributes)
     Set an attributes in the MBean.
public  StringtoString()
     Returns the string form.
public  voidunregisterMBean(ObjectName name)
     Unregisters an MBean from the server.

Field Detail
SERVER_DELEGATE_NAME
static ObjectName SERVER_DELEGATE_NAME(Code)




Constructor Detail
AbstractMBeanServer
public AbstractMBeanServer(String defaultDomain)(Code)
Creats a new MBeanServer implementation.




Method Detail
addNotificationListener
public void addNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback) throws InstanceNotFoundException(Code)
Adds a listener to a registered MBean
Parameters:
  name - the name of the mbean
Parameters:
  listener - the listener object
Parameters:
  filter - filters events the listener is interested in
Parameters:
  handback - context to be returned to the listener



addNotificationListener
public void addNotificationListener(ObjectName name, ObjectName listenerName, NotificationFilter filter, Object handback) throws InstanceNotFoundException(Code)
Adds a listener to a registered MBean
Parameters:
  name - the name of the mbean
Parameters:
  listenerName - the name of the listener
Parameters:
  filter - filters events the listener is interested in
Parameters:
  handback - context to be returned to the listener



createContext
protected MBeanContext createContext()(Code)
Returns the context implementation.



createContext
abstract protected MBeanContext createContext(ClassLoader loader)(Code)
Returns the context implementation, creating if necessary.



createMBean
public ObjectInstance createMBean(String className, ObjectName name) throws ReflectionException, InstanceAlreadyExistsException, MBeanException, NotCompliantMBeanException(Code)
Instantiate and register an MBean.
Parameters:
  className - the className to be instantiated.
Parameters:
  name - the name of the mbean. the instantiated object.



createMBean
public ObjectInstance createMBean(String className, ObjectName name, ObjectName loaderName) throws ReflectionException, InstanceAlreadyExistsException, MBeanException, NotCompliantMBeanException, InstanceNotFoundException(Code)
Instantiate and register an MBean.
Parameters:
  className - the className to be instantiated.
Parameters:
  name - the name of the mbean.
Parameters:
  loaderName - the name of the class loader to user the instantiated object.



createMBean
public ObjectInstance createMBean(String className, ObjectName name, Object[] params, String[] signature) throws ReflectionException, InstanceAlreadyExistsException, MBeanException, NotCompliantMBeanException(Code)
Instantiate and register an MBean.
Parameters:
  className - the className to be instantiated.
Parameters:
  name - the name of the mbean.
Parameters:
  params - the parameters for the constructor.
Parameters:
  signature - the signature of the constructor the instantiated object.



createMBean
public ObjectInstance createMBean(String className, ObjectName name, ObjectName loaderName, Object[] params, String[] signature) throws ReflectionException, InstanceAlreadyExistsException, MBeanException, NotCompliantMBeanException, InstanceNotFoundException(Code)
Instantiate and register an MBean.
Parameters:
  className - the className to be instantiated.
Parameters:
  name - the name of the mbean.
Parameters:
  loaderName - the loader name for the mbean.
Parameters:
  params - the parameters for the constructor.
Parameters:
  signature - the signature of the constructor the instantiated object.



deserialize
public ObjectInputStream deserialize(ObjectName name, byte[] data) throws InstanceNotFoundException, OperationsException(Code)
Deserializes a byte array in the class loader of the mbean.
Parameters:
  name - the name of the mbean
Parameters:
  data - the data to deserialize the deserialization stream



deserialize
public ObjectInputStream deserialize(String className, byte[] data) throws OperationsException, ReflectionException(Code)
Deserializes a byte array in the class loader of the mbean.
Parameters:
  className - the className matches to the loader
Parameters:
  data - the data to deserialize the deserialization stream



deserialize
public ObjectInputStream deserialize(String className, ObjectName loaderName, byte[] data) throws OperationsException, ReflectionException, InstanceNotFoundException(Code)
Deserializes a byte array in the class loader of the mbean.
Parameters:
  className - the className matches to the loader
Parameters:
  loaderName - the loader to use for deserialization
Parameters:
  data - the data to deserialize the deserialization stream



destroy
public void destroy()(Code)
Handles the case where a class loader is dropped.



getAttribute
public Object getAttribute(ObjectName name, String attribute) throws MBeanException, AttributeNotFoundException, InstanceNotFoundException, ReflectionException(Code)
Returns a specific attribute of a named MBean.
Parameters:
  name - the name of the mbean to test
Parameters:
  attribute - the name of the attribute to retrieve the attribute value



getAttributes
public AttributeList getAttributes(ObjectName name, String[] attributes) throws InstanceNotFoundException, ReflectionException(Code)
Returns a list of several MBean attributes.
Parameters:
  name - the name of the mbean
Parameters:
  attributes - the name of the attributes to retrieve the attribute value



getClassLoader
public ClassLoader getClassLoader(ObjectName loaderName) throws InstanceNotFoundException(Code)
Returns the named ClassLoader.
Parameters:
  loaderName - the name of the class loader the class loader
since:
   JMX 1.2



getClassLoaderFor
public ClassLoader getClassLoaderFor(ObjectName name) throws InstanceNotFoundException(Code)
Returns the ClassLoader that was used for loading the MBean.
Parameters:
  mbeanName - the name of the mbean the class loader
since:
   JMX 1.2



getClassLoaderRepository
public ClassLoaderRepository getClassLoaderRepository()(Code)
Returns the ClassLoaderRepository for this MBeanServer
since:
   JMX 1.2



getContext
abstract protected MBeanContext getContext(ClassLoader loader)(Code)
Returns the context implementation.



getDefaultDomain
public String getDefaultDomain()(Code)
Returns the default domain for naming the MBean



getDomains
public String[] getDomains()(Code)
Returns the domains for all registered MBeans
since:
   JMX 1.2



getExistingContext
protected MBeanContext getExistingContext()(Code)
Returns the context implementation.



getExistingContext
abstract protected MBeanContext getExistingContext(ClassLoader loader)(Code)
Returns the context implementation.



getGlobalContext
protected MBeanContext getGlobalContext()(Code)
Returns the context implementation.



getGlobalView
protected MBeanView getGlobalView()(Code)
Returns the view implementation.



getMBean
MBeanWrapper getMBean(ObjectName name)(Code)
Finds the MBean implementation.



getMBeanCount
public Integer getMBeanCount()(Code)
Returns the number of MBeans registered. the number of registered mbeans.



getMBeanInfo
public MBeanInfo getMBeanInfo(ObjectName name) throws InstanceNotFoundException, IntrospectionException, ReflectionException(Code)
Returns the analyzed information for an MBean
Parameters:
  name - the name of the mbean the introspected information



getObjectInstance
public ObjectInstance getObjectInstance(ObjectName name) throws InstanceNotFoundException(Code)
Returns the MBean registered with the given name.
Parameters:
  name - the name of the mbean. the matching mbean object.



getParentView
protected MBeanView getParentView()(Code)
Returns the view implementation.



getView
protected MBeanView getView()(Code)
Returns the view implementation.



instantiate
public Object instantiate(String className) throws ReflectionException, MBeanException(Code)
Instantiate an MBean object to be registered with the server.
Parameters:
  className - the className to be instantiated. the instantiated object.



instantiate
public Object instantiate(String className, ObjectName loaderName) throws ReflectionException, MBeanException, InstanceNotFoundException(Code)
Instantiate an MBean object to be registered with the server.
Parameters:
  className - the className to be instantiated.
Parameters:
  loaderName - names the classloader to be used the instantiated object.



instantiate
public Object instantiate(String className, Object[] params, String[] signature) throws ReflectionException, MBeanException(Code)
Instantiate an MBean object with the given arguments to be passed to the constructor.
Parameters:
  className - the className to be instantiated.
Parameters:
  params - the parameters for the constructor.
Parameters:
  signature - the signature of the constructor the instantiated object.



instantiate
public Object instantiate(String className, ObjectName loaderName, Object[] params, String[] signature) throws ReflectionException, MBeanException, InstanceNotFoundException(Code)
Instantiate an MBean object with the given arguments to be passed to the constructor.
Parameters:
  className - the className to be instantiated.
Parameters:
  loaderName - names the classloader to be used
Parameters:
  params - the parameters for the constructor.
Parameters:
  signature - the signature of the constructor the instantiated object.



invoke
public Object invoke(ObjectName name, String operationName, Object[] params, String[] signature) throws InstanceNotFoundException, MBeanException, ReflectionException(Code)
Invokers an operation on an MBean.
Parameters:
  name - the name of the mbean
Parameters:
  operationName - the name of the method to invoke
Parameters:
  params - the parameters for the invocation
Parameters:
  signature - the signature of the operation



isInstanceOf
public boolean isInstanceOf(ObjectName name, String className) throws InstanceNotFoundException(Code)
Returns true if the MBean is an instance of the specified class.
Parameters:
  name - the name of the mbean
Parameters:
  className - the className to test. true if the bean is an instance



isRegistered
public boolean isRegistered(ObjectName name)(Code)
Returns true if the given object is registered with the server.
Parameters:
  name - the name of the mbean to test. true if the object is registered.



queryMBeans
public Set<ObjectInstance> queryMBeans(ObjectName name, QueryExp query)(Code)
Returns a set of MBeans matching the query.
Parameters:
  name - the name of the mbean to match.
Parameters:
  query - the queryd to match. the set of matching mbean object.



queryNames
public Set<ObjectName> queryNames(ObjectName name, QueryExp query)(Code)
Returns a set of names for MBeans matching the query.
Parameters:
  name - the name of the mbean to match.
Parameters:
  query - the query to match. the set of matching mbean names.



registerMBean
public ObjectInstance registerMBean(Object object, ObjectName name) throws InstanceAlreadyExistsException, MBeanRegistrationException, NotCompliantMBeanException(Code)
Registers an MBean with the server.
Parameters:
  object - the object to be registered as an MBean
Parameters:
  name - the name of the mbean. the instantiated object.



removeContext
protected void removeContext(MBeanContext context, ClassLoader loader)(Code)
Removes the context implementation.



removeNotificationListener
public void removeNotificationListener(ObjectName name, NotificationListener listener) throws InstanceNotFoundException, ListenerNotFoundException(Code)
Removes a listener from a registered MBean
Parameters:
  name - the name of the mbean
Parameters:
  listener - the listener object



removeNotificationListener
public void removeNotificationListener(ObjectName name, ObjectName listenerName) throws InstanceNotFoundException, ListenerNotFoundException(Code)
Removes a listener from a registered MBean
Parameters:
  name - the name of the mbean
Parameters:
  listenerName - the name of the listener



removeNotificationListener
public void removeNotificationListener(ObjectName name, ObjectName listenerName, NotificationFilter filter, Object handback) throws InstanceNotFoundException, ListenerNotFoundException(Code)
Removes a listener from a registered MBean
Parameters:
  name - the name of the mbean
Parameters:
  listenerName - the name of the listener
Parameters:
  filter - the notification filter
Parameters:
  handback - context to the listener
since:
   JMX 1.2



removeNotificationListener
public void removeNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback) throws InstanceNotFoundException, ListenerNotFoundException(Code)
Removes a listener from a registered MBean
Parameters:
  name - the name of the mbean
Parameters:
  listenerName - the name of the listener
Parameters:
  filter - the notification filter
Parameters:
  handback - context to the listener
since:
   JMX 1.2



setAttribute
public void setAttribute(ObjectName name, Attribute attribute) throws InstanceNotFoundException, AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException(Code)
Sets an attribute in the MBean.
Parameters:
  name - the name of the mbean
Parameters:
  attribute - the name/value of the attribute to set.



setAttributes
public AttributeList setAttributes(ObjectName name, AttributeList attributes) throws InstanceNotFoundException, ReflectionException(Code)
Set an attributes in the MBean.
Parameters:
  name - the name of the mbean
Parameters:
  attributes - the name/value list of the attribute to set.



toString
public String toString()(Code)
Returns the string form.



unregisterMBean
public void unregisterMBean(ObjectName name) throws InstanceNotFoundException, MBeanRegistrationException(Code)
Unregisters an MBean from the server.
Parameters:
  name - the name of the mbean.



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.