Interface TaskStatus
-
- All Superinterfaces:
Progress
- All Known Implementing Classes:
TaskStatusImpl
public interface TaskStatus extends Progress
This interface define a step status.- Since:
- 2.0
- Author:
- Laurent Jourdren
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TaskResultcreateTaskResult()Create a TaskResult object for a successful result.TaskResultcreateTaskResult(boolean success)Create a TaskResult object.TaskResultcreateTaskResult(Throwable exception)Create a TaskResult object.TaskResultcreateTaskResult(Throwable exception, String exceptionMessage)Create a TaskResult object.StringgetCommandLine()Get the context command line.Map<String,Long>getCounters()Get the sample counters.StringgetDescription()Get the context description.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.-
Methods inherited from interface fr.ens.biologie.genomique.eoulsan.core.Progress
getProgress, getProgressMessage, setProgress, setProgress, setProgressMessage
-
-
-
-
Method Detail
-
getCounters
Map<String,Long> 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
void setDescription(String description)
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
void setCommandLine(String commandLine)
Set the context command line.- Parameters:
commandLine- the command line to set
-
setCounters
void setCounters(fr.ens.biologie.genomique.kenetre.util.Reporter reporter, String counterGroup)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.
-
createTaskResult
TaskResult createTaskResult(boolean success)
Create a TaskResult object.- Parameters:
success- true if the task is successful
-
createTaskResult
TaskResult createTaskResult(Throwable exception, String exceptionMessage)
Create a TaskResult object.- Parameters:
exception- exception of the errorexceptionMessage- Error message
-
createTaskResult
TaskResult createTaskResult(Throwable exception)
Create a TaskResult object.- Parameters:
exception- exception of the error
-
-