public interface MBeanExportOperations
This interface should be used to export application resources to JMX using Spring's
management interface generation capabilities and, optionally, it's ObjectName
generation capabilities.
MBeanExporter
Modifier and Type | Method and Description |
---|---|
javax.management.ObjectName |
registerManagedResource(java.lang.Object managedResource)
Register the supplied resource with JMX.
|
void |
registerManagedResource(java.lang.Object managedResource,
javax.management.ObjectName objectName)
Register the supplied resource with JMX.
|
void |
unregisterManagedResource(javax.management.ObjectName objectName)
Remove the specified MBean from the underlying MBeanServer registry.
|
javax.management.ObjectName registerManagedResource(java.lang.Object managedResource) throws MBeanExportException
ObjectName
for the managed resource and returns this to the caller.managedResource
- the resource to expose via JMXObjectName
under which the resource was exposedMBeanExportException
- if Spring is unable to generate an ObjectName
or register the MBeanvoid registerManagedResource(java.lang.Object managedResource, javax.management.ObjectName objectName) throws MBeanExportException
managedResource
- the resource to expose via JMXobjectName
- the ObjectName
under which to expose the resourceMBeanExportException
- if Spring is unable to register the MBeanvoid unregisterManagedResource(javax.management.ObjectName objectName)
objectName
- the ObjectName
of the resource to remove