org.rhq.core.pc
Class PluginContainerMBeanImpl

java.lang.Object
  extended by org.rhq.core.pc.PluginContainerMBeanImpl
All Implemented Interfaces:
PluginContainerMBeanImplMBean

public class PluginContainerMBeanImpl
extends Object
implements PluginContainerMBeanImplMBean

The management interface implementation for the PluginContainer itself.

Author:
John Mazzitelli

Field Summary
 
Fields inherited from interface org.rhq.core.pc.PluginContainerMBeanImplMBean
OBJECT_NAME
 
Constructor Summary
PluginContainerMBeanImpl(PluginContainer pc)
           
 
Method Summary
 String executeDiscovery(Boolean detailedDiscovery)
          Tells the PC to perform a manual discovery.
 int getNumberOfDiscoveryClassLoaders()
          Returns the number of classloaders assigned to plugins' discovery components.
 int getNumberOfPluginClassLoaders()
          Returns the number of classloaders assigned to a plugin.
 int getNumberOfResourceClassLoaders()
          Returns the number of classloaders assigned to individual resources.
 void register()
           
 OperationResult retrieveAllResourceClassLoaderInformation()
          Retrieves information on all created and assigned resource classloaders.
 OperationResult retrieveDiscoveryClassLoaderInformation()
          Retrieves information on all created discovery classloaders.
 OperationResult retrievePluginClassLoaderInformation()
          Retrieves information on all created and assigned plugin classloaders.
 OperationResult retrievePluginDependencyGraph()
          Retrieves the plugin dependency information, show you the order in which the plugins are deployed and the plugins they depend on.
 OperationResult retrieveUniqueResourceClassLoaderInformation()
          Retrieves information on all unique resource classloaders.
 void unregister()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginContainerMBeanImpl

public PluginContainerMBeanImpl(PluginContainer pc)
Method Detail

register

public void register()

unregister

public void unregister()

executeDiscovery

public String executeDiscovery(Boolean detailedDiscovery)
Description copied from interface: PluginContainerMBeanImplMBean
Tells the PC to perform a manual discovery. This will execute an immediate server scan followed, optionally, by a service scan.

Specified by:
executeDiscovery in interface PluginContainerMBeanImplMBean
Parameters:
detailedDiscovery - if true, will perform a "service scan" immediately after the "server scan".
Returns:
the results of the discovery

retrievePluginDependencyGraph

public OperationResult retrievePluginDependencyGraph()
Description copied from interface: PluginContainerMBeanImplMBean
Retrieves the plugin dependency information, show you the order in which the plugins are deployed and the plugins they depend on.

Specified by:
retrievePluginDependencyGraph in interface PluginContainerMBeanImplMBean
Returns:
plugin dependency graph in an operation result configuration object

retrievePluginClassLoaderInformation

public OperationResult retrievePluginClassLoaderInformation()
Description copied from interface: PluginContainerMBeanImplMBean
Retrieves information on all created and assigned plugin classloaders. There is one plugin classloader for each deployed plugin.

Specified by:
retrievePluginClassLoaderInformation in interface PluginContainerMBeanImplMBean
Returns:
plugin classloader info

retrieveDiscoveryClassLoaderInformation

public OperationResult retrieveDiscoveryClassLoaderInformation()
Description copied from interface: PluginContainerMBeanImplMBean
Retrieves information on all created discovery classloaders. These are created for discovery components that need to discover resources under a parent resource where that parent resource is from a different plugin than the discovery component.

Specified by:
retrieveDiscoveryClassLoaderInformation in interface PluginContainerMBeanImplMBean
Returns:
discovery classloader info

retrieveAllResourceClassLoaderInformation

public OperationResult retrieveAllResourceClassLoaderInformation()
Description copied from interface: PluginContainerMBeanImplMBean
Retrieves information on all created and assigned resource classloaders. Each resource is assigned a classloader. Some resources share classloaders so there will be duplicate classloaders in the returned result.

Specified by:
retrieveAllResourceClassLoaderInformation in interface PluginContainerMBeanImplMBean
Returns:
resource classloader info

retrieveUniqueResourceClassLoaderInformation

public OperationResult retrieveUniqueResourceClassLoaderInformation()
Description copied from interface: PluginContainerMBeanImplMBean
Retrieves information on all unique resource classloaders. Each resource is assigned one of these classloaders. Some resources share classloaders, but no duplicate classloaders will be in the returned result. The number of resources assigned to each classloader is in the result map.

Specified by:
retrieveUniqueResourceClassLoaderInformation in interface PluginContainerMBeanImplMBean
Returns:
unique resource classloader info

getNumberOfPluginClassLoaders

public int getNumberOfPluginClassLoaders()
Description copied from interface: PluginContainerMBeanImplMBean
Returns the number of classloaders assigned to a plugin.

Specified by:
getNumberOfPluginClassLoaders in interface PluginContainerMBeanImplMBean
Returns:
plugin classloader count

getNumberOfDiscoveryClassLoaders

public int getNumberOfDiscoveryClassLoaders()
Description copied from interface: PluginContainerMBeanImplMBean
Returns the number of classloaders assigned to plugins' discovery components.

Specified by:
getNumberOfDiscoveryClassLoaders in interface PluginContainerMBeanImplMBean
Returns:
discovery classloader count

getNumberOfResourceClassLoaders

public int getNumberOfResourceClassLoaders()
Description copied from interface: PluginContainerMBeanImplMBean
Returns the number of classloaders assigned to individual resources.

Specified by:
getNumberOfResourceClassLoaders in interface PluginContainerMBeanImplMBean
Returns:
resource classloader count


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.