public interface RedisSentinelCommands
Modifier and Type | Method and Description |
---|---|
void |
failover(NamedNode master)
Force a failover as if the master was not reachable.
|
Collection<RedisServer> |
masters()
Get a
Collection of monitored masters and their state. |
void |
monitor(RedisServer master)
Tell sentinel to start monitoring a new master with the specified
RedisNode.getName() ,
RedisNode.getHost() , RedisNode.getPort() , and RedisServer.getQuorum() . |
void |
remove(NamedNode master)
Removes given master.
|
Collection<RedisServer> |
slaves(NamedNode master)
Show list of slaves for given master.
|
void failover(NamedNode master)
master
- must not be null.Collection<RedisServer> masters()
Collection
of monitored masters and their state.RedisServer
s. Never null.Collection<RedisServer> slaves(NamedNode master)
master
- must not be null.RedisServer
s. Never null.void remove(NamedNode master)
masters()
.master
- must not be null.void monitor(RedisServer master)
RedisNode.getName()
,
RedisNode.getHost()
, RedisNode.getPort()
, and RedisServer.getQuorum()
.master
- must not be null.Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.