public abstract class AbstractProcessHandler extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
SH |
static long |
WAIT_INTERVAL_S |
| Constructor and Description |
|---|
AbstractProcessHandler() |
| Modifier and Type | Method and Description |
|---|---|
OutputCommand |
executeAndWait(String[] cmdarray,
String[] envp,
File dir) |
Optional<String> |
getPidFromFile(Path fileName) |
String |
getPidFromPsOf(String processName) |
boolean |
processIsRunning(Path pidFile) |
void |
processStatus(Path storagePid,
String name) |
int |
retrievePid(Path pidFile) |
String |
selectCommand(String osx,
String linux) |
void |
stopProgram(Path pidFile,
String programName) |
void |
waitUntilStopped(Path pidFile,
int pid) |
public static final long WAIT_INTERVAL_S
public static final String SH
Copyright © 2018 Grakn Labs Ltd. All rights reserved.