public abstract class Executable extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
INT |
protected Process |
process
The process backing this executable.
|
| Constructor and Description |
|---|
Executable()
Construct an executable.
|
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Start executing this program.
|
protected abstract String[] |
getCommandLine()
Get the command-line.
|
void |
terminate()
Terminate this process.
|
int |
waitFor()
Wait for the process to terminate.
|
public static final int INT
protected Process process
protected abstract String[] getCommandLine()
public void execute()
public int waitFor()
throws InterruptedException
InterruptedException - If the thread waiting for the termination is interrupted.public void terminate()
Copyright © 1999–2017 Apache OODT. All rights reserved.