Package org.redisson.api.redisnode
Interface RedisNode
-
- All Known Subinterfaces:
RedisClusterMaster
,RedisClusterNode
,RedisClusterSlave
,RedisMaster
,RedisSentinel
,RedisSlave
- All Known Implementing Classes:
RedisNode
,SentinelRedisNode
public interface RedisNode
Base Redis node API interface- Author:
- Nikita Koksharov
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
RedisNode.InfoSection
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InetSocketAddress
getAddr()
Get Redis node addressMap<String,String>
getConfig(String parameter)
Get value of Redis configuration parameter.Map<String,String>
getMemoryStatistics()
Returns Redis memory statisticsMap<String,String>
info(RedisNode.InfoSection section)
Returns information about Redis node.boolean
ping()
Ping Redis node.boolean
ping(long timeout, TimeUnit timeUnit)
Ping Redis node with specified timeout.void
setConfig(String parameter, String value)
Set value of Redis configuration parameter.Time
time()
Returns current Redis server time in seconds
-
-
-
Method Detail
-
getMemoryStatistics
Map<String,String> getMemoryStatistics()
Returns Redis memory statistics- Returns:
- statistics info map
-
time
Time time()
Returns current Redis server time in seconds- Returns:
- time in seconds
-
getAddr
InetSocketAddress getAddr()
Get Redis node address- Returns:
- node address
-
ping
boolean ping()
Ping Redis node. Default timeout is 1000 milliseconds- Returns:
true
if "PONG" reply received,false
otherwise
-
ping
boolean ping(long timeout, TimeUnit timeUnit)
Ping Redis node with specified timeout.- Parameters:
timeout
- - ping timeouttimeUnit
- - timeout unit- Returns:
true
if "PONG" reply received,false
otherwise
-
info
Map<String,String> info(RedisNode.InfoSection section)
Returns information about Redis node.- Parameters:
section
- - section of information- Returns:
- information
-
getConfig
Map<String,String> getConfig(String parameter)
Get value of Redis configuration parameter.- Parameters:
parameter
- - name of parameter- Returns:
- value of parameter
-
-