| java.lang.Object |
| ↳ |
com.atlassian.stash.scm.BaseCommand<T> |
Class Overview
Wrapper around Atlassian's process utils.
Summary
| Protected Constructors |
|
|
BaseCommand(String binary, String command, Map<String, String> environment, File workingDir, CommandExitHandler exitHandler, CommandInputHandler inputHandler, CommandOutputHandler<T> outputHandler, CommandErrorHandler errorHandler)
|
|
[Expand]
Inherited Methods |
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
From interface
com.atlassian.stash.scm.AsyncCommand
|
@Nonnull
Future<T>
|
start()
|
|
Command<T>
|
synchronous()
|
|
From interface
com.atlassian.stash.scm.Command
|
@Nonnull
AsyncCommand<T>
|
asynchronous()
|
|
@Nullable
T
|
call()
|
|
void
|
setExecutionTimeout(long arg0)
|
|
void
|
setIdleTimeout(long arg0)
|
|
From interface
java.util.concurrent.Callable
|
Protected Constructors
protected
BaseCommand
(String binary, String command, Map<String, String> environment, File workingDir, CommandExitHandler exitHandler, CommandInputHandler inputHandler, CommandOutputHandler<T> outputHandler, CommandErrorHandler errorHandler)
Public Methods
@Nonnull
public
AsyncCommand<T>
asynchronous
()
@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
()