接口 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(Object managedResource) Register the supplied resource with JMX.voidregisterManagedResource(Object managedResource, ObjectName objectName) Register the supplied resource with JMX.voidunregisterManagedResource(ObjectName objectName) Remove the specified MBean from the underlying MBeanServer registry.
-
方法详细资料
-
registerManagedResource
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 anObjectNamefor the managed resource and returns this to the caller.- 参数:
managedResource- the resource to expose via JMX- 返回:
- the
ObjectNameunder which the resource was exposed - 抛出:
MBeanExportException- if Framework is unable to generate anObjectNameor 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 JMXobjectName- theObjectNameunder which to expose the resource- 抛出:
MBeanExportException- if Framework is unable to register the MBean
-
unregisterManagedResource
Remove the specified MBean from the underlying MBeanServer registry.- 参数:
objectName- theObjectNameof the resource to remove
-