Package org.redisson.api.redisnode
Interface RedisSentinel
-
- All Superinterfaces:
RedisNode
,RedisNodeAsync
,RedisSentinelAsync
- All Known Implementing Classes:
SentinelRedisNode
public interface RedisSentinel extends RedisNode, RedisSentinelAsync
Redis Sentinel node API interface- Author:
- Nikita Koksharov
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.redisson.api.redisnode.RedisNode
RedisNode.InfoSection
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
failover(String masterName)
Starts failover process for defined Redis masterMap<String,String>
getMaster(String masterName)
Returns map containing info regarding defined Redis master.RedisURI
getMasterAddr(String masterName)
Returns network address of defined Redis master.List<Map<String,String>>
getMasters()
Returns list of map containing info regarding Redis Master server monitored by current Redis Sentinel server.List<Map<String,String>>
getSentinels(String masterName)
Returns list of map containing info regarding Redis Sentinel server monitoring defined master.List<Map<String,String>>
getSlaves(String masterName)
Returns list of map containing info regarding Redis Slave server of defined master.-
Methods inherited from interface org.redisson.api.redisnode.RedisNode
getAddr, getConfig, getMemoryStatistics, info, ping, ping, setConfig, time
-
Methods inherited from interface org.redisson.api.redisnode.RedisNodeAsync
getConfigAsync, getMemoryStatisticsAsync, infoAsync, pingAsync, pingAsync, setConfigAsync, timeAsync
-
Methods inherited from interface org.redisson.api.redisnode.RedisSentinelAsync
failoverAsync, getMasterAddrAsync, getMasterAsync, getMastersAsync, getSentinelsAsync, getSlavesAsync
-
-
-
-
Method Detail
-
getMasterAddr
RedisURI getMasterAddr(String masterName)
Returns network address of defined Redis master.- Parameters:
masterName
- - name of master- Returns:
- network address
-
getSentinels
List<Map<String,String>> getSentinels(String masterName)
Returns list of map containing info regarding Redis Sentinel server monitoring defined master.- Parameters:
masterName
- - name of master- Returns:
- list of Redis Sentinels
-
getMasters
List<Map<String,String>> getMasters()
Returns list of map containing info regarding Redis Master server monitored by current Redis Sentinel server.- Returns:
- list of Redis Masters
-
getSlaves
List<Map<String,String>> getSlaves(String masterName)
Returns list of map containing info regarding Redis Slave server of defined master.- Parameters:
masterName
- - name of master- Returns:
- list of Redis Slaves
-
getMaster
Map<String,String> getMaster(String masterName)
Returns map containing info regarding defined Redis master.- Parameters:
masterName
- - name of master- Returns:
- map containing info
-
failover
void failover(String masterName)
Starts failover process for defined Redis master- Parameters:
masterName
- - name of master
-
-