| Package | Description |
|---|---|
| org.cloudcoder.daemon |
| Modifier and Type | Method and Description |
|---|---|
static int |
Util.exec(java.lang.String... cmd)
Execute a process.
|
static java.lang.Integer |
Util.getPid()
Get this process's pid.
|
static boolean |
Util.isRunning(java.lang.Integer pid)
Is there a process running with the given pid?
|
void |
DaemonLauncher.launch(java.lang.String instanceName,
java.lang.Class<?> daemonClass)
Launch the daemon as a background process (with a FIFO for communication).
|
static java.lang.Integer |
Util.readPid(java.lang.String instanceName)
Read the pid file for given instance, returning the pid.
|
static void |
Util.sendCommand(java.lang.String instanceName,
java.lang.Integer pid,
java.lang.String command)
Send a command to the daemon process.
|
static void |
Util.waitForExit(java.lang.Integer pid,
java.lang.Runnable callback)
Wait for given process to exit.
|
static void |
Util.writePid(java.lang.String instanceName,
java.lang.Integer pid)
Write a pid file for instance.
|