Class Overview
Wrapper around Atlassian's process utils.
Summary
Protected Constructors |
|
BaseCommand(List<String> arguments, Map<String, String> environment, File workingDir, CommandExitHandler exitHandler, CommandInputHandler inputHandler, CommandOutputHandler<T> outputHandler, CommandErrorHandler errorHandler)
|
|
BaseCommand(String binary, String command, Map<String, String> environment, File workingDir, CommandExitHandler exitHandler, CommandInputHandler inputHandler, CommandOutputHandler<T> outputHandler, CommandErrorHandler errorHandler)
|
Protected Constructors
Public Methods
@Nullable
public
T
call
()
public
void
setExecutionTimeout
(long timeoutInSecs)
public
void
setIdleTimeout
(long timeoutInSecs)
@Nonnull
public
Future<T>
start
()
@Nonnull
public
Command<T>
synchronous
()
@Nonnull
public
String
toString
()
Protected Methods
protected
void
addArgument
(Object... options)
protected
void
callExitHandler
()
@Nonnull
protected
OutputHandler
getErrorHandler
()
@Nullable
protected
InputHandler
getInputHandler
()
@Nonnull
protected
OutputHandler
getOutputHandler
()
@Nonnull
protected
ProcessHandler
getProcessHandler
()
@Nullable
protected
abstract
T
getResult
()