Class RedisDebugConnection
java.lang.Object
com.blackrook.redis.RedisConnectionAbstract
com.blackrook.redis.RedisDebugConnection
- All Implemented Interfaces:
RedisDebugCommands, AutoCloseable
A connection to Redis that only provides debug calls to the server.
- Author:
- Matthew Tropiano
-
Field Summary
Fields inherited from class RedisConnectionAbstract
reader, writer -
Constructor Summary
ConstructorsConstructorDescriptionCreates an open connection to localhost, port 6379, the default Redis port.Creates an open connection.RedisDebugConnection(String host, int port) Creates an open connection.RedisDebugConnection(String host, int port, String password) Creates an open connection. -
Method Summary
Methods inherited from class RedisConnectionAbstract
close, disconnect, isBound, isClosed, isConnected, reconnect
-
Constructor Details
-
RedisDebugConnection
Creates an open connection to localhost, port 6379, the default Redis port.- Throws:
IOException- if an I/O error occurs when creating the socket.UnknownHostException- if the IP address of the host could not be determined.SecurityException- if a security manager exists and doesn't allow the connection to be made.
-
RedisDebugConnection
Creates an open connection.- Parameters:
host- the server hostname or address.port- the server connection port.- Throws:
IOException- if an I/O error occurs when creating the socket.UnknownHostException- if the IP address of the host could not be determined.SecurityException- if a security manager exists and doesn't allow the connection to be made.
-
RedisDebugConnection
Creates an open connection.- Parameters:
host- the server hostname or address.port- the server connection port.password- the server database password.- Throws:
IOException- if an I/O error occurs when creating the socket.UnknownHostException- if the IP address of the host could not be determined.SecurityException- if a security manager exists and doesn't allow the connection to be made.RedisException- if the password in the server information is incorrect.
-
RedisDebugConnection
Creates an open connection.- Parameters:
info- theRedisInfoclass detailing a connection.- Throws:
IOException- if an I/O error occurs when creating the socket.UnknownHostException- if the IP address of the host could not be determined.SecurityException- if a security manager exists and doesn't allow the connection to be made.RedisException- if the password in the server information is incorrect.
-
-
Method Details
-
debugObject
Description copied from interface:RedisDebugCommandsFrom http://redis.io/commands/debug-object:
Available since 1.0.0.
DEBUG OBJECTis a debugging command that should not be used by clients. Check theRedisServerCommands.object(String, String)command instead.- Specified by:
debugObjectin interfaceRedisDebugCommands- Parameters:
key- the value key.- Returns:
- the debug output.
-
debugSegfault
public void debugSegfault()Description copied from interface:RedisDebugCommandsFrom http://redis.io/commands/debug-segfault:
Available since 1.0.0.
DEBUG SEGFAULTperforms an invalid memory access that crashes Redis. It is used to simulate bugs during the development.- Specified by:
debugSegfaultin interfaceRedisDebugCommands
-