Package io.gem.api
Class SshResponse
java.lang.Object
io.gem.api.SshResponse
Mutable holder for SSH command execution streams and exit code.
Used by SshUtils.runCommand(org.apache.sshd.client.session.ClientSession, String, long, SshResponse)
to channel stdout/stderr and record the return code.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal OutputStreamOutputStream errOutputStream.intint returnCode.final OutputStreamOutputStream stdOutputStream. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
errOutputStream
OutputStream errOutputStream. -
stdOutputStream
OutputStream stdOutputStream. -
returnCode
public int returnCodeint returnCode.
-
-
Constructor Details
-
SshResponse
public SshResponse(boolean stdout) Create response streams.- Parameters:
stdout- if true, allocate a buffer for stdout; otherwise discard to a null stream
-