org.codehaus.cargo.container.tomcat
Class Tomcat5xEmbeddedLocalDeployer

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.tomcat.Tomcat5xEmbeddedLocalDeployer
All Implemented Interfaces:
Deployer, Loggable

public class Tomcat5xEmbeddedLocalDeployer
extends AbstractLocalDeployer

Deployer for deploying to embedded Tomcat container.

Version:
$Id: Tomcat5xEmbeddedLocalDeployer.java 1728 2008-09-23 21:03:29Z mwringe $

Constructor Summary
Tomcat5xEmbeddedLocalDeployer(EmbeddedLocalContainer container)
          Creates a new deployer for Tomcat5xEmbeddedLocalContainer.
 
Method Summary
 void deploy(Deployable deployable)
          Deploy a Deployable to the running container and make it available for requests.
 DeployerType getType()
          
 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 stop(Deployable deployable)
          Stop a Deployable that is already deployed in the running container in order to prevent it from servicing requests.
 void undeploy(Deployable deployable)
          Undeploy a Deployable from the running container.
 
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

Tomcat5xEmbeddedLocalDeployer

public Tomcat5xEmbeddedLocalDeployer(EmbeddedLocalContainer container)
Creates a new deployer for Tomcat5xEmbeddedLocalContainer.

Parameters:
container - The container to which this deployer will work. This parameter is typed as EmbeddedLocalContainer due to the Cargo generic API requirement, but it has to be a Tomcat5xEmbeddedLocalContainer.
Method Detail

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:
AbstractDeployer.deploy(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:
AbstractDeployer.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:
AbstractDeployer.redeploy(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:
AbstractDeployer.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:
AbstractDeployer.stop(org.codehaus.cargo.container.deployable.Deployable)

getType

public DeployerType getType()

Returns:
the deployer's type (local, remote, etc)
See Also:
Deployer.getType()


Copyright © 2004-2012 Codehaus. All Rights Reserved.