public abstract class AbstractOSController extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
muleBin |
protected String |
muleHome |
protected static String |
STATUS |
protected static Pattern |
STATUS_PATTERN |
protected int |
timeout |
| Constructor and Description |
|---|
AbstractOSController(String muleHome,
int timeout) |
| Modifier and Type | Method and Description |
|---|---|
protected Map<Object,Object> |
copyEnvironmentVariables() |
protected int |
doExecution(org.apache.commons.exec.DefaultExecutor executor,
org.apache.commons.exec.CommandLine commandLine,
Map<Object,Object> env) |
abstract String |
getMuleBin() |
String |
getMuleHome() |
abstract int |
getProcessId() |
void |
restart(String... args) |
protected int |
runSync(String command,
String... args) |
void |
start(String... args) |
abstract int |
status(String... args) |
int |
stop(String... args) |
protected static final String STATUS
protected static final Pattern STATUS_PATTERN
protected final String muleHome
protected final String muleBin
protected final int timeout
public AbstractOSController(String muleHome, int timeout)
public String getMuleHome()
public abstract String getMuleBin()
public void start(String... args)
public int stop(String... args)
public abstract int status(String... args)
public abstract int getProcessId()
public void restart(String... args)
protected int doExecution(org.apache.commons.exec.DefaultExecutor executor,
org.apache.commons.exec.CommandLine commandLine,
Map<Object,Object> env)
Copyright © 2017. All rights reserved.