| Modifier and Type | Field and Description |
|---|---|
protected NodeAgent |
agent |
protected org.apache.uima.ducc.transport.cmdline.ICommandLine |
cmdLine |
protected String |
host |
protected String |
ip |
protected Process |
managedProcess |
| Constructor and Description |
|---|
CommandExecutor(NodeAgent agent,
org.apache.uima.ducc.transport.cmdline.ICommandLine cmdLine,
String host,
String ip,
Process managedProcess) |
| Modifier and Type | Method and Description |
|---|---|
Process |
call()
Called by Executor to exec a process.
|
abstract Process |
exec(org.apache.uima.ducc.transport.cmdline.ICommandLine commandLine,
Map<String,String> processEnv) |
protected boolean |
isKillCommand(org.apache.uima.ducc.transport.cmdline.ICommandLine cmdLine) |
protected void |
postExecStep(Process process,
org.apache.uima.ducc.common.utils.DuccLogger logger,
boolean isKillCmd)
Called after process is launched.
|
abstract void |
stop() |
protected Process managedProcess
protected String host
protected String ip
protected org.apache.uima.ducc.transport.cmdline.ICommandLine cmdLine
protected NodeAgent agent
public abstract Process exec(org.apache.uima.ducc.transport.cmdline.ICommandLine commandLine, Map<String,String> processEnv) throws Exception
Exceptionprotected void postExecStep(Process process, org.apache.uima.ducc.common.utils.DuccLogger logger, boolean isKillCmd)
process - - launched processprotected boolean isKillCommand(org.apache.uima.ducc.transport.cmdline.ICommandLine cmdLine)
Copyright © 2012–2017 The Apache Software Foundation. All rights reserved.