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


org.jboss.mx.server.registry.MBeanRegistry

All known Subclasses:   org.jboss.mx.server.registry.BasicMBeanRegistry,
MBeanRegistry
public interface MBeanRegistry extends ServerConstants(Code)
Implementations of this interface can be plugged into the MBeanServer, to control the registration and deregistration of MBeans.

The registry can expose itself for management under the object name defined the name defined in ServerConstants When this is the case, the MBeanServer will perform the register/unregister operations dynamically.
author:
   Juha Lindfors.
author:
   Trevor Squires.
author:
   Adrian Brock.
version:
   $Revision: 57200 $
See Also:   MBeanEntry
See Also:   

Revisions:
See Also:   

20030806 Juha Lindfors:
See Also:   


    See Also:   

  • See Also:   Added releaseRegistry() method to the interface as per the patch
    See Also:   submitted by Rod Burgett (Bug Tracker: #763378)
    See Also:   




Method Summary
 booleancontains(ObjectName name)
     Test whether an object name is registered.
public  ListfindEntries(ObjectName pattern)
     Return a List of MBeanEntry objects with ObjectNames that match the specified pattern.
public  MBeanEntryget(ObjectName name)
     Retrieve the registration for an object name.

This method is invoked by the MBeanServer for methods passing an ObjectName that are not covered in other methods.

The object name passed maybe unqualified.

 StringgetDefaultDomain()
    
 String[]getDomains()
    
public  ObjectInstancegetObjectInstance(ObjectName name)
     Retrieve the object instance for an object name.
 intgetSize()
     Retrieve the number of mbeans registered.

This method is invoked by the MBeanServer for getMBeanCount().

public  ObjectgetValue(ObjectName name, String key)
     Retrieve a value from the registration.
 ObjectInstanceregisterMBean(Object object, ObjectName name, Map valueMap)
     Register an mbean.

This method is invoked by the MBeanServer for createMBean() and registerMBean().

The object name passed maybe unqualified.

The map is a user definable string to value object map for holding information against a registered object.

 voidreleaseRegistry()
     Invoked before the MBean server instance is released.
 voidunregisterMBean(ObjectName name)
     Unregister an mbean.



Method Detail
contains
boolean contains(ObjectName name)(Code)
Test whether an object name is registered.

This method is invoked by the MBeanServer for isRegistered().

The object name passed maybe unqualified.
Parameters:
  name - the object name true when the object name is registered, false otherwise




findEntries
public List findEntries(ObjectName pattern)(Code)
Return a List of MBeanEntry objects with ObjectNames that match the specified pattern.

This method is invoked by the MBeanServer for queryMBeans() and queryNames().
Parameters:
  pattern - the pattern to match a List of entries matching the pattern




get
public MBeanEntry get(ObjectName name) throws InstanceNotFoundException(Code)
Retrieve the registration for an object name.

This method is invoked by the MBeanServer for methods passing an ObjectName that are not covered in other methods.

The object name passed maybe unqualified.
Parameters:
  name - the object name to retrieve the mbean's registration
exception:
  InstanceNotFoundException - when the object name is notregistered.




getDefaultDomain
String getDefaultDomain()(Code)
Retrieve the default domain for this registry.

the default domain




getDomains
String[] getDomains()(Code)
Retrieve the domains for this registry.

the domains




getObjectInstance
public ObjectInstance getObjectInstance(ObjectName name) throws InstanceNotFoundException(Code)
Retrieve the object instance for an object name.
Parameters:
  name - the object name of the mbean the object instance
exception:
  InstanceNotFoundException - when the object name is notregistered



getSize
int getSize()(Code)
Retrieve the number of mbeans registered.

This method is invoked by the MBeanServer for getMBeanCount(). the number of mbeans registered.




getValue
public Object getValue(ObjectName name, String key) throws InstanceNotFoundException(Code)
Retrieve a value from the registration.
Parameters:
  name - the object name of the mbean
Parameters:
  key - the key to the value the value or null if there is no such value
exception:
  InstanceNotFoundException - when the object name is notregistered



registerMBean
ObjectInstance registerMBean(Object object, ObjectName name, Map valueMap) throws InstanceAlreadyExistsException, MBeanRegistrationException, NotCompliantMBeanException(Code)
Register an mbean.

This method is invoked by the MBeanServer for createMBean() and registerMBean().

The object name passed maybe unqualified.

The map is a user definable string to value object map for holding information against a registered object. This map may contain metadata related to the registration, such as registration date/time, classloader references, etc.

Pass org.jboss.mx.server.ServerConstants.JMI_DOMAIN JMI_DOMAIN in both the key and values of the values map to get access to the reserved domain. It is removed from the map during registration to save memory.

Pass ServerConstants.CLASSLOADER CLASSLOADER in the values map to set the context classloader

Other values are user definable and can be retrieved using the getValue(ObjectName,String) method.
Parameters:
  object - the mbean to register.
Parameters:
  name - the object name to assign to the mbean.
Parameters:
  valueMap - a map of other information to include in theregistry an object instance for the registered mbean
exception:
  InstanceAlreadyExistsException - when the object nameis already registered.
exception:
  MBeanRegistrationException - when an exception is raisedduring preRegister for the mbean.
exception:
  NotCompliantMBeanException - when the passed object isa valid mbean.




releaseRegistry
void releaseRegistry()(Code)
Invoked before the MBean server instance is released. Implementing this method lets the registry to process any clean up before the MBean server is shut down.



unregisterMBean
void unregisterMBean(ObjectName name) throws InstanceNotFoundException, MBeanRegistrationException(Code)
Unregister an mbean.

This method is invoked by the MBeanServer for unregisterMBean().

The object name passed maybe unqualified.

MBeans in JMImplementation cannot be unregistered
Parameters:
  name - the mbean to unregister.
exception:
  InstanceNotFoundException - when the object name isnot registered.
exception:
  MBeanRegistrationException - when an exception is raisedduring preDeregister for the 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.