Class AbstractMBeanProviderManager<S extends JPPFMBeanProvider>

java.lang.Object
org.jppf.management.spi.AbstractMBeanProviderManager<S>
Type Parameters:
S - the SPI interface for the mbean provider.

public abstract class AbstractMBeanProviderManager<S extends JPPFMBeanProvider> extends Object
Instances of this class manage all management plugins defined through the Service Provider Interface.
Author:
Laurent Cohen
  • Field Details

    • registeredMBeanNames

      protected final List<String> registeredMBeanNames
      Keeps a list of MBeans registered with the MBean server.
    • server

      protected final MBeanServer server
      The mbean server with which all mbeans are registered.
  • Constructor Details

    • AbstractMBeanProviderManager

      public AbstractMBeanProviderManager(Class<S> clazz, ClassLoader cl, Object server, Object... createParams) throws Exception
      Initialize this mbean provider manager and register the MBeans implementing the specified provider interface.
      Parameters:
      clazz - the class object for the provider interface.
      cl - the class loader used to oad the MBean implementation classes.
      createParams - the parameters used to create the MBean implementations.
      server - the MBean server on which to register.
      Throws:
      Exception - if the registration failed.
  • Method Details

    • createMBeanImpl

      protected abstract Object createMBeanImpl(S provider, Object... params) throws Exception
      Parameters:
      provider - the mbean provider to process.
      params - the parmaters to pass to the mbean implemantation.
      Returns:
      an mbean inmplementation.
      Throws:
      Exception - if any error occurs
    • unregisterProviderMBeans

      public void unregisterProviderMBeans()
      Un-register all registered mbeans.