org.codehaus.cargo.container.tomcat.internal
Class AbstractTomcatManagerInstalledLocalDeployer

java.lang.Object
  extended byorg.codehaus.cargo.util.log.LoggedObject
      extended byorg.codehaus.cargo.container.spi.deployer.AbstractDeployer
          extended byorg.codehaus.cargo.container.spi.deployer.AbstractRemoteDeployer
              extended byorg.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer
                  extended byorg.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerInstalledLocalDeployer
All Implemented Interfaces:
org.codehaus.cargo.container.deployer.Deployer, org.codehaus.cargo.util.log.Loggable
Direct Known Subclasses:
TomcatManagerInstalledLocalDeployer

public abstract class AbstractTomcatManagerInstalledLocalDeployer
extends AbstractTomcatManagerDeployer

Common code to perform local deployments using a Tomcat manager-based deployer.

Version:
$Id: AbstractTomcatManagerInstalledLocalDeployer.java 1157 2006-07-27 19:57:13Z vmassol $

Field Summary
protected  org.codehaus.cargo.container.LocalContainer container
          The local container to deploy to.
 
Constructor Summary
AbstractTomcatManagerInstalledLocalDeployer(org.codehaus.cargo.container.LocalContainer container)
          {@inheritDoc}
 
Method Summary
protected  org.codehaus.cargo.container.configuration.Configuration getConfiguration()
          
protected  void performUndeploy(org.codehaus.cargo.container.deployable.Deployable deployable)
          Performs undeployment of deployable.

Note: This is done differently by the different versions of Tomcat which is why we're using an Abstract method here.

 
Methods inherited from class org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer
createManager, deploy, getPath, getTomcatManager, list, redeploy, start, stop, undeploy
 
Methods inherited from class org.codehaus.cargo.container.spi.deployer.AbstractRemoteDeployer
getType
 
Methods inherited from class org.codehaus.cargo.container.spi.deployer.AbstractDeployer
deploy, deploy
 
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
 

Field Detail

container

protected org.codehaus.cargo.container.LocalContainer container
The local container to deploy to.

Constructor Detail

AbstractTomcatManagerInstalledLocalDeployer

public AbstractTomcatManagerInstalledLocalDeployer(org.codehaus.cargo.container.LocalContainer container)
{@inheritDoc}

See Also:
AbstractTomcatManagerDeployer.AbstractTomcatManagerDeployer(org.codehaus.cargo.container.Container)
Method Detail

getConfiguration

protected org.codehaus.cargo.container.configuration.Configuration getConfiguration()

Specified by:
getConfiguration in class AbstractTomcatManagerDeployer
Returns:
the configuration to use for deployment
See Also:
AbstractTomcatManagerDeployer.getConfiguration()

performUndeploy

protected void performUndeploy(org.codehaus.cargo.container.deployable.Deployable deployable)
                        throws TomcatManagerException,
                               java.io.IOException
Performs undeployment of deployable.

Note: This is done differently by the different versions of Tomcat which is why we're using an Abstract method here.

Specified by:
performUndeploy in class AbstractTomcatManagerDeployer
Parameters:
deployable - the Deployable to undeploy
Throws:
java.io.IOException - If I/O error occured getting the path of deployable
TomcatManagerException - If TomcatManagerException error occured perfoming the command
See Also:
AbstractTomcatManagerDeployer.performUndeploy(org.codehaus.cargo.container.deployable.Deployable)


Copyright © 2004-2007 Codehaus. All Rights Reserved.