Package org.exoplatform.management.spi
Interface ManagementProvider
-
- All Known Implementing Classes:
JMXManagementProvider
public interface ManagementProviderThis interface is implemented by a management provider such a JMX.- Version:
- $Revision$
- Author:
- Julien Viet
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Objectmanage(ManagedResource managedResource)Instruct the management provider to manage the provided managed resource.voidunmanage(Object key)Instruct the management provider to remove the specifed resource from management.
-
-
-
Method Detail
-
manage
Object manage(ManagedResource managedResource)
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
void unmanage(Object key)
Instruct the management provider to remove the specifed resource from management.- Parameters:
key- the key under which the resource is registered
-
-