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 TaskResult
createTaskResult()
Create a TaskResult object for a successful result.TaskResult
createTaskResult(boolean success)
Create a TaskResult object.TaskResult
createTaskResult(Throwable exception)
Create a TaskResult object.TaskResult
createTaskResult(Throwable exception, String exceptionMessage)
Create a TaskResult object.String
getCommandLine()
Get the context command line.Map<String,Long>
getCounters()
Get the sample counters.String
getDescription()
Get the context description.void
setCommandLine(String commandLine)
Set the context command line.void
setCounters(fr.ens.biologie.genomique.kenetre.util.Reporter reporter, String counterGroup)
Set the context counters.void
setDescription(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
-
-