public interface OCPUResult
extends java.io.Serializable
All OCPUTask are serializable making them compatible
with Java cluster computing solutions, such as Apache Spark.
| Modifier and Type | Method and Description |
|---|---|
java.lang.Exception |
cause()
Retrieve cause of error if task execution failed.
|
java.util.Map |
data()
Return result data generated by successful task execution.
|
java.lang.String |
error()
Retrieve error message if task execution failed.
|
boolean |
success()
Determine if task execution was successful.
|
long |
timeTaken()
Returns approximate time taken (ms) by task execution.
|
boolean success()
java.lang.String error()
java.lang.Exception cause()
Exception indicating cause of failure.long timeTaken()
java.util.Map data()
Map representation of JSON data
returned following analysis by your OCPUTask.