Package com.enterprisedt.net.ftp.script
Class ScriptResult
java.lang.Object
com.enterprisedt.net.ftp.script.ScriptResult
Holds the result of a script which has been run. Various statistics
are supplied.
- Version:
- $Revision$
- Author:
- Bruce Blackshaw
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGet the number of files deleted during the script executionintGet the number of files downloaded during the script executionWhat was the last exception?Get the last reply sent back by the FTP server.String[]Get the server message log for this scriptintGet the number of files uploaded during the script executionbooleanWas the script forced to exit by an error?
-
Constructor Details
-
ScriptResult
public ScriptResult()
-
-
Method Details
-
getLastFTPReply
Get the last reply sent back by the FTP server. Not applicable for SFTP.- Returns:
- last FTP reply
-
getServerMessageLog
Get the server message log for this script- Returns:
-
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
-