public abstract class AbstractTomcatManagerDeployer extends AbstractRemoteDeployer
| Constructor and Description |
|---|
AbstractTomcatManagerDeployer(Container container)
Default initialization.
|
| Modifier and Type | Method and Description |
|---|---|
protected TomcatManager |
createManager(Configuration configuration)
Creates a Tomcat manager wrapper from the specified configuration.
|
void |
deploy(Deployable deployable) |
protected abstract Configuration |
getConfiguration() |
protected String |
getPath(Deployable deployable)
Gets the webapp path for the specified deployable.
|
protected TomcatManager |
getTomcatManager() |
String |
list() |
protected abstract void |
performUndeploy(Deployable deployable)
Performs undeployment of deployable.
|
void |
redeploy(Deployable deployable) |
void |
start(Deployable deployable) |
void |
stop(Deployable deployable) |
void |
undeploy(Deployable deployable) |
getTypedeploy, deploypublic AbstractTomcatManagerDeployer(Container container)
container - the container to which to deploy toprotected abstract Configuration getConfiguration()
protected TomcatManager getTomcatManager()
public void deploy(Deployable deployable)
deploy in interface Deployerdeploy in class AbstractDeployerDeployer.deploy(org.codehaus.cargo.container.deployable.Deployable)public void undeploy(Deployable deployable)
undeploy in interface Deployerundeploy in class AbstractDeployerDeployer.undeploy(org.codehaus.cargo.container.deployable.Deployable)protected abstract void performUndeploy(Deployable deployable) throws TomcatManagerException, IOException
Note: This is done differently by the different versions of Tomcat which is why we're using an Abstract method here.
deployable - the Deployable to undeployTomcatManagerException - If TomcatManagerException error occured perfoming the commandIOException - If I/O error occured getting the path of deployablepublic void redeploy(Deployable deployable)
redeploy in interface Deployerredeploy in class AbstractDeployerDeployer.redeploy(org.codehaus.cargo.container.deployable.Deployable)public void start(Deployable deployable)
start in interface Deployerstart in class AbstractDeployerDeployer.start(org.codehaus.cargo.container.deployable.Deployable)public void stop(Deployable deployable)
stop in interface Deployerstop in class AbstractDeployerDeployer.stop(org.codehaus.cargo.container.deployable.Deployable)public String list()
protected TomcatManager createManager(Configuration configuration)
configuration - the configuration to construct the Tomcat manager wrapper fromprotected String getPath(Deployable deployable)
deployable - the deployableCopyright © 2004-2013 Codehaus. All Rights Reserved.