Package org.redisson.api.redisnode
Interface RedisSentinel
- All Superinterfaces:
RedisNode
,RedisNodeAsync
,RedisSentinelAsync
- All Known Implementing Classes:
SentinelRedisNode
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
Modifier and TypeMethodDescriptionvoid
Starts failover process for defined Redis masterReturns map containing info regarding defined Redis master.getMasterAddr
(String masterName) Returns network address of defined Redis master.Returns list of map containing info regarding Redis Master server monitored by current Redis Sentinel server.getSentinels
(String masterName) Returns list of map containing info regarding Redis Sentinel server monitoring defined master.Returns list of map containing info regarding Redis Slave server of defined master.Methods inherited from interface org.redisson.api.redisnode.RedisNode
bgRewriteAOF, bgSave, getAddr, getConfig, getLastSaveTime, getMemoryStatistics, info, ping, ping, save, scheduleBgSave, setConfig, size, time
Methods inherited from interface org.redisson.api.redisnode.RedisNodeAsync
bgRewriteAOFAsync, bgSaveAsync, getConfigAsync, getLastSaveTimeAsync, getMemoryStatisticsAsync, infoAsync, pingAsync, pingAsync, saveAsync, scheduleBgSaveAsync, setConfigAsync, sizeAsync, timeAsync
Methods inherited from interface org.redisson.api.redisnode.RedisSentinelAsync
failoverAsync, getMasterAddrAsync, getMasterAsync, getMastersAsync, getSentinelsAsync, getSlavesAsync
-
Method Details
-
getMasterAddr
Returns network address of defined Redis master.- Parameters:
masterName
- - name of master- Returns:
- network address
-
getSentinels
Returns list of map containing info regarding Redis Sentinel server monitoring defined master.- Parameters:
masterName
- - name of master- Returns:
- list of Redis Sentinels
-
getMasters
Returns list of map containing info regarding Redis Master server monitored by current Redis Sentinel server.- Returns:
- list of Redis Masters
-
getSlaves
Returns list of map containing info regarding Redis Slave server of defined master.- Parameters:
masterName
- - name of master- Returns:
- list of Redis Slaves
-
getMaster
Returns map containing info regarding defined Redis master.- Parameters:
masterName
- - name of master- Returns:
- map containing info
-
failover
Starts failover process for defined Redis master- Parameters:
masterName
- - name of master
-