org.apache.geronimo.deployment
Class Deployer

java.lang.Object
  extended by org.apache.geronimo.deployment.Deployer
All Implemented Interfaces:
GBeanLifecycle

public class Deployer
extends Object
implements GBeanLifecycle

GBean that knows how to deploy modules (by consulting available module builders)


Field Summary
static GBeanInfo GBEAN_INFO
           
 
Constructor Summary
Deployer(String remoteDeployAddress, Collection builders, Collection stores, Collection watchers, ArtifactResolver artifactResolver, Kernel kernel)
           
Deployer(String remoteDeployAddress, Collection builders, Collection stores, Collection watchers, Kernel kernel)
           
 
Method Summary
 List deploy(boolean inPlace, File moduleFile, File planFile)
           
 List deploy(boolean inPlace, File moduleFile, File planFile, File targetFile, boolean install, String mainClass, String mainGBean, String mainMethod, String manifestConfigurations, String classPath, String endorsedDirs, String extensionDirs, String targetConfigurationStore)
           
 List deploy(boolean inPlace, File moduleFile, File planFile, String targetConfigStore)
           
 void doFail()
          Fails the GBean.
 void doStart()
          Starts the GBean.
 void doStop()
          Stops the target.
static GBeanInfo getGBeanInfo()
           
 String getRemoteDeployUploadURL()
          Gets a URL that a remote deploy client can use to upload files to the server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GBEAN_INFO

public static final GBeanInfo GBEAN_INFO
Constructor Detail

Deployer

public Deployer(String remoteDeployAddress,
                Collection builders,
                Collection stores,
                Collection watchers,
                Kernel kernel)

Deployer

public Deployer(String remoteDeployAddress,
                Collection builders,
                Collection stores,
                Collection watchers,
                ArtifactResolver artifactResolver,
                Kernel kernel)
Method Detail

deploy

public List deploy(boolean inPlace,
                   File moduleFile,
                   File planFile)
            throws DeploymentException
Throws:
DeploymentException

deploy

public List deploy(boolean inPlace,
                   File moduleFile,
                   File planFile,
                   String targetConfigStore)
            throws DeploymentException
Throws:
DeploymentException

getRemoteDeployUploadURL

public String getRemoteDeployUploadURL()
Gets a URL that a remote deploy client can use to upload files to the server. Looks up a remote deploy web application by searching for a particular GBean and figuring out a reference to the web application based on that. Then constructs a URL pointing to that web application based on available connectors for the web container and the context root for the web application.

Returns:
The URL that clients should use for deployment file uploads.

deploy

public List deploy(boolean inPlace,
                   File moduleFile,
                   File planFile,
                   File targetFile,
                   boolean install,
                   String mainClass,
                   String mainGBean,
                   String mainMethod,
                   String manifestConfigurations,
                   String classPath,
                   String endorsedDirs,
                   String extensionDirs,
                   String targetConfigurationStore)
            throws DeploymentException
Throws:
DeploymentException

doStart

public void doStart()
             throws Exception
Description copied from interface: GBeanLifecycle
Starts the GBean. This informs the GBean that it is about to transition to the running state.

Specified by:
doStart in interface GBeanLifecycle
Throws:
Exception - if the target failed to start; this will cause a transition to the failed state

doFail

public void doFail()
Description copied from interface: GBeanLifecycle
Fails the GBean. This informs the GBean that it is about to transition to the failed state.

Specified by:
doFail in interface GBeanLifecycle

doStop

public void doStop()
            throws Exception
Description copied from interface: GBeanLifecycle
Stops the target. This informs the GBean that it is about to transition to the stopped state.

Specified by:
doStop in interface GBeanLifecycle
Throws:
Exception - if the target failed to stop; this will cause a transition to the failed state

getGBeanInfo

public static GBeanInfo getGBeanInfo()


Copyright © 2003-2008 The Apache Geronimo development community. All Rights Reserved.