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 voidhandleCommandExitStatus(ClientSession session, java.lang.String cmd, java.lang.Integer exitStatus)Invoked by the variousupload/downloadmethods 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 variousupload/downloadmethods after having successfully completed the remote copy command and (optionally) having received an exit status from the remote server- Parameters:
session- The associatedClientSessioncmd- The attempted remote copy commandexitStatus- The exit status - ifnullthen no status was reported- Throws:
java.io.IOException- If failed the command
-
-