public interface OCPUTask
extends java.io.Serializable
OCPU task builder.
An instance of OCPUTask can be executed as follows:
OCPUResult oResult = rTask.execute();
All OCPUTask are serializable making them compatible
with Java cluster computing solutions, such as Apache Spark.
| Modifier and Type | Method and Description |
|---|---|
OCPUResult |
execute()
Execute the R task on the OpenCPU server at the default endpoint.
|
OCPUResult |
execute(java.lang.String endpoint)
Execute the R task on the OpenCPU server at the provided endpoint.
|
OCPUResult execute()
OCPUResult execute(java.lang.String endpoint)
endpoint - the OpenCPU server endpoint