接口 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 Spring's management interface generation capabilities and, optionally, it's
ObjectNamegeneration capabilities.- 从以下版本开始:
- 2.0
- 作者:
- Rob Harrop
- 另请参阅:
MBeanExporter
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 ObjectNameregisterManagedResource(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
ObjectName registerManagedResource(Object managedResource) throws MBeanExportException
Register the supplied resource with JMX. If the resource is not a valid MBean already, Spring 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 Spring 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, Spring 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 Spring is unable to register the MBean
unregisterManagedResource
void unregisterManagedResource(ObjectName objectName)
Remove the specified MBean from the underlying MBeanServer registry.- 参数:
objectName- theObjectNameof the resource to remove