public abstract class Controller extends Object
Modifier and Type | Field and Description |
---|---|
protected static String |
ANCHOR_SUFFIX |
protected File |
appsDir |
protected File |
domainsDir |
protected File |
libsDir |
protected String |
muleBin |
protected String |
muleHome |
protected static String |
STATUS |
protected static Pattern |
STATUS_PATTERN |
protected int |
timeout |
Constructor and Description |
---|
Controller(String muleHome,
int timeout) |
Modifier and Type | Method and Description |
---|---|
protected void |
addLibrary(File jar) |
protected Map<Object,Object> |
copyEnvironmentVariables() |
protected void |
deleteAnchors() |
void |
deploy(String path) |
protected void |
deployDomain(String domain) |
protected int |
doExecution(org.apache.commons.exec.DefaultExecutor executor,
org.apache.commons.exec.CommandLine commandLine,
Map<Object,Object> env) |
File |
getLog() |
File |
getLog(String appName) |
abstract String |
getMuleBin() |
abstract int |
getProcessId() |
void |
installLicense(String path) |
protected boolean |
isDeployed(String appName) |
boolean |
isRunning() |
void |
restart(String[] args) |
protected int |
runSync(String command,
String... args) |
void |
start(String[] args) |
abstract int |
status(String... args) |
void |
stop(String[] args) |
void |
undeployAll() |
void |
uninstallLicense() |
protected void |
verify(boolean condition,
String message,
Object... args) |
protected static final String ANCHOR_SUFFIX
protected static final String STATUS
protected static final Pattern STATUS_PATTERN
protected String muleHome
protected String muleBin
protected File domainsDir
protected File appsDir
protected File libsDir
protected int timeout
public Controller(String muleHome, int timeout)
public abstract String getMuleBin()
public void start(String[] args)
public void 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)
protected void deployDomain(String domain)
protected void addLibrary(File jar)
protected void deleteAnchors()
public void deploy(String path)
public boolean isRunning()
public void undeployAll()
public void installLicense(String path)
public void uninstallLicense()
protected boolean isDeployed(String appName)
public File getLog()
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.