org.mule.test.infrastructure.process
Class Controller

java.lang.Object
  extended by org.mule.test.infrastructure.process.Controller
Direct Known Subclasses:
UnixController, WindowsController

public abstract class Controller
extends Object


Field Summary
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 Summary
Controller(String muleHome, int timeout)
           
 
Method Summary
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)
           
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ANCHOR_SUFFIX

protected static final String ANCHOR_SUFFIX
See Also:
Constant Field Values

STATUS

protected static final String STATUS
See Also:
Constant Field Values

STATUS_PATTERN

protected static final Pattern STATUS_PATTERN

muleHome

protected String muleHome

muleBin

protected String muleBin

domainsDir

protected File domainsDir

appsDir

protected File appsDir

libsDir

protected File libsDir

timeout

protected int timeout
Constructor Detail

Controller

public Controller(String muleHome,
                  int timeout)
Method Detail

getMuleBin

public abstract String getMuleBin()

start

public void start(String[] args)

stop

public void stop(String[] args)

status

public abstract int status(String... args)

getProcessId

public abstract int getProcessId()

restart

public void restart(String[] args)

runSync

protected int runSync(String command,
                      String... args)

doExecution

protected int doExecution(org.apache.commons.exec.DefaultExecutor executor,
                          org.apache.commons.exec.CommandLine commandLine,
                          Map<Object,Object> env)

copyEnvironmentVariables

protected Map<Object,Object> copyEnvironmentVariables()

verify

protected void verify(boolean condition,
                      String message,
                      Object... args)

deployDomain

protected void deployDomain(String domain)

addLibrary

protected void addLibrary(File jar)

deleteAnchors

protected void deleteAnchors()

deploy

public void deploy(String path)

isRunning

public boolean isRunning()

undeployAll

public void undeployAll()

installLicense

public void installLicense(String path)

uninstallLicense

public void uninstallLicense()

isDeployed

protected boolean isDeployed(String appName)


Copyright © 2003–2014 MuleSoft, Inc.. All rights reserved.