public class Exec extends java.lang.Object implements ExecutionListener
| Modifier and Type | Class and Description |
|---|---|
class |
Exec.Poller |
| Modifier and Type | Field and Description |
|---|---|
static java.io.File |
RUNS |
static java.lang.String |
RUNS_DIR |
| Constructor and Description |
|---|
Exec(java.lang.String pid) |
| Modifier and Type | Method and Description |
|---|---|
void |
createFile() |
static int |
exec(java.lang.String[] args) |
void |
execute(Tool tool,
java.lang.String data) |
void |
executionFinished(ExecutionEvent event)
Notified when the runnable instance has finished an execution
|
void |
executionRequested(ExecutionEvent event)
Notified when an execution is requested (either by the user or due to all essential input data having been
received)
|
void |
executionReset(ExecutionEvent event)
Notified when the runnable instance is reset
|
void |
executionStarting(ExecutionEvent event)
Notified when the runnable instance is about to be execution
|
void |
executionStateChanged(ExecutionEvent event)
Notified when the execution state of the task changes
|
java.util.HashMap<java.lang.String,java.lang.String> |
getExecutionProperties() |
java.lang.String |
getPid() |
static void |
main(java.lang.String[] args) |
java.io.InputStream |
readData(java.lang.String name) |
java.lang.String |
readUuidFile() |
void |
setExecutionProperties(java.util.HashMap<java.lang.String,java.lang.String> executionProperties) |
public static final java.lang.String RUNS_DIR
public static java.io.File RUNS
public java.lang.String getPid()
public static void main(java.lang.String[] args)
public static int exec(java.lang.String[] args)
public void execute(Tool tool, java.lang.String data) throws java.lang.Exception
java.lang.Exceptionpublic java.io.InputStream readData(java.lang.String name)
throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionpublic void createFile()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String readUuidFile()
throws java.io.IOException
java.io.IOExceptionpublic void executionStateChanged(ExecutionEvent event)
ExecutionListenerexecutionStateChanged in interface ExecutionListenerpublic void executionRequested(ExecutionEvent event)
ExecutionListenerexecutionRequested in interface ExecutionListenerpublic void executionStarting(ExecutionEvent event)
ExecutionListenerexecutionStarting in interface ExecutionListenerpublic void executionFinished(ExecutionEvent event)
ExecutionListenerexecutionFinished in interface ExecutionListenerpublic void executionReset(ExecutionEvent event)
ExecutionListenerexecutionReset in interface ExecutionListenerpublic java.util.HashMap<java.lang.String,java.lang.String> getExecutionProperties()
public void setExecutionProperties(java.util.HashMap<java.lang.String,java.lang.String> executionProperties)