|
||||||||||
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)
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()
|
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 |
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. |
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, undeploy |
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 toMethod Detail |
---|
protected 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 Deployer
deploy
in class AbstractDeployer
deployable
- 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 Deployer
undeploy
in class AbstractDeployer
deployable
- 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 undeploy
TomcatManagerException
- If TomcatManagerException error occured perfoming the command
IOException
- 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 Deployer
s based on the
AbstractCopyingInstalledLocalDeployer
.
redeploy
in interface Deployer
redeploy
in class AbstractDeployer
deployable
- the Deployable
to redeployDeployer.redeploy(org.codehaus.cargo.container.deployable.Deployable)
public void start(Deployable deployable)
Deployable
that is already deployed in the running container but that is
not servicing requests.
start
in interface Deployer
start
in class AbstractDeployer
deployable
- 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 Deployer
stop
in class AbstractDeployer
deployable
- 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 from
protected String getPath(Deployable deployable)
deployable
- the deployable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |