org.codehaus.cargo.container.spi.deployer
Class AbstractDeployer

java.lang.Object
  extended by org.codehaus.cargo.util.log.LoggedObject
      extended by org.codehaus.cargo.container.spi.deployer.AbstractDeployer
All Implemented Interfaces:
Deployer, org.codehaus.cargo.util.log.Loggable
Direct Known Subclasses:
AbstractLocalDeployer, AbstractRemoteDeployer

public abstract class AbstractDeployer
extends org.codehaus.cargo.util.log.LoggedObject
implements Deployer

Base deployer for local and remote deployments.

Version:
$Id: AbstractDeployer.java 1021 2006-05-03 17:01:08Z vmassol $

Constructor Summary
AbstractDeployer()
           
 
Method Summary
 void deploy(Deployable deployable)
          Deploy a Deployable to the running container and make it available for requests.
 void deploy(Deployable deployable, DeployableMonitor monitor)
          Deploy a Deployable to the running container and make it available for requests.
 void deploy(java.util.List deployables)
          
 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.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.container.deployer.Deployer
getType
 
Methods inherited from interface org.codehaus.cargo.util.log.Loggable
getLogger, setLogger
 

Constructor Detail

AbstractDeployer

public AbstractDeployer()
Method Detail

deploy

public void deploy(java.util.List deployables)

See Also:
deploy(Deployable)

deploy

public void deploy(Deployable deployable,
                   DeployableMonitor monitor)
Deploy a Deployable to the running container and make it available for requests. Waits for the Deployable to be fully deployed before returning.

Specified by:
deploy in interface Deployer
Parameters:
deployable - the Deployable to deploy
monitor - the monitor that checks for deployment status
See Also:
Deployer.deploy(Deployable, DeployableMonitor)

deploy

public void deploy(Deployable deployable)
Deploy a Deployable to the running container and make it available for requests.

Specified by:
deploy in interface Deployer
Parameters:
deployable - the Deployable to deploy
See Also:
Deployer.deploy(Deployable)

start

public void start(Deployable deployable)
Starts a Deployable that is already deployed in the running container but that is not servicing requests.

Specified by:
start in interface Deployer
Parameters:
deployable - the Deployable to start
See Also:
Deployer.start(org.codehaus.cargo.container.deployable.Deployable)

stop

public void stop(Deployable deployable)
Stop a Deployable that is already deployed in the running container in order to prevent it from servicing requests.

Specified by:
stop in interface Deployer
Parameters:
deployable - the Deployable to stop
See Also:
Deployer.stop(org.codehaus.cargo.container.deployable.Deployable)

undeploy

public void undeploy(Deployable deployable)
Undeploy a Deployable from the running container. The service becomes unavailable for requests.

Specified by:
undeploy in interface Deployer
Parameters:
deployable - the Deployable to undeploy
See Also:
Deployer.undeploy(org.codehaus.cargo.container.deployable.Deployable)

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 Deployers based on the AbstractCopyingInstalledLocalDeployer.

Specified by:
redeploy in interface Deployer
Parameters:
deployable - the Deployable to redeploy
See Also:
Deployer.redeploy(Deployable)


Copyright © 2004-2009 Codehaus. All Rights Reserved.