public class RedisSentinelClientImpl extends Object implements RedisSentinel
RedisSentinel| Constructor and Description |
|---|
RedisSentinelClientImpl(Vertx vertx,
RedisOptions options) |
| Modifier and Type | Method and Description |
|---|---|
RedisSentinel |
ckquorum(String name,
Handler<AsyncResult<String>> handler)
Check if the current Sentinel configuration is able to reach the quorum needed to failover a master,
and the majority needed to authorize the failover.
|
void |
close(Handler<AsyncResult<Void>> handler)
Close the client - when it is fully closed the handler will be called.
|
RedisSentinel |
failover(String name,
Handler<AsyncResult<String>> handler)
Force a failover as if the master was not reachable, and without asking for agreement to other Sentinels
(however a new version of the configuration will be published so that the other Sentinels
will update their configurations)
|
RedisSentinel |
flushConfig(Handler<AsyncResult<Void>> handler)
Force Sentinel to rewrite its configuration on disk, including the current Sentinel state.
|
RedisSentinel |
getMasterAddrByName(String name,
Handler<AsyncResult<JsonArray>> handler)
Return the ip and port number of the master with that name.
|
RedisSentinel |
master(String name,
Handler<AsyncResult<JsonArray>> handler)
Show the state and info of the specified master
|
RedisSentinel |
masters(Handler<AsyncResult<JsonArray>> handler)
Show a list of monitored masters and their state
|
RedisSentinel |
reset(String pattern,
Handler<AsyncResult<Void>> handler)
Reset all the masters with matching name.
|
RedisSentinel |
sentinels(String name,
Handler<AsyncResult<JsonArray>> handler)
Show a list of sentinel instances for this master, and their state
|
RedisSentinel |
slaves(String name,
Handler<AsyncResult<JsonArray>> handler)
Show a list of slaves for this master, and their state
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, create, createpublic RedisSentinelClientImpl(Vertx vertx, RedisOptions options)
public void close(Handler<AsyncResult<Void>> handler)
RedisSentinelclose in interface RedisSentinelpublic RedisSentinel masters(Handler<AsyncResult<JsonArray>> handler)
RedisSentinelmasters in interface RedisSentinelhandler - Handler for the result of this callpublic RedisSentinel master(String name, Handler<AsyncResult<JsonArray>> handler)
RedisSentinelmaster in interface RedisSentinelname - master namehandler - Handler for the result of this callpublic RedisSentinel slaves(String name, Handler<AsyncResult<JsonArray>> handler)
RedisSentinelslaves in interface RedisSentinelname - master namehandler - Handler for the result of this callpublic RedisSentinel sentinels(String name, Handler<AsyncResult<JsonArray>> handler)
RedisSentinelsentinels in interface RedisSentinelname - master namehandler - Handler for the result of this callpublic RedisSentinel getMasterAddrByName(String name, Handler<AsyncResult<JsonArray>> handler)
RedisSentinelgetMasterAddrByName in interface RedisSentinelname - master namehandler - Handler for the result of this callpublic RedisSentinel reset(String pattern, Handler<AsyncResult<Void>> handler)
RedisSentinelreset in interface RedisSentinelpattern - pattern Stringhandler - Handler for the result of this callpublic RedisSentinel failover(String name, Handler<AsyncResult<String>> handler)
RedisSentinelfailover in interface RedisSentinelname - master namehandler - Handler for the result of this callpublic RedisSentinel ckquorum(String name, Handler<AsyncResult<String>> handler)
RedisSentinelckquorum in interface RedisSentinelname - master namehandler - Handler for the result of this callpublic RedisSentinel flushConfig(Handler<AsyncResult<Void>> handler)
RedisSentinelflushConfig in interface RedisSentinelhandler - Handler for the result of this callCopyright © 2020. All rights reserved.