public class ProcessToolRunner extends Object implements ToolRunner
Modifier and Type | Field and Description |
---|---|
static String |
STARTED_FROM_GUI |
Constructor and Description |
---|
ProcessToolRunner(ProcessBuilder[] processBuilders,
String s,
ModelItem modelItem) |
ProcessToolRunner(ProcessBuilder[] builders,
String name,
ModelItem modelItem,
ArgumentBuilder args) |
ProcessToolRunner(ProcessBuilder builder,
String s,
ModelItem modelItem) |
ProcessToolRunner(ProcessBuilder builder,
String name,
ModelItem modelItem,
ArgumentBuilder args) |
Modifier and Type | Method and Description |
---|---|
protected void |
afterProcess(Process process2,
RunnerContext context) |
protected void |
afterRun(int exitCode,
RunnerContext context) |
protected void |
beforeProcess(ProcessBuilder processBuilder,
RunnerContext context) |
protected void |
beforeRun(RunnerContext context) |
boolean |
canCancel() |
void |
cancel() |
ProcessBuilder[] |
getBuilders() |
String |
getDescription() |
ModelItem |
getModelItem() |
String |
getName() |
Process |
getProcess() |
boolean |
isRunning() |
void |
run() |
void |
setCanCancel(boolean canCancel) |
void |
setContext(RunnerContext context) |
void |
setShowLog(boolean showLog) |
boolean |
showLog() |
public static final String STARTED_FROM_GUI
public ProcessToolRunner(ProcessBuilder builder, String name, ModelItem modelItem, ArgumentBuilder args)
public ProcessToolRunner(ProcessBuilder[] builders, String name, ModelItem modelItem, ArgumentBuilder args)
public ProcessToolRunner(ProcessBuilder[] processBuilders, String s, ModelItem modelItem)
public ProcessToolRunner(ProcessBuilder builder, String s, ModelItem modelItem)
public ProcessBuilder[] getBuilders()
public Process getProcess()
public boolean isRunning()
isRunning
in interface ToolRunner
public void cancel()
cancel
in interface ToolRunner
protected void beforeRun(RunnerContext context)
protected void beforeProcess(ProcessBuilder processBuilder, RunnerContext context)
protected void afterProcess(Process process2, RunnerContext context)
protected void afterRun(int exitCode, RunnerContext context)
public void setContext(RunnerContext context)
setContext
in interface ToolRunner
public ModelItem getModelItem()
getModelItem
in interface ToolRunner
public String getName()
getName
in interface ToolRunner
public boolean canCancel()
canCancel
in interface ToolRunner
public boolean showLog()
showLog
in interface ToolRunner
public void setCanCancel(boolean canCancel)
public void setShowLog(boolean showLog)
public String getDescription()
getDescription
in interface ToolRunner
Copyright © 2019. All Rights Reserved.