Package org.weakref.jmx
Class MBeanExporter
java.lang.Object
org.weakref.jmx.MBeanExporter
-
Constructor Summary
ConstructorsConstructorDescriptionMBeanExporter(MBeanServer server) MBeanExporter(MBeanServer server, Optional<ObjectNameGenerator> objectNameGenerator) -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()voidvoidexport(ObjectName objectName, Object object) exportWithGeneratedName(Object object) exportWithGeneratedName(Object object, Class<?> type) exportWithGeneratedName(Object object, Class<?> type, String name) getExportedObject(ObjectName objectName) voidvoidunexport(ObjectName objectName) voidDeprecated.Backwards compatible to 1.11.Unexports all MBeans that have been exported through this MBeanExporter.voidunexportWithGeneratedName(Class<?> type) voidunexportWithGeneratedName(Class<?> type, String name) voidunexportWithGeneratedName(Class<?> type, Map<String, String> properties) static MBeanExporterGet an MBeanExporter that uses the default platform mbean server
-
Constructor Details
-
MBeanExporter
-
MBeanExporter
-
-
Method Details
-
destroy
@PreDestroy public void destroy() -
exportWithGeneratedName
-
exportWithGeneratedName
-
exportWithGeneratedName
-
exportWithGeneratedName
-
export
-
export
-
unexportWithGeneratedName
-
unexportWithGeneratedName
-
unexportWithGeneratedName
-
unexport
-
unexport
-
unexportAll
Deprecated.Backwards compatible to 1.11. For new code, useunexportAllAndReportMissing(). -
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
-
getManagedClasses
-
getExportedObject
-
withPlatformMBeanServer
Get an MBeanExporter that uses the default platform mbean server- Returns:
- an exporter
-