Class TomcatEmbeddedLocalDeployer
- java.lang.Object
-
- org.codehaus.cargo.util.log.LoggedObject
-
- org.codehaus.cargo.container.spi.deployer.AbstractDeployer
-
- org.codehaus.cargo.container.spi.deployer.AbstractLocalDeployer
-
- org.codehaus.cargo.container.tomcat.TomcatEmbeddedLocalDeployer
-
public class TomcatEmbeddedLocalDeployer extends AbstractLocalDeployer
Deployerfor deploying toembedded Tomcat container.
-
-
Constructor Summary
Constructors Constructor Description TomcatEmbeddedLocalDeployer(EmbeddedLocalContainer container)Creates a new deployer forAbstractCatalinaEmbeddedLocalContainer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeploy(Deployable deployable)Deploy aDeployableto the running container and make it available for requests.DeployerTypegetType()voidredeploy(Deployable deployable)Redeploy aDeployablealready deployed to the running container.voidredeploy(Deployable deployable, DeployableMonitor monitor)Redeploy aDeployablealready deployed to the running container.voidstart(Deployable deployable)Starts aDeployablethat is already deployed in the running container but that is not servicing requests.voidstop(Deployable deployable)Stop aDeployablethat is already deployed in the running container in order to prevent it from servicing requests.voidundeploy(Deployable deployable)Undeploy aDeployablefrom the running container.-
Methods inherited from class org.codehaus.cargo.container.spi.deployer.AbstractLocalDeployer
getContainer, getFileHandler
-
Methods inherited from class org.codehaus.cargo.container.spi.deployer.AbstractDeployer
deploy, deploy, redeploy, start, stop, undeploy
-
Methods inherited from class org.codehaus.cargo.util.log.LoggedObject
getLogger, setLogger
-
-
-
-
Constructor Detail
-
TomcatEmbeddedLocalDeployer
public TomcatEmbeddedLocalDeployer(EmbeddedLocalContainer container)
Creates a new deployer forAbstractCatalinaEmbeddedLocalContainer.- Parameters:
container- The container to which this deployer will work. This parameter is typed asEmbeddedLocalContainerdue to the Cargo generic API requirement, but it has to be aAbstractCatalinaEmbeddedLocalContainer.
-
-
Method Detail
-
deploy
public void deploy(Deployable deployable)
Deploy aDeployableto the running container and make it available for requests.- Specified by:
deployin interfaceDeployer- Overrides:
deployin classAbstractDeployer- Parameters:
deployable- theDeployableto deploy
-
undeploy
public void undeploy(Deployable deployable)
Undeploy aDeployablefrom the running container. The service becomes unavailable for requests.- Specified by:
undeployin interfaceDeployer- Overrides:
undeployin classAbstractDeployer- Parameters:
deployable- theDeployableto undeploy
-
redeploy
public void redeploy(Deployable deployable)
Redeploy a
Deployablealready deployed to the running container. The service becomes available for requests.Note that this method will be unsupported by the
Deployers based on theAbstractCopyingInstalledLocalDeployer.- Specified by:
redeployin interfaceDeployer- Overrides:
redeployin classAbstractDeployer- Parameters:
deployable- theDeployableto redeploy- See Also:
Deployer.deploy(Deployable),Deployer.undeploy(Deployable)
-
redeploy
public void redeploy(Deployable deployable, DeployableMonitor monitor)
Redeploy a
Deployablealready deployed to the running container. The service becomes available for requests.Note that this method will be unsupported by the
Deployers based on theAbstractCopyingInstalledLocalDeployer.- Specified by:
redeployin interfaceDeployer- Overrides:
redeployin classAbstractDeployer- Parameters:
deployable- theDeployableto redeploymonitor- the monitor that checks for deployment status- See Also:
Deployer.deploy(Deployable),Deployer.undeploy(Deployable)
-
start
public void start(Deployable deployable)
Starts aDeployablethat is already deployed in the running container but that is not servicing requests.- Specified by:
startin interfaceDeployer- Overrides:
startin classAbstractDeployer- Parameters:
deployable- theDeployableto start
-
stop
public void stop(Deployable deployable)
Stop aDeployablethat is already deployed in the running container in order to prevent it from servicing requests.- Specified by:
stopin interfaceDeployer- Overrides:
stopin classAbstractDeployer- Parameters:
deployable- theDeployableto stop
-
getType
public DeployerType getType()
- Returns:
- the deployer's type (local, remote, etc)
-
-