- All Implemented Interfaces:
- MonitorReport
public class FTPTester
extends Report
FTPTester tests an ftp server to see if it hangs or it is down
It provides a test method, testFTPD() for ftp servers. This method
throws exceptions if the internal error occurs. Otherwise it returns an
integer indicating the status of the ftp server. If the return code
is not zero, the response will be stored in the last responseText or
the one where failure occurs.
Status Code Description
-1 TESTFAILED unexpected system errors
0 TESTOK server is OK
1 PROTOCOLERROR protocol error, probably wrong port
2 CMDFAILED ftp command failed
3 FILENOTFOUND file not found on server
4 CLIENTERROR client error, such as permissin issues
5 SERVERERROR ftp server internal error
6 READFAILED failed to read from server
7 WRITEFAILED failed to write to server
8 CONNTIMEOUT connection timeout, probably server is busy
9 CONNREFUSED connection refused, probably server is down
- Author:
- yannanlu@yahoo.com