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


java.lang.Object
   org.jboss.mx.server.registry.BasicMBeanRegistry

BasicMBeanRegistry
public class BasicMBeanRegistry implements MBeanRegistry(Code)
The registry for object name - object reference mapping in the MBean server.

The implementation of this class affects the invocation speed directly, please check any changes for performance.
See Also:   org.jboss.mx.server.registry.MBeanRegistry
author:
   Juha Lindfors.
author:
   Trevor Squires.
author:
   Adrian Brock.
author:
   Jeff Haynie.
author:
   Thomas Diesler.
version:
   $Revision: 57200 $



Field Summary
protected  MBeanServerDelegatedelegate
     Direct reference to the mandatory MBean server delegate MBean.
protected  VectorfMbInfosToStore
    
protected static  Loggerlog
    
final protected  SynchronizedLongregistrationNotificationSequence
     Sequence number for the MBean server registration notifications.
final protected  SynchronizedLongunregistrationNotificationSequence
     Sequence number for the MBean server unregistration notifications.

Constructor Summary
public  BasicMBeanRegistry(MBeanServer server, String defaultDomain, ClassLoaderRepository clr)
    

Method Summary
protected synchronized  voidadd(MBeanEntry entry)
     Adds an MBean entry

WARNING: The object name should be fully qualified.

public  booleancontains(ObjectName name)
    
public  ListfindEntries(ObjectName pattern)
    
public  MBeanEntryget(ObjectName name)
    
public  StringgetDefaultDomain()
    
public  String[]getDomains()
    
public  ObjectInstancegetObjectInstance(ObjectName name)
    
public  intgetSize()
    
public  ObjectgetValue(ObjectName name, String key)
    
protected  voidhandlePreDeregister(MBeanRegistration registrationInterface)
    
protected  ObjectNamehandlePreRegistration(MBeanRegistration registrationInterface, ObjectName regName)
    
protected  ObjectNameinvokePreRegister(MBeanInvoker invoker, ObjectName regName, String magicToken)
    
protected  VectormbInfosToStore()
     ObjectName objects bound to MBean Info objects that are waiting to be stored in the persistence store.
protected  voidpersistIfRequired(MBeanInfo info, ObjectName name)
     Adds the given MBean Info object to the persistence queue if it explicity denotes (via metadata) that it should be stored.
protected  ObjectNamequalifyName(ObjectName name)
     Qualify an object name with the default domain

Adds the default domain if no domain is specified.

protected  voidregisterClassLoader(ClassLoader cl)
     Subclasses can override if they wish to control the classloader registration to loader repository.
public  ObjectInstanceregisterMBean(Object object, ObjectName name, Map valueMap)
    
public  voidreleaseRegistry()
     Cleans up the registry before the MBean server is released.
protected synchronized  voidremove(ObjectName name)
     Removes an MBean entry WARNING: The object name should be fully qualified.
protected  voidsendRegistrationNotification(ObjectName regName)
    
protected  voidsendUnRegistrationNotification(ObjectName name)
    
public  voidunregisterMBean(ObjectName name)
    
protected  ObjectNamevalidateAndQualifyName(ObjectName name, String magicToken)
    

Field Detail
delegate
protected MBeanServerDelegate delegate(Code)
Direct reference to the mandatory MBean server delegate MBean.



fMbInfosToStore
protected Vector fMbInfosToStore(Code)



log
protected static Logger log(Code)
The logger



registrationNotificationSequence
final protected SynchronizedLong registrationNotificationSequence(Code)
Sequence number for the MBean server registration notifications.



unregistrationNotificationSequence
final protected SynchronizedLong unregistrationNotificationSequence(Code)
Sequence number for the MBean server unregistration notifications.




Constructor Detail
BasicMBeanRegistry
public BasicMBeanRegistry(MBeanServer server, String defaultDomain, ClassLoaderRepository clr)(Code)
Constructs a new BasicMBeanRegistry.





Method Detail
add
protected synchronized void add(MBeanEntry entry) throws InstanceAlreadyExistsException(Code)
Adds an MBean entry

