Package io.gem.api
Class RemoteResponse
java.lang.Object
io.gem.api.RemoteResponse
Immutable result of executing a command on a remote host.
Captures the exit status, stdout/stderr text, and the host identifier so callers can correlate results across multiple nodes.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRemoteResponse(int returnCode, String stdOutput, String errOutput, String host) Create a remote response snapshot. -
Method Summary
-
Field Details
-
returnCode
public final int returnCodeint returnCode. -
stdOutput
String stdOutput. -
errOutput
String errOutput. -
host
String host.
-
-
Constructor Details
-
RemoteResponse
Create a remote response snapshot.- Parameters:
returnCode- exit status returned by the remote command (null may indicate unknown)stdOutput- standard output captured as text (may be large)errOutput- standard error captured as texthost- remote host identifier for this response
-