Interface ManagementProvider

  • All Known Implementing Classes:
    JMXManagementProvider

    public interface ManagementProvider
    This interface is implemented by a management provider such a JMX.
    Version:
    $Revision$
    Author:
    Julien Viet
    • 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 the unmanage(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