|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.codehaus.cargo.util.log.LoggedObject
org.codehaus.cargo.container.spi.deployer.AbstractDeployer
org.codehaus.cargo.container.spi.deployer.AbstractRemoteDeployer
org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer
Common code to perform both local or remote deployments using a Tomcat manager-based deployer.
| Constructor Summary | |
AbstractTomcatManagerDeployer(org.codehaus.cargo.container.Container container)
Default initialization. |
|
| Method Summary | |
protected TomcatManager |
createManager(org.codehaus.cargo.container.configuration.Configuration configuration)
Creates a Tomcat manager wrapper from the specified configuration. |
void |
deploy(org.codehaus.cargo.container.deployable.Deployable deployable)
|
protected abstract org.codehaus.cargo.container.configuration.Configuration |
getConfiguration()
|
protected java.lang.String |
getPath(org.codehaus.cargo.container.deployable.Deployable deployable)
Gets the webapp path for the specified deployable. |
protected TomcatManager |
getTomcatManager()
|
java.lang.String |
list()
|
protected abstract void |
performUndeploy(org.codehaus.cargo.container.deployable.Deployable deployable)
Performs undeployment of deployable. |
void |
redeploy(org.codehaus.cargo.container.deployable.Deployable deployable)
|
void |
start(org.codehaus.cargo.container.deployable.Deployable deployable)
|
void |
stop(org.codehaus.cargo.container.deployable.Deployable deployable)
|
void |
undeploy(org.codehaus.cargo.container.deployable.Deployable deployable)
|
| 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 |
| Constructor Detail |
public AbstractTomcatManagerDeployer(org.codehaus.cargo.container.Container container)
container - the container to which to deploy to| Method Detail |
protected abstract org.codehaus.cargo.container.configuration.Configuration getConfiguration()
protected TomcatManager getTomcatManager()
public void deploy(org.codehaus.cargo.container.deployable.Deployable deployable)
Deployer.deploy(org.codehaus.cargo.container.deployable.Deployable)public void undeploy(org.codehaus.cargo.container.deployable.Deployable deployable)
Deployer.undeploy(org.codehaus.cargo.container.deployable.Deployable)
protected abstract void performUndeploy(org.codehaus.cargo.container.deployable.Deployable deployable)
throws TomcatManagerException,
java.io.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 undeploy
TomcatManagerException - If TomcatManagerException error occured perfoming the command
java.io.IOException - If I/O error occured getting the path of deployablepublic void redeploy(org.codehaus.cargo.container.deployable.Deployable deployable)
Deployer.redeploy(org.codehaus.cargo.container.deployable.Deployable)public void start(org.codehaus.cargo.container.deployable.Deployable deployable)
Deployer.start(org.codehaus.cargo.container.deployable.Deployable)public void stop(org.codehaus.cargo.container.deployable.Deployable deployable)
Deployer.stop(org.codehaus.cargo.container.deployable.Deployable)public java.lang.String list()
protected TomcatManager createManager(org.codehaus.cargo.container.configuration.Configuration configuration)
configuration - the configuration to construct the Tomcat manager wrapper from
protected java.lang.String getPath(org.codehaus.cargo.container.deployable.Deployable deployable)
deployable - the deployable
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||