Package org.exoplatform.management.spi
Interface ManagementProvider
- All Known Implementing Classes:
JMXManagementProvider
public interface ManagementProvider
This interface is implemented by a management provider such a JMX.
-
Method Summary
Modifier and TypeMethodDescriptionmanage(ManagedResource managedResource) Instruct the management provider to manage the provided managed resource.voidInstruct the management provider to remove the specifed resource from management.
-
Method Details
-
manage
Instruct the management provider to manage the provided managed resource. If any registration is done the provider should return an unique key that will be used later for unregistration purpose in theunmanage(Object)method. If no registration is performed then null should be returned.- Parameters:
managedResource- the managed resource- Returns:
- the key under which the resource is registered
-
unmanage
Instruct the management provider to remove the specifed resource from management.- Parameters:
key- the key under which the resource is registered
-