|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.vremanagement.executor.state.TaskRuntime
public class TaskRuntime
The runtime environment of the task.
| Nested Class Summary | |
|---|---|
static class |
TaskRuntime.Entry
A wrapper for named output to be used for bulk addition. |
| Constructor Summary | |
|---|---|
TaskRuntime()
Creates an instance. |
|
TaskRuntime(TaskResource resource)
Creates an instance with an associated TaskResource |
|
| Method Summary | |
|---|---|
Object |
addOutput(String name,
Object value)
Adds an output. |
void |
addOutput(TaskRuntime.Entry... entries)
Adds one or more outputs. |
ExecutorPluginContext |
getContext()
Returns the context of the plugin's task. |
Object |
getInput(String name)
Returns an input given its name. |
Map<String,Object> |
getInputs()
Returns the task inputs. |
Calendar |
getStartTime()
Returns the start time of the task. |
void |
removeOutput(String... names)
Removes one or more outputs. |
void |
throwException(Exception e)
Throws an exception shows as the value of the error RP. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TaskRuntime()
public TaskRuntime(TaskResource resource)
TaskResource
resource - | Method Detail |
|---|
public ExecutorPluginContext getContext()
public Calendar getStartTime()
public Map<String,Object> getInputs()
public Object getInput(String name)
public Object addOutput(String name,
Object value)
name - the name of the output.value - the output.
public void addOutput(TaskRuntime.Entry... entries)
entries - the outputs.public void removeOutput(String... names)
names - the name of the outputspublic void throwException(Exception e)
e - the exception.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||