public interface MBeanExportOperations
This interface should be used to export application resources to JMX using Spring's
management interface generation capabilties and, optionally, it's ObjectName
generation capabilities.
MBeanExporter
Modifier and Type | Method and Description |
---|---|
ObjectName |
registerManagedResource(Object managedResource)
Register the supplied resource with JMX.
|
void |
registerManagedResource(Object managedResource,
ObjectName objectName)
Register the supplied resource with JMX.
|
void |
unregisterManagedResource(ObjectName objectName)
Remove the specified MBean from the underlying MBeanServer registry.
|
ObjectName registerManagedResource(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(Object managedResource, 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(ObjectName objectName)
objectName
- the ObjectName
of the resource to remove