Package io.gem.api

Class RemoteResponse

java.lang.Object
io.gem.api.RemoteResponse

public final class RemoteResponse extends Object
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 Details

    • returnCode

      public final int returnCode
      int returnCode.
    • stdOutput

      public final String stdOutput
      String stdOutput.
    • errOutput

      public final String errOutput
      String errOutput.
    • host

      public final String host
      String host.
  • Constructor Details

    • RemoteResponse

      public RemoteResponse(int returnCode, String stdOutput, String errOutput, String host)
      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 text
      host - remote host identifier for this response