|
||||||||||
| 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 | |
|---|---|
java.lang.Object |
addOutput(java.lang.String name,
java.lang.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. |
java.lang.Object |
getInput(java.lang.String name)
Returns an input given its name. |
java.util.Map<java.lang.String,java.lang.Object> |
getInputs()
Returns the task inputs. |
java.util.Calendar |
getStartTime()
Returns the start time of the task. |
void |
removeOutput(java.lang.String... names)
Removes one or more outputs. |
void |
throwException(java.lang.Exception e)
Throws an exception shows as the value of the error RP. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TaskRuntime()
public TaskRuntime(TaskResource resource)
TaskResource
resource - | Method Detail |
|---|
public ExecutorPluginContext getContext()
public java.util.Calendar getStartTime()
public java.util.Map<java.lang.String,java.lang.Object> getInputs()
public java.lang.Object getInput(java.lang.String name)
public java.lang.Object addOutput(java.lang.String name,
java.lang.Object value)
name - the name of the output.value - the output.
public void addOutput(TaskRuntime.Entry... entries)
entries - the outputs.public void removeOutput(java.lang.String... names)
names - the name of the outputspublic void throwException(java.lang.Exception e)
e - the exception.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||