public interface RedisSentinel extends RedisNode, RedisSentinelAsync
RedisNode.InfoSection
Modifier and Type | Method and Description |
---|---|
void |
failover(String masterName)
Starts failover process for defined Redis master
|
Map<String,String> |
getMaster(String masterName)
Returns map containing info regarding defined Redis master.
|
InetSocketAddress |
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.
|
getAddr, getConfig, info, ping, ping, setConfig, time
failoverAsync, getMasterAddrAsync, getMasterAsync, getMastersAsync, getSentinelsAsync, getSlavesAsync
getConfigAsync, infoAsync, pingAsync, pingAsync, setConfigAsync, timeAsync
InetSocketAddress getMasterAddr(String masterName)
masterName
- - name of masterList<Map<String,String>> getSentinels(String masterName)
masterName
- - name of masterList<Map<String,String>> getMasters()
List<Map<String,String>> getSlaves(String masterName)
masterName
- - name of masterMap<String,String> getMaster(String masterName)
masterName
- - name of mastervoid failover(String masterName)
masterName
- - name of masterCopyright © 2014–2020 Redisson. All rights reserved.