Class MBeanExporter

java.lang.Object
org.weakref.jmx.MBeanExporter

public class MBeanExporter extends Object
  • Constructor Details

  • Method Details

    • destroy

      @PreDestroy public void destroy()
    • exportWithGeneratedName

      public MBeanExport exportWithGeneratedName(Object object)
    • exportWithGeneratedName

      public MBeanExport exportWithGeneratedName(Object object, Class<?> type)
    • exportWithGeneratedName

      public MBeanExport exportWithGeneratedName(Object object, Class<?> type, String name)
    • exportWithGeneratedName

      public MBeanExport exportWithGeneratedName(Object object, Class<?> type, Map<String,String> properties)
    • export

      public void export(String name, Object object)
    • export

      public void export(ObjectName objectName, Object object)
    • unexportWithGeneratedName

      public void unexportWithGeneratedName(Class<?> type)
    • unexportWithGeneratedName

      public void unexportWithGeneratedName(Class<?> type, String name)
    • unexportWithGeneratedName

      public void unexportWithGeneratedName(Class<?> type, Map<String,String> properties)
    • unexport

      public void unexport(String name)
    • unexport

      public void unexport(ObjectName objectName)
    • unexportAll

      @Deprecated public void unexportAll()
      Deprecated.
      Backwards compatible to 1.11. For new code, use unexportAllAndReportMissing().
    • unexportAllAndReportMissing

      public Map<String,Exception> unexportAllAndReportMissing()
      Unexports all MBeans that have been exported through this MBeanExporter.
      Returns:
      a map of object names that could not be exported and the corresponding exception.
    • getExportedObjects

      public Map<String,Object> getExportedObjects()
    • getManagedClasses

      public Map<String,ManagedClass> getManagedClasses()
    • getExportedObject

      public Optional<Object> getExportedObject(ObjectName objectName)
    • withPlatformMBeanServer

      public static MBeanExporter withPlatformMBeanServer()
      Get an MBeanExporter that uses the default platform mbean server
      Returns:
      an exporter