Save This Page
Home » jboss-5.0.0.CR1-src » org.jboss.mx » server » registry » [javadoc | source]
org.jboss.mx.server.registry
public class: BasicMBeanRegistry [javadoc | source]
java.lang.Object
   org.jboss.mx.server.registry.BasicMBeanRegistry

All Implemented Interfaces:
    MBeanRegistry

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.

Field Summary
protected final  SynchronizedLong registrationNotificationSequence    Sequence number for the MBean server registration notifications. 
protected final  SynchronizedLong unregistrationNotificationSequence    Sequence number for the MBean server unregistration notifications. 
protected  MBeanServerDelegate delegate    Direct reference to the mandatory MBean server delegate MBean. 
protected  Vector fMbInfosToStore     
protected static  Logger log    The logger 
Constructor:
 public BasicMBeanRegistry(MBeanServer server,
    String defaultDomain,
    ClassLoaderRepository clr) 
    Constructs a new BasicMBeanRegistry.

Method from org.jboss.mx.server.registry.BasicMBeanRegistry Summary:
add,   contains,   findEntries,   get,   getDefaultDomain,   getDomains,   getObjectInstance,   getSize,   getValue,   handlePreDeregister,   handlePreRegistration,   invokePreRegister,   mbInfosToStore,   persistIfRequired,   qualifyName,   registerClassLoader,   registerMBean,   releaseRegistry,   remove,   sendRegistrationNotification,   sendUnRegistrationNotification,   unregisterMBean,   validateAndQualifyName
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.mx.server.registry.BasicMBeanRegistry Detail:
 protected synchronized  void add(MBeanEntry entry) throws InstanceAlreadyExistsException 
    Adds an MBean entry

    WARNING: The object name should be fully qualified.

 public boolean contains(ObjectName name) 
 public List findEntries(ObjectName pattern) 
 public MBeanEntry get(ObjectName name) throws InstanceNotFoundException 
 public String getDefaultDomain() 
 public String[] getDomains() 
 public ObjectInstance getObjectInstance(ObjectName name) throws InstanceNotFoundException 
 public int getSize() 
 public Object getValue(ObjectName name,
    String key) throws InstanceNotFoundException 
 protected  void handlePreDeregister(MBeanRegistration registrationInterface) throws Exception 
    subclasses can override to provide any custom preDeregister logic and must call preDregister on the MBeanRegistration instance
 protected ObjectName handlePreRegistration(MBeanRegistration registrationInterface,
    ObjectName regName) throws Exception 
    subclasses can override to provide their own pre-registration pre- and post- logic for preRegister and must call preRegister on the MBeanRegistration instance
 protected ObjectName invokePreRegister(MBeanInvoker invoker,
    ObjectName regName,
    String magicToken) throws MBeanRegistrationException, NotCompliantMBeanException 
 protected Vector mbInfosToStore() 
    ObjectName objects bound to MBean Info objects that are waiting to be stored in the persistence store.
 protected  void persistIfRequired(MBeanInfo info,
    ObjectName name) throws MalformedObjectNameException, InstanceNotFoundException, ReflectionException, MBeanException 
    Adds the given MBean Info object to the persistence queue if it explicity denotes (via metadata) that it should be stored.
 protected ObjectName qualifyName(ObjectName name) 
    Qualify an object name with the default domain

    Adds the default domain if no domain is specified.

 protected  void registerClassLoader(ClassLoader cl) 
    Subclasses can override if they wish to control the classloader registration to loader repository.
 public ObjectInstance registerMBean(Object object,
    ObjectName name,
    Map valueMap) throws MBeanRegistrationException, InstanceAlreadyExistsException, NotCompliantMBeanException 
 public  void releaseRegistry() 
    Cleans up the registry before the MBean server is released.
 protected synchronized  void remove(ObjectName name) throws InstanceNotFoundException 
    Removes an MBean entry WARNING: The object name should be fully qualified.
 protected  void sendRegistrationNotification(ObjectName regName) 
    send a MBeanServerNotification.REGISTRATION_NOTIFICATION notification to regName
 protected  void sendUnRegistrationNotification(ObjectName name) 
    send MBeanServerNotification.UNREGISTRATION_NOTIFICATION notification to name
 public  void unregisterMBean(ObjectName name) throws InstanceNotFoundException, MBeanRegistrationException 
 protected ObjectName validateAndQualifyName(ObjectName name,
    String magicToken) 
    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 JMI_DOMAIN