public abstract class AbstractTomcatManagerDeployer extends AbstractRemoteDeployer
| Modifier and Type | Field and Description |
|---|---|
protected String |
managerContext
Context where the Tomcat manager lives.
|
| 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)
Deploy a
Deployable to the running container and make it available for requests. |
protected abstract Configuration |
getConfiguration() |
protected String |
getPath(Deployable deployable)
Gets the webapp path for the specified deployable.
|
protected TomcatManager |
getTomcatManager() |
protected String |
getVersion(Deployable deployable)
Gets the webapp version for the specified deployable.
|
String |
list() |
protected abstract void |
performUndeploy(Deployable deployable)
Performs undeployment of deployable.
|
void |
redeploy(Deployable deployable)
Redeploy a
Deployable already deployed to the running container. |
void |
redeploy(Deployable deployable,
DeployableMonitor monitor)
Redeploy a
Deployable already deployed to the running container. |
void |
start(Deployable deployable)
Starts a
Deployable that is already deployed in the running container but that is not
servicing requests. |
void |
stop(Deployable deployable)
Stop a
Deployable that is already deployed in the running container in order to
prevent it from servicing requests. |
void |
undeploy(Deployable deployable)
Undeploy a
Deployable from the running container. |
getTypedeploy, deploy, start, stop, undeploygetLogger, setLoggerprotected String managerContext
public AbstractTomcatManagerDeployer(Container container)
container - the container to which to deploy toprotected abstract Configuration getConfiguration()
protected TomcatManager getTomcatManager()
public void deploy(Deployable deployable)
Deployable to the running container and make it available for requests.deploy in interface Deployerdeploy in class AbstractDeployerdeployable - the Deployable to deployDeployer.deploy(org.codehaus.cargo.container.deployable.Deployable)public void undeploy(Deployable deployable)
Deployable from the running container. The service becomes unavailable for
requests.undeploy in interface Deployerundeploy in class AbstractDeployerdeployable - the Deployable to undeployDeployer.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 a Deployable already deployed to the running container. The service becomes
available for requests.
Note that this method will be unsupported by the Deployers based on the
AbstractCopyingInstalledLocalDeployer.
redeploy in interface Deployerredeploy in class AbstractDeployerdeployable - the Deployable to redeployDeployer.redeploy(org.codehaus.cargo.container.deployable.Deployable)public void redeploy(Deployable deployable, DeployableMonitor monitor)
Redeploy a Deployable already deployed to the running container. The service becomes
available for requests.
Note that this method will be unsupported by the Deployers based on the
AbstractCopyingInstalledLocalDeployer.
redeploy in interface Deployerredeploy in class AbstractDeployerdeployable - the Deployable to redeploymonitor - the monitor that checks for deployment statusDeployer.redeploy(org.codehaus.cargo.container.deployable.Deployable, org.codehaus.cargo.container.deployer.DeployableMonitor)public void start(Deployable deployable)
Deployable that is already deployed in the running container but that is not
servicing requests.start in interface Deployerstart in class AbstractDeployerdeployable - the Deployable to startDeployer.start(org.codehaus.cargo.container.deployable.Deployable)public void stop(Deployable deployable)
Deployable that is already deployed in the running container in order to
prevent it from servicing requests.stop in interface Deployerstop in class AbstractDeployerdeployable - the Deployable to stopDeployer.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 deployableprotected String getVersion(Deployable deployable)
deployable - the deployableCopyright © 2004-2013 Codehaus. All Rights Reserved.