Package org.jboss.jca.sjc
Class ProcessController
- java.lang.Object
-
- org.jboss.jca.sjc.ProcessController
-
public class ProcessController extends Object
The process controller for IronJacamar instances- Author:
- Jesper Pedersen
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ProcessControllergetInstance()Get instancestatic voidsetJava(String v)Set the java pathbooleanstart(String home)Start an instancebooleanstart(String home, File options)Start an instanceintstop(String home)Stop an instance
-
-
-
Method Detail
-
getInstance
public static ProcessController getInstance()
Get instance- Returns:
- The value
-
setJava
public static void setJava(String v)
Set the java path- Parameters:
v- The java path
-
start
public boolean start(String home)
Start an instance- Parameters:
home- The home directory- Returns:
- True if started successfully; otherwise false
-
start
public boolean start(String home, File options)
Start an instance- Parameters:
home- The home directoryoptions- The options- Returns:
- True if started successfully; otherwise false
-
stop
public int stop(String home)
Stop an instance- Parameters:
home- The home directory- Returns:
- The exit code
-
-