Interface TaskStatus
- All Superinterfaces:
Progress
- All Known Implementing Classes:
TaskStatusImpl
This interface define a step status.
- Since:
- 2.0
- Author:
- Laurent Jourdren
-
Method Summary
Modifier and TypeMethodDescriptionCreate a TaskResult object for a successful result.createTaskResult(boolean success) Create a TaskResult object.createTaskResult(Throwable exception) Create a TaskResult object.createTaskResult(Throwable exception, String exceptionMessage) Create a TaskResult object.Get the context command line.Get the sample counters.Get the context description.Get the context docker image.voidsetCommandLine(String commandLine) Set the context command line.voidsetCounters(fr.ens.biologie.genomique.kenetre.util.Reporter reporter, String counterGroup) Set the context counters.voidsetDescription(String description) Set the context description.voidsetDockerImage(String dockerImage) Set the context docker image.Methods inherited from interface fr.ens.biologie.genomique.eoulsan.core.Progress
getProgress, getProgressMessage, setProgress, setProgress, setProgressMessage
-
Method Details
-
getCounters
Get the sample counters.- Returns:
- the sample counters as a map
-
getDescription
String getDescription()Get the context description.- Returns:
- a String with the context description
-
setDescription
Set the context description.- Parameters:
description- the description to set
-
getCommandLine
String getCommandLine()Get the context command line.- Returns:
- a String with the context command line
-
setCommandLine
Set the context command line.- Parameters:
commandLine- the command line to set
-
getDockerImage
String getDockerImage()Get the context docker image.- Returns:
- a String with the context docker image
-
setDockerImage
Set the context docker image.- Parameters:
dockerImage- the command line to set
-
setCounters
Set the context counters.- Parameters:
reporter- the reportercounterGroup- counter group to use with the reporter
-
createTaskResult
TaskResult createTaskResult()Create a TaskResult object for a successful result.- Returns:
- a TaskResult object
-
createTaskResult
Create a TaskResult object.- Parameters:
success- true if the task is successful- Returns:
- a TaskResult object
-
createTaskResult
Create a TaskResult object.- Parameters:
exception- exception of the errorexceptionMessage- Error message- Returns:
- a TaskResult object
-
createTaskResult
Create a TaskResult object.- Parameters:
exception- exception of the error- Returns:
- a TaskResult object
-