|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Objectorg.linkedin.glu.commands.impl.CommandExecution
class CommandExecution
Property Summary | |
---|---|
FutureTaskExecution |
_futureExecution
|
java.lang.Object |
command
|
long |
completionTime
|
long |
startTime
|
CommandStreamStorage |
storage
|
Constructor Summary | |
CommandExecution(java.lang.String commandId, java.lang.Object args)
|
Method Summary | |
---|---|
FutureTaskExecution
|
asyncCaptureIO(Submitter submitter, groovy.lang.Closure closure)
Asynchronously executes the command. |
java.lang.Object
|
getArgs()
Map of arguments used to create the command |
java.lang.Object
|
getCompletionValue()
Completion value either return the result of the call if succeeded or the exception if an exception was thrown. |
java.lang.Object
|
getCompletionValue(java.lang.Object timeout)
Completion value either return the result of the call if succeeded or the exception if an exception was thrown. |
java.lang.Object
|
getExitValue(java.lang.Object timeout)
|
java.lang.Object
|
getExitValueIfCompleted()
|
java.lang.String
|
getId()
|
Logger
|
getLog()
|
boolean
|
hasStdin()
|
boolean
|
interruptExecution()
|
boolean
|
isCompleted()
|
boolean
|
isRedirectStderr()
|
void
|
setFutureExecution(FutureTaskExecution futureExecution)
|
java.lang.Object
|
syncCaptureIO(groovy.lang.Closure closure)
Synchronously executes the command |
void
|
waitForCompletion(java.lang.Object timeout)
|
boolean
|
waitForCompletionNoException(java.lang.Object timeout)
@param timeout |
java.lang.Object
|
waitForFutureExecution(java.lang.Object timeout = null, groovy.lang.Closure condition = null)
This method waits for 1. the future to be set, 2. the future to have started no longer than the timeout (overall). |
void
|
waitForStart(java.lang.Object timeout = null)
|
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Property Detail |
---|
FutureTaskExecution _futureExecution
java.lang.Object command
long completionTime
long startTime
CommandStreamStorage storage
Constructor Detail |
---|
CommandExecution(java.lang.String commandId, java.lang.Object args)
Method Detail |
---|
FutureTaskExecution asyncCaptureIO(Submitter submitter, groovy.lang.Closure closure)
java.lang.Object getArgs()
java.lang.Object getCompletionValue()
java.lang.Object getCompletionValue(java.lang.Object timeout)
TimeoutException
if cannot get
a result in the timeout provided
java.lang.Object getExitValue(java.lang.Object timeout)
java.lang.Object getExitValueIfCompleted()
java.lang.String getId()
Logger getLog()
boolean hasStdin()
boolean interruptExecution()
boolean isCompleted()
boolean isRedirectStderr()
void setFutureExecution(FutureTaskExecution futureExecution)
java.lang.Object syncCaptureIO(groovy.lang.Closure closure)
void waitForCompletion(java.lang.Object timeout)
boolean waitForCompletionNoException(java.lang.Object timeout)
true
if the command is completed or completes within the timeout...
false
otherwise
java.lang.Object waitForFutureExecution(java.lang.Object timeout = null, groovy.lang.Closure condition = null)
condition
returns or null
if non
void waitForStart(java.lang.Object timeout = null)
Groovy Documentation