接口 MBeanExportOperations

所有已知实现类:
AnnotationMBeanExporter, MBeanExporter

public interface MBeanExportOperations
Interface that defines the set of MBean export operations that are intended to be accessed by application developers during application runtime.

This interface should be used to export application resources to JMX using Framework's management interface generation capabilities and, optionally, it's ObjectName generation capabilities.

从以下版本开始:
4.0
作者:
Rob Harrop
另请参阅:
  • 方法详细资料

    • registerManagedResource

      ObjectName registerManagedResource(Object managedResource) throws MBeanExportException
      Register the supplied resource with JMX. If the resource is not a valid MBean already, Framework will generate a management interface for it. The exact interface generated will depend on the implementation and its configuration. This call also generates an ObjectName for the managed resource and returns this to the caller.
      参数:
      managedResource - the resource to expose via JMX
      返回:
      the ObjectName under which the resource was exposed
      抛出:
      MBeanExportException - if Framework is unable to generate an ObjectName or register the MBean
    • registerManagedResource

      void registerManagedResource(Object managedResource, ObjectName objectName) throws MBeanExportException
      Register the supplied resource with JMX. If the resource is not a valid MBean already, Framework will generate a management interface for it. The exact interface generated will depend on the implementation and its configuration.
      参数:
      managedResource - the resource to expose via JMX
      objectName - the ObjectName under which to expose the resource
      抛出:
      MBeanExportException - if Framework is unable to register the MBean
    • unregisterManagedResource

      void unregisterManagedResource(ObjectName objectName)
      Remove the specified MBean from the underlying MBeanServer registry.
      参数:
      objectName - the ObjectName of the resource to remove