- All Implemented Interfaces:
- MonitorReport
public class RedisTester
extends Report
RedisTester connects to a Redis server and sends a request of "info" for
status check.
It provides a test method, testRedis() for the service. This method
throws exceptions if the internal error occurs. Otherwise it returns an
integer indicating the status of the MessageBus. If the return code
is not zero, the response will be stored in the last responseText.
Status Code Description
-1 TESTFAILED unexpected system errors
0 TESTOK MessageBus is OK
1 PROTOCOLERROR protocol error, probably wrong port
2 CMDFAILED MessageBus command failed
3 CHLNOTFOUND channel not found on server
4 CLIENTERROR client error
5 SERVERERROR MessageBus 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