public class TaskRuntime extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TaskRuntime.Entry
A wrapper for named output to be used for bulk addition.
|
| Constructor and Description |
|---|
TaskRuntime()
Creates an instance.
|
TaskRuntime(TaskResource resource)
Creates an instance with an associated
TaskResource |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public TaskRuntime()
public TaskRuntime(TaskResource resource)
TaskResourceresource - public ExecutorPluginContext getContext()
public Calendar getStartTime()
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.Copyright © 2015. All Rights Reserved.