Class AbstractDeployer
- java.lang.Object
-
- org.codehaus.cargo.util.log.LoggedObject
-
- org.codehaus.cargo.container.spi.deployer.AbstractDeployer
-
- Direct Known Subclasses:
AbstractLocalDeployer
,AbstractRemoteDeployer
,AbstractTomcatManagerDeployer
public abstract class AbstractDeployer extends LoggedObject implements Deployer
Base deployer for local and remote deployments.
-
-
Constructor Summary
Constructors Constructor Description AbstractDeployer(Container container)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deploy(List<Deployable> deployables)
Helper method to deploy multiple deployables at a time.void
deploy(Deployable deployable)
Deploy aDeployable
to the running container and make it available for requests.void
deploy(Deployable deployable, DeployableMonitor monitor)
Deploy aDeployable
to the running container and make it available for requests.void
redeploy(List<Deployable> deployables)
Helper method to redeploy multiple deployables at a time.void
redeploy(Deployable deployable)
Redeploy aDeployable
already deployed to the running container.void
redeploy(Deployable deployable, DeployableMonitor monitor)
Redeploy aDeployable
already deployed to the running container.void
start(Deployable deployable)
Starts aDeployable
that is already deployed in the running container but that is not servicing requests.void
start(Deployable deployable, DeployableMonitor monitor)
Starts aDeployable
that is already deployed in the running container but that is not servicing requests.void
stop(Deployable deployable)
Stop aDeployable
that is already deployed in the running container in order to prevent it from servicing requests.void
stop(Deployable deployable, DeployableMonitor monitor)
Stop aDeployable
that is already deployed in the running container in order to prevent it from servicing requests.void
undeploy(Deployable deployable)
Undeploy aDeployable
from the running container.void
undeploy(Deployable deployable, DeployableMonitor monitor)
Undeploy aDeployable
to the running container.-
Methods inherited from class org.codehaus.cargo.util.log.LoggedObject
getLogger, setLogger
-
-
-
-
Constructor Detail
-
AbstractDeployer
public AbstractDeployer(Container container)
- Parameters:
container
- the container into which to perform deployment operations
-
-
Method Detail
-
deploy
public void deploy(List<Deployable> deployables)
Helper method to deploy multiple deployables at a time.- Parameters:
deployables
- Deployables to deploy.- See Also:
Deployer.deploy(Deployable)
-
deploy
public void deploy(Deployable deployable, DeployableMonitor monitor)
Deploy aDeployable
to the running container and make it available for requests. Waits for theDeployable
to be fully deployed before returning.- Specified by:
deploy
in interfaceDeployer
- Parameters:
deployable
- theDeployable
to deploymonitor
- the monitor that checks for deployment status
-
undeploy
public void undeploy(Deployable deployable, DeployableMonitor monitor)
Undeploy aDeployable
to the running container. Waits for theDeployable
to be fully undeployed before returning.- Specified by:
undeploy
in interfaceDeployer
- Parameters:
deployable
- theDeployable
to deploymonitor
- the monitor that checks for deployment status
-
redeploy
public void redeploy(List<Deployable> deployables)
Helper method to redeploy multiple deployables at a time.- Parameters:
deployables
- Deployables to redeploy.- See Also:
Deployer.redeploy(Deployable)
-
redeploy
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
Deployer
s based on theAbstractCopyingInstalledLocalDeployer
.- Specified by:
redeploy
in interfaceDeployer
- Parameters:
deployable
- theDeployable
to redeploymonitor
- the monitor that checks for deployment status- See Also:
Deployer.deploy(Deployable)
,Deployer.undeploy(Deployable)
-
start
public void start(Deployable deployable, DeployableMonitor monitor)
Starts aDeployable
that is already deployed in the running container but that is not servicing requests.- Specified by:
start
in interfaceDeployer
- Parameters:
deployable
- theDeployable
to startmonitor
- the monitor that checks for start status
-
stop
public void stop(Deployable deployable, DeployableMonitor monitor)
Stop aDeployable
that is already deployed in the running container in order to prevent it from servicing requests.- Specified by:
stop
in interfaceDeployer
- Parameters:
deployable
- theDeployable
to stopmonitor
- the monitor that checks for stop status
-
deploy
public void deploy(Deployable deployable)
Deploy aDeployable
to the running container and make it available for requests.- Specified by:
deploy
in interfaceDeployer
- Parameters:
deployable
- theDeployable
to deploy
-
start
public void start(Deployable deployable)
Starts aDeployable
that is already deployed in the running container but that is not servicing requests.- Specified by:
start
in interfaceDeployer
- Parameters:
deployable
- theDeployable
to start
-
stop
public void stop(Deployable deployable)
Stop aDeployable
that is already deployed in the running container in order to prevent it from servicing requests.- Specified by:
stop
in interfaceDeployer
- Parameters:
deployable
- theDeployable
to stop
-
undeploy
public void undeploy(Deployable deployable)
Undeploy aDeployable
from the running container. The service becomes unavailable for requests.- Specified by:
undeploy
in interfaceDeployer
- Parameters:
deployable
- theDeployable
to undeploy
-
redeploy
public 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 theAbstractCopyingInstalledLocalDeployer
.- Specified by:
redeploy
in interfaceDeployer
- Parameters:
deployable
- theDeployable
to redeploy- See Also:
Deployer.deploy(Deployable)
,Deployer.undeploy(Deployable)
-
-