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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void handleCommandExitStatus​(ClientSession session, java.lang.String cmd, java.lang.Integer exitStatus)
      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 Detail

      • handleCommandExitStatus

        void handleCommandExitStatus​(ClientSession session,
                                     java.lang.String cmd,
                                     java.lang.Integer exitStatus)
                              throws java.io.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:
        java.io.IOException - If failed the command