org.rhq.enterprise.server.plugin.pc.alert
Class AlertServerPluginContainer

java.lang.Object
  extended by org.rhq.enterprise.server.plugin.pc.AbstractTypeServerPluginContainer
      extended by org.rhq.enterprise.server.plugin.pc.alert.AlertServerPluginContainer

public class AlertServerPluginContainer
extends AbstractTypeServerPluginContainer

Manages alert plugins.

Author:
John Mazzitelli

Constructor Summary
AlertServerPluginContainer(MasterServerPluginContainer master)
           
 
Method Summary
protected  ServerPluginManager createPluginManager()
          This will be called when its time for this plugin container to create its plugin manager.
 ServerPluginManager getPluginManager()
          Returns the object that manages the plugins.
 ServerPluginType getSupportedServerPluginType()
          Each plugin container will tell the master which plugins it can support via this method; this method returns the type of plugin that the plugin container can process.
 void initialize()
          The initialize method that prepares the plugin container.
 void shutdown()
          The shutdown method that will stop and unload all plugins.
 void start()
          This method informs the plugin container that all of its plugins have been loaded.
 
Methods inherited from class org.rhq.enterprise.server.plugin.pc.AbstractTypeServerPluginContainer
getLog, getMasterServerPluginContainer, loadPlugin, reloadPlugin, scheduleAllPluginJobs, scheduleJob, schedulePluginJobs, stop, unloadPlugin, unschedulePluginJobs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlertServerPluginContainer

public AlertServerPluginContainer(MasterServerPluginContainer master)
Method Detail

getSupportedServerPluginType

public ServerPluginType getSupportedServerPluginType()
Description copied from class: AbstractTypeServerPluginContainer
Each plugin container will tell the master which plugins it can support via this method; this method returns the type of plugin that the plugin container can process. Only one plugin container can support a plugin type.

Specified by:
getSupportedServerPluginType in class AbstractTypeServerPluginContainer
Returns:
the type of plugin that this plugin container instance can support

getPluginManager

public ServerPluginManager getPluginManager()
Description copied from class: AbstractTypeServerPluginContainer
Returns the object that manages the plugins.

Overrides:
getPluginManager in class AbstractTypeServerPluginContainer
Returns:
the plugin manager for this container

initialize

public void initialize()
                throws java.lang.Exception
Description copied from class: AbstractTypeServerPluginContainer
The initialize method that prepares the plugin container. This should get the plugin container ready to accept plugins. Subclasses are free to perform additional tasks by overriding this method.

Overrides:
initialize in class AbstractTypeServerPluginContainer
Throws:
java.lang.Exception - if the plugin container failed to initialize for some reason

start

public void start()
Description copied from class: AbstractTypeServerPluginContainer
This method informs the plugin container that all of its plugins have been loaded. Once this is called, the plugin container can assume all plugins that it will ever know about have been loaded.

Overrides:
start in class AbstractTypeServerPluginContainer

shutdown

public void shutdown()
Description copied from class: AbstractTypeServerPluginContainer
The shutdown method that will stop and unload all plugins. Subclasses are free to perform additional tasks by overriding this method.

Overrides:
shutdown in class AbstractTypeServerPluginContainer

createPluginManager

protected ServerPluginManager createPluginManager()
Description copied from class: AbstractTypeServerPluginContainer
This will be called when its time for this plugin container to create its plugin manager. Subclasses are free to override this if they need their own specialized plugin manager.

Overrides:
createPluginManager in class AbstractTypeServerPluginContainer
Returns:
the plugin manager for use by this plugin container


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