Interface CommandExecutionManager.CommandResultSink

Enclosing class:
CommandExecutionManager

@Internal public static interface CommandExecutionManager.CommandResultSink
Receives one v2 command outcome, independently of the transport framing. Framework failures propagate to the caller; only dispatch failures call failed(String). Messages are non-empty and at most 500 code points, the command.result payload bound.
Since:
6.3.1
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    blocked(String matched, String message)
    Reports a blocklist refusal with the normalized matched entry and existing policy message.
    void
    completed(List<String> lines, boolean truncated, long executionMs)
    Reports synchronous feedback captured before dispatch returned, and main-thread execution time.
    void
    failed(String message)
    Reports an empty command, a disabled capability, a refused command's captured reply or a dispatch exception's message — never a stack trace.
  • Method Details

    • blocked

      void blocked(String matched, String message)
      Reports a blocklist refusal with the normalized matched entry and existing policy message.
    • completed

      void completed(List<String> lines, boolean truncated, long executionMs)
      Reports synchronous feedback captured before dispatch returned, and main-thread execution time. Feedback the command prints later is not part of the result: it is written to the server console, and so reaches the log stream.
    • failed

      void failed(String message)
      Reports an empty command, a disabled capability, a refused command's captured reply or a dispatch exception's message — never a stack trace.