public abstract class AbstractSwitchableLocalDeployer extends AbstractInstalledLocalDeployer
Constructor and Description |
---|
AbstractSwitchableLocalDeployer(InstalledLocalContainer container) |
Modifier and Type | Method and Description |
---|---|
void |
deploy(Deployable deployable)
Deploy a
Deployable 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 a
Deployable from the running container. |
getType
getContainer, getFileHandler, setFileHandler
deploy, deploy, redeploy, start, stop, undeploy
public AbstractSwitchableLocalDeployer(InstalledLocalContainer container)
protected abstract Deployer getHotDeployer()
protected abstract Deployer getColdDeployer()
public void deploy(Deployable deployable)
Deployable
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.deploy
in interface Deployer
deploy
in class AbstractDeployer
deployable
- - what to deployAbstractDeployer.deploy(org.codehaus.cargo.container.deployable.Deployable)
public void undeploy(Deployable deployable)
Deployable
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.undeploy
in interface Deployer
undeploy
in class AbstractDeployer
deployable
- - what to undeployAbstractDeployer.undeploy(org.codehaus.cargo.container.deployable.Deployable)
Copyright © 2004-2013 Codehaus. All Rights Reserved.