org.glassfish.gmbal.impl
Class MBeanTree

java.lang.Object
  extended by org.glassfish.gmbal.impl.MBeanTree

public class MBeanTree
extends Object

Represents the collection of DynamicMBeanImpls that we have registered with a ManagedObjectManager.

Author:
ken

Constructor Summary
MBeanTree(ManagedObjectManagerInternal mom, String domain, ObjectName rootParentName, String typeString)
           
 
Method Summary
 void clear()
           
 FacetAccessor getFacetAccessor(Object obj)
           
 MBeanImpl getMBeanImpl(Object obj)
           
 Object getObject(ObjectName oname)
           
 ObjectName getObjectName(Object obj)
           
 MBeanImpl getParentEntity(Object parent)
           
 Object getRoot()
           
 ObjectName getRootParentName()
           
 ObjectName objectName(MBeanImpl parent, String type, String name)
           
 GmbalMBean register(MBeanImpl parentEntity, Object obj, MBeanImpl mb)
           
 GmbalMBean setRoot(Object root, String rootName)
           
 void unregister(Object obj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MBeanTree

public MBeanTree(ManagedObjectManagerInternal mom,
                 String domain,
                 ObjectName rootParentName,
                 String typeString)
Method Detail

setRoot

public GmbalMBean setRoot(Object root,
                          String rootName)

getRoot

public Object getRoot()

getFacetAccessor

public FacetAccessor getFacetAccessor(Object obj)

objectName

public ObjectName objectName(MBeanImpl parent,
                             String type,
                             String name)
                      throws MalformedObjectNameException
Throws:
MalformedObjectNameException

getParentEntity

public MBeanImpl getParentEntity(Object parent)

register

public GmbalMBean register(MBeanImpl parentEntity,
                           Object obj,
                           MBeanImpl mb)
                    throws InstanceAlreadyExistsException,
                           MBeanRegistrationException,
                           NotCompliantMBeanException,
                           MalformedObjectNameException
Throws:
InstanceAlreadyExistsException
MBeanRegistrationException
NotCompliantMBeanException
MalformedObjectNameException

unregister

public void unregister(Object obj)
                throws InstanceNotFoundException,
                       MBeanRegistrationException
Throws:
InstanceNotFoundException
MBeanRegistrationException

getObjectName

public ObjectName getObjectName(Object obj)

getObject

public Object getObject(ObjectName oname)

getMBeanImpl

public MBeanImpl getMBeanImpl(Object obj)

clear

public void clear()

getRootParentName

public ObjectName getRootParentName()


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.