public class TaskStep extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected Throwable |
errorMessage |
protected String |
humanReadableStatus |
protected float |
progress |
protected WorkerResult |
result |
protected WorkerStatus |
status |
| Modifier | Constructor and Description |
|---|---|
protected |
TaskStep() |
|
TaskStep(OperationExecution execution,
TaskStepClassifier classifier) |
| Modifier and Type | Method and Description |
|---|---|
void |
addValidation(ValidationDescriptor validation) |
void |
addValidations(List<ValidationDescriptor> validations) |
void |
cleanValidations() |
TaskStepClassifier |
getClassifier() |
Throwable |
getError() |
String |
getExecutionDescription() |
String |
getHumanReadableStatus() |
float |
getProgress() |
WorkerResult |
getResult() |
OperationExecution |
getSourceInvocation() |
WorkerStatus |
getStatus() |
List<ValidationDescriptor> |
getValidations() |
List<ValidationStep> |
getValidationSteps() |
void |
setClassifier(TaskStepClassifier classifier) |
void |
setError(Throwable error) |
void |
setErrorMessage(Throwable errorMessage) |
void |
setExecutionDescription(String executionDescription) |
void |
setHumanReadableStatus(String humanReadableStatus) |
void |
setProgress(float progress) |
void |
setResult(WorkerResult result) |
void |
setSourceInvocation(OperationExecution sourceInvocation) |
void |
setStatus(WorkerStatus status) |
void |
setValidationSteps(List<ValidationStep> validationSteps) |
String |
toString() |
protected WorkerResult result
protected WorkerStatus status
protected String humanReadableStatus
protected float progress
protected Throwable errorMessage
protected TaskStep()
public TaskStep(OperationExecution execution, TaskStepClassifier classifier)
public WorkerResult getResult()
public void setResult(WorkerResult result)
result - the result to setpublic WorkerStatus getStatus()
public void setStatus(WorkerStatus status)
status - the status to setpublic OperationExecution getSourceInvocation()
public void setSourceInvocation(OperationExecution sourceInvocation)
sourceInvocation - the sourceInvocation to setpublic TaskStepClassifier getClassifier()
public void setClassifier(TaskStepClassifier classifier)
classifier - the classifier to setpublic float getProgress()
public void setProgress(float progress)
progress - the progress to setpublic String getHumanReadableStatus()
public List<ValidationStep> getValidationSteps()
public void setValidationSteps(List<ValidationStep> validationSteps)
public Throwable getError()
public void setError(Throwable error)
error - the error to setpublic void setExecutionDescription(String executionDescription)
public String getExecutionDescription()
public void addValidations(List<ValidationDescriptor> validations)
public void addValidation(ValidationDescriptor validation)
public List<ValidationDescriptor> getValidations()
public void cleanValidations()
public void setHumanReadableStatus(String humanReadableStatus)
public void setErrorMessage(Throwable errorMessage)
Copyright © 2014. All Rights Reserved.