public abstract class AbstractLocalCommandExecutor extends Object implements LocalCommandExecutor
Modifier and Type | Field and Description |
---|---|
protected ReadWriteLock |
lock |
protected static String |
NON_ZERO_LOG_PATTERN |
protected Map<Path,Process> |
processMap |
Constructor and Description |
---|
AbstractLocalCommandExecutor() |
Modifier and Type | Method and Description |
---|---|
protected int |
execute(List<String> cmdLs,
Path workingDir,
Path outFile,
Path errFile,
long timeout) |
void |
stop(Path workingDir) |
void |
stopForcibly(Path workingDir) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
execute, execute
protected final ReadWriteLock lock
protected static final String NON_ZERO_LOG_PATTERN
public void stop(Path workingDir)
stop
in interface LocalCommandExecutor
public void stopForcibly(Path workingDir) throws InterruptedException
stopForcibly
in interface LocalCommandExecutor
InterruptedException
protected int execute(List<String> cmdLs, Path workingDir, Path outFile, Path errFile, long timeout) throws IOException, InterruptedException
IOException
InterruptedException
Copyright © 2020. All rights reserved.