Class AbstractSwitchableLocalDeployer
- 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.spi.deployer.AbstractInstalledLocalDeployer
-
- org.codehaus.cargo.container.spi.deployer.AbstractSwitchableLocalDeployer
-
- Direct Known Subclasses:
WebLogic8xSwitchableLocalDeployer
public abstract class AbstractSwitchableLocalDeployer extends AbstractInstalledLocalDeployer
Implementation decides how to deploy or undeploy based on the running state of the server.
-
-
Constructor Summary
Constructors Constructor Description AbstractSwitchableLocalDeployer(LocalContainer container)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
deploy(Deployable deployable)
Deploy aDeployable
to the running container and make it available for requests.protected abstract Deployer
getColdDeployer()
this deployer will be used when the server is not running.protected abstract Deployer
getHotDeployer()
this deployer will be used when the server is running.void
undeploy(Deployable deployable)
Undeploy aDeployable
from the running container.-
Methods inherited from class org.codehaus.cargo.container.spi.deployer.AbstractInstalledLocalDeployer
getType
-
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, redeploy, redeploy, start, start, stop, stop, undeploy
-
Methods inherited from class org.codehaus.cargo.util.log.LoggedObject
getLogger, setLogger
-
-
-
-
Constructor Detail
-
AbstractSwitchableLocalDeployer
public AbstractSwitchableLocalDeployer(LocalContainer container)
-
-
Method Detail
-
getHotDeployer
protected abstract Deployer getHotDeployer()
this deployer will be used when the server is running.- Returns:
- deployer used when server is up
-
getColdDeployer
protected abstract Deployer getColdDeployer()
this deployer will be used when the server is not running.- Returns:
- deployer used when server is down
-
deploy
public void deploy(Deployable deployable)
Deploy aDeployable
to the running container and make it available for requests. deploys via hotDeployer, if the server is started or starting. Otherwise, it uses the coldDeployer.- Specified by:
deploy
in interfaceDeployer
- Overrides:
deploy
in classAbstractDeployer
- Parameters:
deployable
- - what to deploy- See Also:
AbstractDeployer.deploy(org.codehaus.cargo.container.deployable.Deployable)
-
undeploy
public void undeploy(Deployable deployable)
Undeploy aDeployable
from the running container. The service becomes unavailable for requests. undeploys via hotDeployer, if the server is started or starting. Otherwise, it uses the coldDeployer.- Specified by:
undeploy
in interfaceDeployer
- Overrides:
undeploy
in classAbstractDeployer
- Parameters:
deployable
- - what to undeploy- See Also:
AbstractDeployer.undeploy(org.codehaus.cargo.container.deployable.Deployable)
-
-