|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.core.pc.PluginContainer
public class PluginContainer
This is the embeddable container that houses all plugins and the infrastructure that binds them together. It contains
all the managers such as PluginManager and InventoryManager.
This container is controlled by its lifecycle methods (initialize() and shutdown(). Prior to
initialization, this container's configuration should be set via
setConfiguration(PluginContainerConfiguration). If this is not done, a default configuration will be
created.
| Nested Class Summary | |
|---|---|
static interface |
PluginContainer.InitializationListener
Invoked by the plugin container immediately after it is initialized |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static PluginContainer getInstance()
public void setConfiguration(PluginContainerConfiguration configuration)
setConfiguration in interface ContainerServiceconfiguration - public void addAgentServiceLifecycleListener(AgentServiceLifecycleListener listener)
AgentService hosted within this plugin container is
started or stopped.
listener - public void removeAgentServiceLifecycleListener(AgentServiceLifecycleListener listener)
AgentService notifications.
listener - public AgentServiceStreamRemoter getAgentServiceStreamRemoter()
null, the plugin container will not
be able to remote streams to external clients, as in the case when the plugin container is not running inside an
agent (i.e. embedded mode).
null)public void setAgentServiceStreamRemoter(AgentServiceStreamRemoter streamRemoter)
null, the plugin container will
not be able to remote streams to external clients, as in the case when the plugin container is not running inside
an agent (i.e. embedded mode).
streamRemoter - public AgentRegistrar getAgentRegistrar()
null, the plugin container will not be considered running in an agent containing needing to be
registered with a remote server.
null)public void setAgentRegistrar(AgentRegistrar registrar)
null, the plugin container will not be considered running in an agent containing needing to be
registered with a remote server.
registrar - public boolean isStarted()
true.
true if the plugin container was initialized and started; false otherwisepublic void initialize()
Note that if no configuration was set prior to this
method being called, a default configuration will be created and used.
If the plugin container has already been initialized, this method does nothing and returns.
initialize in interface ContainerServicepublic void shutdown()
shutdown in interface ContainerServicepublic PluginManager getPluginManager()
public PluginComponentFactory getPluginComponentFactory()
public InventoryManager getInventoryManager()
public ConfigurationManager getConfigurationManager()
public MeasurementManager getMeasurementManager()
public OperationManager getOperationManager()
public ResourceFactoryManager getResourceFactoryManager()
public ContentManager getContentManager()
public EventManager getEventManager()
public SupportManager getSupportManager()
public BundleManager getBundleManager()
public DriftManager getDriftManager()
public DiscoveryAgentService getDiscoveryAgentService()
public ConfigurationAgentService getConfigurationAgentService()
public MeasurementAgentService getMeasurementAgentService()
public OperationAgentService getOperationAgentService()
public ResourceFactoryAgentService getResourceFactoryAgentService()
public ContentAgentService getContentAgentService()
public SupportAgentService getSupportAgentService()
public BundleAgentService getBundleAgentService()
public boolean isInsideAgent()
public void setRebootRequestListener(RebootRequestListener listener)
public void notifyRebootRequestListener()
public void addInitializationListener(PluginContainer.InitializationListener listener)
listener will be invoked immediately.
listener - The callback object to notify
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||