public class TrianaExec
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected class |
TrianaExec.ExecRun |
Modifier and Type | Field and Description |
---|---|
static long |
DATA_SLEEP_TIME
the time in milliseconds that the manager threads sleep when waiting for the previous data to be sent/the data to
arrive.
|
Constructor and Description |
---|
TrianaExec(TaskGraph taskgraph)
Constructs a TrianaExec to execute a clone of the specified taskgraph.
|
TrianaExec(Tool tool)
Constructs a TrianaExec to execute a clone of the specified tool.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Dispose of the TrianaExec and clean up the threads
|
java.lang.String |
getDummyToolName() |
Task |
getTask() |
TaskGraph |
getTaskGraph() |
boolean |
isFinished() |
java.lang.Object[] |
run(java.lang.Object[] data)
Executes the taskgraph using the specified input data array.
|
java.lang.Object[] |
run(java.lang.Object[] data,
boolean unpack)
Executes the taskgraph using the specified input data array.
|
void |
setDummyToolName(java.lang.String dummyname)
Sets the dummy tool name
|
public static long DATA_SLEEP_TIME
public TrianaExec(TaskGraph taskgraph) throws TaskGraphException
TaskGraphException
public TrianaExec(Tool tool) throws TaskGraphException
TaskGraphException
public TaskGraph getTaskGraph()
public Task getTask()
public java.lang.String getDummyToolName()
public void setDummyToolName(java.lang.String dummyname)
public boolean isFinished()
public java.lang.Object[] run(java.lang.Object[] data) throws TaskGraphException, SchedulerException
TaskGraphException
SchedulerException
public java.lang.Object[] run(java.lang.Object[] data, boolean unpack) throws TaskGraphException, SchedulerException
unpack
- sets whether data within data messages is automatically unpacked in the results arrayTaskGraphException
SchedulerException
public void dispose()