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) |
getType
deploy, deploy
public 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 Deployer
deploy
in class AbstractDeployer
Deployer.deploy(org.codehaus.cargo.container.deployable.Deployable)
public void undeploy(Deployable deployable)
undeploy
in interface Deployer
undeploy
in class AbstractDeployer
Deployer.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 Deployer
redeploy
in class AbstractDeployer
Deployer.redeploy(org.codehaus.cargo.container.deployable.Deployable)
public void start(Deployable deployable)
start
in interface Deployer
start
in class AbstractDeployer
Deployer.start(org.codehaus.cargo.container.deployable.Deployable)
public void stop(Deployable deployable)
stop
in interface Deployer
stop
in class AbstractDeployer
Deployer.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.