Interface TaskResult
-
- All Known Implementing Classes:
TaskResultImpl
public interface TaskResultThis class define the result of a step.- Since:
- 1.0
- Author:
- Laurent Jourdren
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetDuration()Get the duration of the step.StringgetErrorMessage()Get the error message.ThrowablegetException()Get the exception.booleanisSuccess()Test the result of the step is successful.
-
-
-
Method Detail
-
getDuration
long getDuration()
Get the duration of the step.- Returns:
- duration in milliseconds
-
isSuccess
boolean isSuccess()
Test the result of the step is successful.- Returns:
- Returns the success
-
getException
Throwable getException()
Get the exception.- Returns:
- Returns the exception
-
getErrorMessage
String getErrorMessage()
Get the error message.- Returns:
- Returns the errorMessage
-
-