Class ScriptResult

java.lang.Object
com.enterprisedt.net.ftp.script.ScriptResult

public class ScriptResult extends Object
Holds the result of a script which has been run. Various statistics are supplied.
Version:
$Revision$
Author:
Bruce Blackshaw
  • Constructor Details

    • ScriptResult

      public ScriptResult()
  • Method Details

    • getLastFTPReply

      public FTPReply getLastFTPReply()
      Get the last reply sent back by the FTP server. Not applicable for SFTP.
      Returns:
      last FTP reply
    • getServerMessageLog

      public String[] getServerMessageLog()
      Get the server message log for this script
      Returns:
    • getLastException

      public Exception getLastException()
      What was the last exception?
      Returns:
    • isForceScriptExit

      public boolean isForceScriptExit()
      Was the script forced to exit by an error?
      Returns:
      true if forced to exit, false otherwise
    • getDownloadCount

      public int getDownloadCount()
      Get the number of files downloaded during the script execution
      Returns:
      download file count
    • getUploadCount

      public int getUploadCount()
      Get the number of files uploaded during the script execution
      Returns:
      upload file count
    • getDeleteCount

      public int getDeleteCount()
      Get the number of files deleted during the script execution
      Returns:
      deleted file count