com.xebialabs.deployit.task
Class DeploymentTask

java.lang.Object
  extended by com.xebialabs.deployit.task.Task
      extended by com.xebialabs.deployit.task.DeploymentTask
All Implemented Interfaces:
java.io.Serializable, java.lang.Runnable
Direct Known Subclasses:
InitialDeploymentTask, UndeploymentTask, UpgradeDeploymentTask

public abstract class DeploymentTask
extends Task

See Also:
Serialized Form

Nested Class Summary
static class DeploymentTask.DeploymentType
           
 
Nested classes/interfaces inherited from class com.xebialabs.deployit.task.Task
Task.State, Task.TaskStateChangeEvent
 
Field Summary
protected  RepositoryService repositoryService
           
 
Constructor Summary
  DeploymentTask(java.util.List<? extends com.xebialabs.deployit.plugin.api.deployment.execution.DeploymentStep> steps, RepositoryService repositoryService, WorkDir... workDirs)
           
protected DeploymentTask(java.util.List<TaskStep> steps, Task.State state)
           
 
Method Summary
 void destroy()
          Destroys a task.
 java.lang.String getApplicationName()
           
 java.lang.String getApplicationVersion()
           
abstract  DeploymentTask.DeploymentType getDeploymentType()
           
 java.lang.String getEnvironment()
           
protected  void initFromDeployment(com.xebialabs.deployit.plugin.api.udm.DeployedApplication deployment)
           
 void setApplicationName(java.lang.String applicationName)
           
 void setApplicationVersion(java.lang.String applicationVersion)
           
 void setEnvironment(java.lang.String environment)
           
 
Methods inherited from class com.xebialabs.deployit.task.Task
abort, cancel, doAfterTaskStateChangedToAborted, doAfterTaskStateChangedToDone, executeSteps, getCompletionDate, getCurrentStepNr, getFailureCount, getId, getLabel, getNrOfSteps, getOwner, getOwnerCredentials, getStartDate, getState, getStep, getSteps, getWrappingTask, isExecuting, isReadyForExecution, moveStep, performPreFlightChecks, processAfterRecovery, run, setId, setLabel, setOwner, setOwnerCredentials, setWrappingTask, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

repositoryService

protected final transient RepositoryService repositoryService
Constructor Detail

DeploymentTask

public DeploymentTask(java.util.List<? extends com.xebialabs.deployit.plugin.api.deployment.execution.DeploymentStep> steps,
                      RepositoryService repositoryService,
                      WorkDir... workDirs)

DeploymentTask

protected DeploymentTask(java.util.List<TaskStep> steps,
                         Task.State state)
Method Detail

destroy

public void destroy()
Destroys a task. Cleans up any temporary files needed for execution of the task.

Overrides:
destroy in class Task

initFromDeployment

protected void initFromDeployment(com.xebialabs.deployit.plugin.api.udm.DeployedApplication deployment)

getApplicationName

public java.lang.String getApplicationName()

setApplicationName

public void setApplicationName(java.lang.String applicationName)

getApplicationVersion

public java.lang.String getApplicationVersion()

setApplicationVersion

public void setApplicationVersion(java.lang.String applicationVersion)

getEnvironment

public java.lang.String getEnvironment()

setEnvironment

public void setEnvironment(java.lang.String environment)

getDeploymentType

public abstract DeploymentTask.DeploymentType getDeploymentType()