|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
interface CommandStreamStorage
Method Summary | |
---|---|
FutureTaskExecution
|
asyncCaptureIO(Submitter submitter, groovy.lang.Closure closure)
Asynchronously executes the command. |
java.io.InputStream
|
findStorageInput(StreamType streamType)
|
java.io.InputStream
|
findStorageInput(java.lang.Object args)
This method allows you to start streaming the results (stdout, stderr,...) while the command is still running. |
java.lang.Object
|
findStorageInputWithSize(StreamType streamType)
@return map with |
java.lang.Object
|
findStorageInputWithSize(StreamType streamType, java.lang.Object args)
Return the stream for the command. |
java.io.OutputStream
|
findStorageOutput(StreamType streamType)
|
java.lang.Object
|
syncCaptureIO(groovy.lang.Closure closure)
Synchronously executes the command |
java.lang.Object
|
withOrWithoutStorageInput(StreamType streamType, groovy.lang.Closure c)
|
java.lang.Object
|
withOrWithoutStorageInput(java.lang.Object args, groovy.lang.Closure closure)
Similar to findStorageInput but calls the closure with the stream
or with |
java.lang.Object
|
withOrWithoutStorageInputWithSize(StreamType streamType, java.lang.Object args, groovy.lang.Closure closure)
Same as findStorageInputWithSize but call the closure with the map (and make sure that the stream gets closed properly). |
java.lang.Object
|
withOrWithoutStorageOutput(StreamType streamType, groovy.lang.Closure c)
|
java.lang.Object
|
withStorageInputWithSize(StreamType streamType, java.lang.Object args, groovy.lang.Closure closure)
Same as findStorageInputWithSize but call the closure with the map (and make sure that the stream gets closed properly). |
Method Detail |
---|
FutureTaskExecution asyncCaptureIO(Submitter submitter, groovy.lang.Closure closure)
java.io.InputStream findStorageInput(StreamType streamType)
java.io.InputStream findStorageInput(java.lang.Object args)
MultiplexedInputStream
.
args.exitValueStream
- if you want the exit value to be part of the stream
(boolean
, optional, false
by default)args.exitValueStreamTimeout
- how long to wait to get the exit value if the command is
not completed yet (optional, in the event that
exitValueStream
is set to
true
and exitValueStreamTimeout
is not provided, it will not block and return no exit value
stream)args.stdinStream
- if you want stdin to be part of the stream
(boolean
, optional, false
by default)args.stdinOffset
- where to start in the stdin stream (optional, int
,
0
by default)args.stdinLen
- how many bytes to read maximum (optional, int
,
-1
by default which means read all)args.stdoutStream
- if you want stdout to be part of the stream
(boolean
, optional, false
by default)args.stdoutOffset
- where to start in the stdout stream (optional, int
,
0
by default)args.stdoutLen
- how many bytes to read maximum (optional, int
,
-1
by default which means read all)args.stderrStream
- if you want stdout to be part of the stream
(boolean
, optional, false
by default)args.stderrOffset
- where to start in the stdout stream (optional, int
,
0
by default)args.stderrLen
- how many bytes to read maximum (optional, int
,
-1
by default which means read all)stream
or null
java.lang.Object findStorageInputWithSize(StreamType streamType)
stream
and size
or null
java.lang.Object findStorageInputWithSize(StreamType streamType, java.lang.Object args)
args.offset
- where to start in the stream (optional, int
,
0
by default)args.len
- how many bytes to read maximum (optional, int
,
-1
by default which means read all)stream
and size
or null
java.io.OutputStream findStorageOutput(StreamType streamType)
java.lang.Object syncCaptureIO(groovy.lang.Closure closure)
java.lang.Object withOrWithoutStorageInput(StreamType streamType, groovy.lang.Closure c)
java.lang.Object withOrWithoutStorageInput(java.lang.Object args, groovy.lang.Closure closure)
null
java.lang.Object withOrWithoutStorageInputWithSize(StreamType streamType, java.lang.Object args, groovy.lang.Closure closure)
null
args.offset
- where to start in the stream (optional, int
,
0
by default)args.len
- how many bytes to read maximum (optional, int
,
-1
by default which means read all)
java.lang.Object withOrWithoutStorageOutput(StreamType streamType, groovy.lang.Closure c)
java.lang.Object withStorageInputWithSize(StreamType streamType, java.lang.Object args, groovy.lang.Closure closure)
args.offset
- where to start in the stream (optional, int
,
0
by default)args.len
- how many bytes to read maximum (optional, int
,
-1
by default which means read all)
Groovy Documentation