Interface CommandStatusHandler

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface CommandStatusHandler
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Invoked by the various upload/download methods after having successfully completed the remote copy command and (optionally) having received an exit status from the remote server
  • Method Details

    • handleCommandExitStatus

      void handleCommandExitStatus(ClientSession session, String cmd, Integer exitStatus) throws IOException
      Invoked by the various upload/download methods after having successfully completed the remote copy command and (optionally) having received an exit status from the remote server
      Parameters:
      session - The associated ClientSession
      cmd - The attempted remote copy command
      exitStatus - The exit status - if null then no status was reported
      Throws:
      IOException - If failed the command