public abstract class AbstractLauncher extends Object implements LaunchMethod
LaunchMethod.TYPE| Modifier and Type | Field and Description |
|---|---|
protected Process |
child |
protected Map<String,String> |
extraEnv |
protected Set<String> |
launchArgs |
protected MergeableProperties |
launchProperties |
protected AtomicLong |
pid |
protected String |
PROCESS_IDENTIFIER |
protected AtomicBoolean |
restarting |
protected AtomicInteger |
returnValue |
protected AtomicBoolean |
running |
protected AbstractStreamPumper |
stderr |
protected AbstractStreamPumper |
stdout |
protected WebSocketTransmitter |
transmitter |
protected File |
workingDir |
| Constructor and Description |
|---|
AbstractLauncher() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addLauncherArgs(MergeableProperties properties,
String prefix) |
Integer |
call() |
int |
destroyChild() |
protected String[] |
getLaunchArgs() |
String |
getName() |
long |
getProcessId() |
int |
getReturnValue() |
protected Integer |
launch(LaunchCallback callback,
String... args) |
protected Integer |
launch(Map<String,String> extraEnv,
String... args) |
int |
restarts() |
void |
setProperties(MergeableProperties properties) |
void |
setProperties(MergeableProperties properties,
LaunchCallback callback) |
void |
stopRelaunching() |
@Inject protected WebSocketTransmitter transmitter
protected final String PROCESS_IDENTIFIER
protected MergeableProperties launchProperties
protected Process child
protected AtomicInteger returnValue
protected File workingDir
protected AtomicBoolean running
protected AtomicBoolean restarting
protected AtomicLong pid
protected AbstractStreamPumper stdout
protected AbstractStreamPumper stderr
public String getName()
getName in interface LaunchMethodpublic long getProcessId()
getProcessId in interface LaunchMethodprotected Integer launch(LaunchCallback callback, String... args)
public void stopRelaunching()
stopRelaunching in interface LaunchMethodpublic int destroyChild()
throws InterruptedException
destroyChild in interface LaunchMethodInterruptedExceptionpublic int getReturnValue()
protected void addLauncherArgs(MergeableProperties properties, String prefix)
protected String[] getLaunchArgs()
public void setProperties(MergeableProperties properties)
setProperties in interface LaunchMethodpublic void setProperties(MergeableProperties properties, LaunchCallback callback)
setProperties in interface LaunchMethodpublic int restarts()
restarts in interface LaunchMethodCopyright © 2015. All rights reserved.