Class MBeanContainer

    • Field Summary

      • Fields inherited from interface org.eclipse.jetty.util.component.Dumpable

        KEY
    • Constructor Summary

      Constructors 
      Constructor Description
      MBeanContainer​(javax.management.MBeanServer server)
      Deprecated.
      Constructs MBeanContainer
      MBeanContainer​(javax.management.MBeanServer server, boolean cacheOtherClassLoaders)
      Deprecated.
      Constructs MBeanContainer
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void beanAdded​(Container parent, java.lang.Object obj)
      Deprecated.
       
      void beanRemoved​(Container parent, java.lang.Object obj)
      Deprecated.
       
      void destroy()
      Deprecated.
       
      java.lang.String dump()
      Deprecated.
       
      void dump​(java.lang.Appendable out, java.lang.String indent)
      Deprecated.
      Dump this object (and children) into an Appendable using the provided indent after any new lines.
      java.lang.Object findBean​(javax.management.ObjectName objectName)
      Deprecated.
      Lookup an instance by object name
      javax.management.ObjectName findMBean​(java.lang.Object object)
      Deprecated.
      Lookup an object name by instance
      java.lang.String getDomain()
      Deprecated.
      Retrieve domain name used to add MBeans
      javax.management.MBeanServer getMBeanServer()
      Deprecated.
      Retrieve instance of MBeanServer used by container
      boolean isUseCacheForOtherClassLoaders()
      Deprecated.
       
      java.lang.String makeName​(java.lang.String basis)
      Deprecated.
       
      java.lang.Object mbeanFor​(java.lang.Object o)
      Deprecated.
      Creates an ObjectMBean for the given object.
      void setDomain​(java.lang.String domain)
      Deprecated.
      Set domain to be used to add MBeans
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.eclipse.jetty.util.component.Dumpable

        dumpSelf
    • Constructor Detail

      • MBeanContainer

        public MBeanContainer​(javax.management.MBeanServer server)
        Deprecated.
        Constructs MBeanContainer
        Parameters:
        server - instance of MBeanServer for use by container
      • MBeanContainer

        public MBeanContainer​(javax.management.MBeanServer server,
                              boolean cacheOtherClassLoaders)
        Deprecated.
        Constructs MBeanContainer
        Parameters:
        server - instance of MBeanServer for use by container
        cacheOtherClassLoaders - If true, MBeans from other classloaders (eg WebAppClassLoader) will be cached. The cache is never flushed, so this should be false if some classloaders do not live forever.
    • Method Detail

      • getMBeanServer

        public javax.management.MBeanServer getMBeanServer()
        Deprecated.
        Retrieve instance of MBeanServer used by container
        Returns:
        instance of MBeanServer
      • isUseCacheForOtherClassLoaders

        @ManagedAttribute(value="Whether to use the cache for MBeans loaded by other ClassLoaders",
                          readonly=true)
        public boolean isUseCacheForOtherClassLoaders()
        Deprecated.
      • setDomain

        public void setDomain​(java.lang.String domain)
        Deprecated.
        Set domain to be used to add MBeans
        Parameters:
        domain - domain name
      • getDomain

        @ManagedAttribute("The default ObjectName domain")
        public java.lang.String getDomain()
        Deprecated.
        Retrieve domain name used to add MBeans
        Returns:
        domain name
      • mbeanFor

        public java.lang.Object mbeanFor​(java.lang.Object o)
        Deprecated.

        Creates an ObjectMBean for the given object.

        Attempts to create an ObjectMBean for the object by searching the package and class name space. For example an object of the type:

         class com.acme.MyClass extends com.acme.util.BaseClass implements com.acme.Iface
         

        then this method would look for the following classes:

        • com.acme.jmx.MyClassMBean
        • com.acme.util.jmx.BaseClassMBean
        • org.eclipse.jetty.jmx.ObjectMBean
        Parameters:
        o - The object
        Returns:
        A new instance of an MBean for the object or null.
      • findMBean

        public javax.management.ObjectName findMBean​(java.lang.Object object)
        Deprecated.
        Lookup an object name by instance
        Parameters:
        object - instance for which object name is looked up
        Returns:
        object name associated with specified instance, or null if not found
      • findBean

        public java.lang.Object findBean​(javax.management.ObjectName objectName)
        Deprecated.
        Lookup an instance by object name
        Parameters:
        objectName - object name of instance
        Returns:
        instance associated with specified object name, or null if not found
      • makeName

        public java.lang.String makeName​(java.lang.String basis)
        Deprecated.
        Parameters:
        basis - name to strip of special characters.
        Returns:
        normalized name
      • dump

        public void dump​(java.lang.Appendable out,
                         java.lang.String indent)
                  throws java.io.IOException
        Deprecated.
        Description copied from interface: Dumpable
        Dump this object (and children) into an Appendable using the provided indent after any new lines. The indent should not be applied to the first object dumped.
        Specified by:
        dump in interface Dumpable
        Parameters:
        out - The appendable to dump to
        indent - The indent to apply after any new lines.
        Throws:
        java.io.IOException - if unable to write to Appendable
      • dump

        public java.lang.String dump()
        Deprecated.
        Specified by:
        dump in interface Dumpable
      • destroy

        public void destroy()
        Deprecated.
        Specified by:
        destroy in interface Destroyable