org.springframework.data.redis.core.types
Class RedisClientInfo

java.lang.Object
  extended by org.springframework.data.redis.core.types.RedisClientInfo

public class RedisClientInfo
extends Object

RedisClientInfo provides general and statistical information about client connections.

Since:
1.3

Nested Class Summary
static class RedisClientInfo.INFO
           
static class RedisClientInfo.RedisClientInfoBuilder
           
 
Constructor Summary
RedisClientInfo(Properties properties)
           
 
Method Summary
 boolean equals(Object obj)
           
 String get(RedisClientInfo.INFO info)
           
 String get(String key)
           
 String getAddressPort()
          Get address/port of the client.
 Long getAge()
          Get total duration of the connection in seconds.
 Long getBufferFreeSpace()
          Get the free space of the query buffer.
 Long getBufferLength()
          Get the query buffer length.
 Long getChannelSubscribtions()
          Get number of channel subscriptions.
 Long getDatabaseId()
          Get current database index.
 String getEvents()
          Get file descriptor events.
 String getFileDescriptor()
          Get file descriptor corresponding to the socket
 String getFlags()
          Get client flags.
 Long getIdle()
          Get idle time of the connection in seconds.
 String getLastCommand()
          Get last command played.
 Long getMultiCommandContext()
          Get the number of commands in a MULTI/EXEC context.
 String getName()
          Get the clients name.
 Long getOutputBufferLength()
          Get the output buffer length.
 Long getOutputBufferMemoryUsage()
          Get output buffer memory usage.
 Long getOutputListLength()
          Get number queued replies in output buffer.
 Long getPatternSubscrbtions()
          Get number of pattern subscriptions.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RedisClientInfo

public RedisClientInfo(Properties properties)
Method Detail

getAddressPort

public String getAddressPort()
Get address/port of the client.

Returns:

getFileDescriptor

public String getFileDescriptor()
Get file descriptor corresponding to the socket

Returns:

getName

public String getName()
Get the clients name.

Returns:

getAge

public Long getAge()
Get total duration of the connection in seconds.

Returns:

getIdle

public Long getIdle()
Get idle time of the connection in seconds.

Returns:

getFlags

public String getFlags()
Get client flags.

Returns:

getDatabaseId

public Long getDatabaseId()
Get current database index.

Returns:

getChannelSubscribtions

public Long getChannelSubscribtions()
Get number of channel subscriptions.

Returns:

getPatternSubscrbtions

public Long getPatternSubscrbtions()
Get number of pattern subscriptions.

Returns:

getMultiCommandContext

public Long getMultiCommandContext()
Get the number of commands in a MULTI/EXEC context.

Returns:

getBufferLength

public Long getBufferLength()
Get the query buffer length.

Returns:

getBufferFreeSpace

public Long getBufferFreeSpace()
Get the free space of the query buffer.

Returns:

getOutputBufferLength

public Long getOutputBufferLength()
Get the output buffer length.

Returns:

getOutputListLength

public Long getOutputListLength()
Get number queued replies in output buffer.

Returns:

getOutputBufferMemoryUsage

public Long getOutputBufferMemoryUsage()
Get output buffer memory usage.

Returns:

getEvents

public String getEvents()
Get file descriptor events.

Returns:

getLastCommand

public String getLastCommand()
Get last command played.

Returns:

get

public String get(RedisClientInfo.INFO info)
Parameters:
info - must not be null
Returns:
null if no entry found for requested RedisClientInfo.INFO.

get

public String get(String key)
Parameters:
key - must not be null or empty.
Returns:
null if no entry found for requested key.

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object