public class StageScriptExecutor extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ORG_HORTONMACHINE_MODULES |
| Constructor and Description |
|---|
StageScriptExecutor(File jgtLibsFolder) |
| Modifier and Type | Method and Description |
|---|---|
void |
addProcessListener(IProcessListener listener) |
Process |
exec(String sessionId,
String script,
String loggerLevelGui,
String ramLevel,
String encoding)
Execute an OMS script.
|
boolean |
isRunning() |
void |
killProcess(Process process) |
void |
removeProcessListener(IProcessListener listener) |
public static final String ORG_HORTONMACHINE_MODULES
public Process exec(String sessionId, String script, String loggerLevelGui, String ramLevel, String encoding) throws Exception
script - the script file or the script string.internalStream - errorStream - loggerLevelGui - the log level as presented in the GUI, can be OFF|ON. This is
not the OMS logger level, which in stead has to be picked from
the SpatialToolboxConstants.LOGLEVELS_MAP.ramLevel - the heap size to use in megabytes.encoding - Exceptionpublic boolean isRunning()
public void addProcessListener(IProcessListener listener)
public void removeProcessListener(IProcessListener listener)
public void killProcess(Process process)
Copyright © 2005-2019 HydroloGIS. All Rights Reserved.