org.codehaus.cargo.container.geronimo
Class GeronimoInstalledLocalDeployer

java.lang.Object
  extended by org.codehaus.cargo.util.log.LoggedObject
      extended by org.codehaus.cargo.container.spi.deployer.AbstractDeployer
          extended by org.codehaus.cargo.container.spi.deployer.AbstractLocalDeployer
              extended by org.codehaus.cargo.container.spi.deployer.AbstractInstalledLocalDeployer
                  extended by org.codehaus.cargo.container.geronimo.GeronimoInstalledLocalDeployer
All Implemented Interfaces:
Deployer, Loggable

public class GeronimoInstalledLocalDeployer
extends AbstractInstalledLocalDeployer

A Geronimo deploytool-based deployer to perform deployment to a local container.

Version:
$Id: GeronimoInstalledLocalDeployer.java 1888 2009-02-13 15:32:30Z adriancole $

Constructor Summary
GeronimoInstalledLocalDeployer(InstalledLocalContainer container)
          
 
Method Summary
 void deploy(Deployable deployable)
          Deploy a Deployable to the running container and make it available for requests.
 void distribute(Deployable deployable)
          Distribute a deployable to a running or offline Geronimo server.
protected  AntUtils getAntUtils()
           
protected  InstalledLocalContainer getInstalledContainer()
           
 void redeploy(Deployable deployable)
          Redeploy a Deployable already deployed to the running container.
 void start(Deployable deployable)
          Starts a Deployable that is already deployed in the running container but that is not servicing requests.
 void start(String deployableId)
          Starts a deployable with the given ID.
 void stop(Deployable deployable)
          Stop a Deployable that is already deployed in the running container in order to prevent it from servicing requests.
 void stop(String deployableId)
          Stops a deployable with the given ID.
 void undeploy(Deployable deployable)
          Undeploy a Deployable from the running container.
 void undeploy(String deployableId)
          Undeploy a deployable with the given ID.
 
Methods inherited from class org.codehaus.cargo.container.spi.deployer.AbstractInstalledLocalDeployer
getType
 
Methods inherited from class org.codehaus.cargo.container.spi.deployer.AbstractLocalDeployer
getContainer, getFileHandler, setFileHandler
 
Methods inherited from class org.codehaus.cargo.container.spi.deployer.AbstractDeployer
deploy, deploy, undeploy
 
Methods inherited from class org.codehaus.cargo.util.log.LoggedObject
getLogger, setLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.codehaus.cargo.util.log.Loggable
getLogger, setLogger
 

Constructor Detail

GeronimoInstalledLocalDeployer

public GeronimoInstalledLocalDeployer(InstalledLocalContainer container)

See Also:
AbstractInstalledLocalDeployer#AbstractInstalledLocalDeployer(org.codehaus.cargo.container.InstalledLocalContainer)
Method Detail

getAntUtils

protected final AntUtils getAntUtils()
Returns:
the Ant utility class

getInstalledContainer

protected InstalledLocalContainer getInstalledContainer()
Returns:
the same value as AbstractLocalDeployer.getContainer() but more type-safe.

deploy

public void deploy(Deployable deployable)
Deploy a Deployable to the running container and make it available for requests.

Specified by:
deploy in interface Deployer
Overrides:
deploy in class AbstractDeployer
Parameters:
deployable - the Deployable to deploy
See Also:
Deployer.deploy(org.codehaus.cargo.container.deployable.Deployable)

distribute

public void distribute(Deployable deployable)
Distribute a deployable to a running or offline Geronimo server. The deployable is not automatically started.

Parameters:
deployable - the deployable being installed
See Also:
Deployer.deploy(org.codehaus.cargo.container.deployable.Deployable)

start

public void start(Deployable deployable)
Starts a Deployable that is already deployed in the running container but that is not servicing requests.

Specified by:
start in interface Deployer
Overrides:
start in class AbstractDeployer
Parameters:
deployable - the Deployable to start
See Also:
Deployer.start(org.codehaus.cargo.container.deployable.Deployable)

start

public void start(String deployableId)
Starts a deployable with the given ID.

Parameters:
deployableId - the ID of the deployable being started
See Also:
Deployer.start(org.codehaus.cargo.container.deployable.Deployable)

stop

public void stop(Deployable deployable)
Stop a Deployable that is already deployed in the running container in order to prevent it from servicing requests.

Specified by:
stop in interface Deployer
Overrides:
stop in class AbstractDeployer
Parameters:
deployable - the Deployable to stop
See Also:
Deployer.stop(org.codehaus.cargo.container.deployable.Deployable)

stop

public void stop(String deployableId)
Stops a deployable with the given ID.

Parameters:
deployableId - the ID of the deployable being stopped
See Also:
Deployer.stop(org.codehaus.cargo.container.deployable.Deployable)

undeploy

public void undeploy(Deployable deployable)
Undeploy a Deployable from the running container. The service becomes unavailable for requests.

Specified by:
undeploy in interface Deployer
Overrides:
undeploy in class AbstractDeployer
Parameters:
deployable - the Deployable to undeploy
See Also:
Deployer.undeploy(org.codehaus.cargo.container.deployable.Deployable)

undeploy

public void undeploy(String deployableId)
Undeploy a deployable with the given ID.

Parameters:
deployableId - the ID of the deployable being undeployed
See Also:
Deployer.undeploy(org.codehaus.cargo.container.deployable.Deployable)

redeploy

public void redeploy(Deployable deployable)

Redeploy a Deployable already deployed to the running container. The service becomes available for requests.

Note that this method will be unsupported by the Deployers based on the AbstractCopyingInstalledLocalDeployer.

Specified by:
redeploy in interface Deployer
Overrides:
redeploy in class AbstractDeployer
Parameters:
deployable - the Deployable to redeploy
See Also:
Deployer.redeploy(org.codehaus.cargo.container.deployable.Deployable)


Copyright © 2004-2012 Codehaus. All Rights Reserved.