WARNING: The object name should be fully qualified.
Parameters:
  entry - the MBean entry to add
exception:
  InstanceAlreadyExistsException - when the MBean's object nameis already registered




contains
public boolean contains(ObjectName name)(Code)



findEntries
public List findEntries(ObjectName pattern)(Code)



get
public MBeanEntry get(ObjectName name) throws InstanceNotFoundException(Code)



getDefaultDomain
public String getDefaultDomain()(Code)



getDomains
public String[] getDomains()(Code)



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



getSize
public int getSize()(Code)



getValue
public Object getValue(ObjectName name, String key) throws InstanceNotFoundException(Code)



handlePreDeregister
protected void handlePreDeregister(MBeanRegistration registrationInterface) throws Exception(Code)
subclasses can override to provide any custom preDeregister logic and must call preDregister on the MBeanRegistration instance
Parameters:
  registrationInterface -
throws:
  Exception -



handlePreRegistration
protected ObjectName handlePreRegistration(MBeanRegistration registrationInterface, ObjectName regName) throws Exception(Code)
subclasses can override to provide their own pre-registration pre- and post- logic for preRegister and must call preRegister on the MBeanRegistration instance
Parameters:
  registrationInterface -
Parameters:
  regName - object name
throws:
  Exception -



invokePreRegister
protected ObjectName invokePreRegister(MBeanInvoker invoker, ObjectName regName, String magicToken) throws MBeanRegistrationException, NotCompliantMBeanException(Code)



mbInfosToStore
protected Vector mbInfosToStore()(Code)
ObjectName objects bound to MBean Info objects that are waiting to be stored in the persistence store.



persistIfRequired
protected void persistIfRequired(MBeanInfo info, ObjectName name) throws MalformedObjectNameException, InstanceNotFoundException, MBeanException, ReflectionException(Code)
Adds the given MBean Info object to the persistence queue if it explicity denotes (via metadata) that it should be stored.



qualifyName
protected ObjectName qualifyName(ObjectName name)(Code)
Qualify an object name with the default domain

Adds the default domain if no domain is specified.
Parameters:
  name - the name to qualify the original name or the name prepended with the default domainif no domain is specified.
exception:
  RuntimeOperationsException - containing anIllegalArgumentException when there is a problem




registerClassLoader
protected void registerClassLoader(ClassLoader cl)(Code)
Subclasses can override if they wish to control the classloader registration to loader repository.
Parameters:
  cl - classloader



registerMBean
public ObjectInstance registerMBean(Object object, ObjectName name, Map valueMap) throws InstanceAlreadyExistsException, MBeanRegistrationException, NotCompliantMBeanException(Code)



releaseRegistry
public void releaseRegistry()(Code)
Cleans up the registry before the MBean server is released.



remove
protected synchronized void remove(ObjectName name) throws InstanceNotFoundException(Code)
Removes an MBean entry WARNING: The object name should be fully qualified.
Parameters:
  name - the object name of the entry to remove
exception:
  InstanceNotFoundException - when the object name is notregistered



sendRegistrationNotification
protected void sendRegistrationNotification(ObjectName regName)(Code)
send a MBeanServerNotification.REGISTRATION_NOTIFICATION notification to regName
Parameters:
  regName -



sendUnRegistrationNotification
protected void sendUnRegistrationNotification(ObjectName name)(Code)
send MBeanServerNotification.UNREGISTRATION_NOTIFICATION notification to name
Parameters:
  name -



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



validateAndQualifyName
protected ObjectName validateAndQualifyName(ObjectName name, String magicToken)(Code)
Validates and qualifies an MBean

Validates the name is not a pattern.

Adds the default domain if no domain is specified.

Checks the name is not in the reserved domain JMImplementation when the magicToken is not org.jboss.mx.server.ServerConstants.JMI_DOMAIN JMI_DOMAIN
Parameters:
  name - the name to validate
Parameters:
  magicToken - used to get access to the reserved domain the original name or the name prepended with the default domainif no domain is specified.
exception:
  RuntimeOperationsException - containing anIllegalArgumentException for a problem with the name




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.