|
||||||||||
| 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
public abstract class AbstractTomcatManagerDeployer
Common code to perform both local or remote deployments using a Tomcat manager-based deployer.
| Constructor Summary | |
|---|---|
AbstractTomcatManagerDeployer(Container container)
Default initialization. |
|
| Method Summary | |
|---|---|
protected TomcatManager |
createManager(Configuration configuration)
Creates a Tomcat manager wrapper from the specified configuration. |
void |
deploy(Deployable deployable)
|
protected abstract Configuration |
getConfiguration()
|
protected java.lang.String |
getPath(Deployable deployable)
Gets the webapp path for the specified deployable. |
protected TomcatManager |
getTomcatManager()
|
java.lang.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)
|
| 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(Container container)
container - the container to which to deploy to| Method Detail |
|---|
protected 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,
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(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 java.lang.String list()
protected TomcatManager createManager(Configuration configuration)
configuration - the configuration to construct the Tomcat manager wrapper from
protected java.lang.String getPath(Deployable deployable)
deployable - the deployable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||