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.Exception
public java.io.InputStream readData(java.lang.String name) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public void createFile() throws java.io.IOException
java.io.IOException
public java.lang.String readUuidFile() throws java.io.IOException
java.io.IOException
public void executionStateChanged(ExecutionEvent event)
ExecutionListener
executionStateChanged
in interface ExecutionListener
public void executionRequested(ExecutionEvent event)
ExecutionListener
executionRequested
in interface ExecutionListener
public void executionStarting(ExecutionEvent event)
ExecutionListener
executionStarting
in interface ExecutionListener
public void executionFinished(ExecutionEvent event)
ExecutionListener
executionFinished
in interface ExecutionListener
public void executionReset(ExecutionEvent event)
ExecutionListener
executionReset
in interface ExecutionListener
public java.util.HashMap<java.lang.String,java.lang.String> getExecutionProperties()
public void setExecutionProperties(java.util.HashMap<java.lang.String,java.lang.String> executionProperties)