org.rhq.enterprise.server.core.plugin
Class ProductPluginDeployer

java.lang.Object
  extended by org.rhq.enterprise.server.core.plugin.ProductPluginDeployer

public class ProductPluginDeployer
extends Object

ProductPlugin deployer responsible for detecting agent plugin jars on the filesystem.


Constructor Summary
ProductPluginDeployer()
           
 
Method Summary
 File getPluginDir()
           
 void pluginDetected(org.rhq.enterprise.server.core.plugin.ProductPluginDeployer.DeploymentInfo deploymentInfo)
          This is called when a new or updated plugin is brought online.
 void registerPlugins()
          Registers newly detected plugins and their types.
 void setPluginDir(File pluginDir)
           
 void start()
          This is called when this deployer service itself is starting up.
 void startDeployment()
          This is called by the server's startup servlet which essentially informs us that the server's internal EJB/SLSBs are ready and can be called.
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProductPluginDeployer

public ProductPluginDeployer()
Method Detail

getPluginDir

public File getPluginDir()

setPluginDir

public void setPluginDir(File pluginDir)

startDeployment

public void startDeployment()
This is called by the server's startup servlet which essentially informs us that the server's internal EJB/SLSBs are ready and can be called. This means we are allowed to begin registering types from deployed plugins.


start

public void start()
           throws Exception
This is called when this deployer service itself is starting up.

Throws:
Exception

stop

public void stop()

pluginDetected

public void pluginDetected(org.rhq.enterprise.server.core.plugin.ProductPluginDeployer.DeploymentInfo deploymentInfo)
                    throws Exception
This is called when a new or updated plugin is brought online. This just marks the plugin as being needed to be registered. Caller must ensure that registerPlugins() is called afterwards to fully process the detected plugin.

Parameters:
deploymentInfo - information on the newly detected plugin
Throws:
Exception

registerPlugins

public void registerPlugins()
Registers newly detected plugins and their types. Only call this method when isReady is true. This is a no-op if we are not ready.



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