com.enterprisedt.net.ftp.script
Class ScriptResult

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

public class ScriptResult
extends java.lang.Object

Holds the result of a script which has been run. Various statistics are supplied.

Version:
$Revision: 1.4 $
Author:
Bruce Blackshaw

Constructor Summary
ScriptResult()
           
 
Method Summary
 int getDeleteCount()
          Get the number of files deleted during the script execution
 int getDownloadCount()
          Get the number of files downloaded during the script execution
 java.lang.Exception getLastException()
          What was the last exception?
 FTPReply getLastFTPReply()
          Get the last reply sent back by the FTP server.
 java.lang.String[] getServerMessageLog()
          Get the server message log for this script
 int getUploadCount()
          Get the number of files uploaded during the script execution
 boolean isForceScriptExit()
          Was the script forced to exit by an error?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptResult

public ScriptResult()
Method Detail

getLastFTPReply

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

Returns:
last FTP reply

getServerMessageLog

public java.lang.String[] getServerMessageLog()
Get the server message log for this script

Returns:

getLastException

public java.lang.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


Copyright © 2001-2006 Enterprise Distributed Technologies Ltd. All Rights Reserved.