|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.util.ee.deploy.impl.deployer.AbsDeployerList<T>
org.ow2.util.ee.deploy.impl.deployer.AbsDeployer<T>
public abstract class AbsDeployer<T extends IDeployable<T>>
Abstract class that defines common methods for deployer.
| Field Summary | |
|---|---|
protected Map<URL,IDeployable<T>> |
deployedDeployables
Map between an URL and the associated Deployable that has been deployed. |
| Constructor Summary | |
|---|---|
AbsDeployer()
Default constructor. |
|
| Method Summary | |
|---|---|
protected void |
check(IDeployable<?> deployable)
Check if the given deployable is supported. |
void |
deploy(IDeployable<T> deployable)
|
List<IDeploymentReport> |
deploy(List<IDeployable<T>> deployables)
|
abstract void |
doDeploy(IDeployable<T> deployable)
|
List<IDeploymentReport> |
doDeploy(List<IDeployable<T>> deployables)
Deploy a list of deployable. |
abstract void |
doUndeploy(IDeployable<T> deployable)
|
List<IDeploymentReport> |
doUndeploy(List<IDeployable<T>> deployables)
Undeploy a list of deployable. |
Map<URL,IDeployable<T>> |
getDeployedDeployables()
Returns a map between an URL and the associated deployable that has been deployed. |
protected File |
getFile(IDeployable<T> deployable)
Allows to get a File from the given Deployable. |
protected URL |
getURL(IDeployable<T> deployable)
Allows to get the URL from the given deployable. |
boolean |
isDeployed(IDeployable<T> deployable)
Checks if the given deployable is deployed or not. |
void |
stop()
Undeploy all previously deployed deployables. |
abstract boolean |
supports(IDeployable<?> deployable)
|
void |
undeploy(IDeployable<T> deployable)
|
List<IDeploymentReport> |
undeploy(List<IDeployable<T>> deployables)
|
| Methods inherited from class org.ow2.util.ee.deploy.impl.deployer.AbsDeployerList |
|---|
supports |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Map<URL,IDeployable<T extends IDeployable<T>>> deployedDeployables
| Constructor Detail |
|---|
public AbsDeployer()
| Method Detail |
|---|
public abstract void doDeploy(IDeployable<T> deployable)
throws DeployerException
DeployerException
public abstract void doUndeploy(IDeployable<T> deployable)
throws DeployerException
DeployerExceptionpublic abstract boolean supports(IDeployable<?> deployable)
public void deploy(IDeployable<T> deployable)
throws DeployerException
DeployerException
public void undeploy(IDeployable<T> deployable)
throws DeployerException
DeployerExceptionpublic void stop()
protected URL getURL(IDeployable<T> deployable)
throws DeployerException
deployable - the given deployable.
DeployerException - if the URL can't be obtained.
protected File getFile(IDeployable<T> deployable)
throws DeployerException
deployable - the given deployable.
DeployerException - if the File can't be obtained.
public boolean isDeployed(IDeployable<T> deployable)
throws DeployerException
deployable - test if a given deployable is already deployed.
DeployerException - if the undeploy operation fails.public Map<URL,IDeployable<T>> getDeployedDeployables()
protected void check(IDeployable<?> deployable)
throws DeployerException
deployable - the deployable to check.
DeployerException - if the deployable is not supported.public List<IDeploymentReport> deploy(List<IDeployable<T>> deployables)
deploy in interface IDeployer<T extends IDeployable<T>>deploy in class AbsDeployerList<T extends IDeployable<T>>public List<IDeploymentReport> doDeploy(List<IDeployable<T>> deployables)
deployables - The list of deployable
IDeploymentReportpublic List<IDeploymentReport> undeploy(List<IDeployable<T>> deployables)
undeploy in interface IDeployer<T extends IDeployable<T>>undeploy in class AbsDeployerList<T extends IDeployable<T>>public List<IDeploymentReport> doUndeploy(List<IDeployable<T>> deployables)
deployables - The list of deployable to undeploy
IDeploymentReport
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||