public class SentinelConnectionManager extends MasterSlaveConnectionManager
codec, config, dnsMonitor, group, id, MAX_SLOT, resolverGroup, singleSlotRange, socketChannelClass
Constructor and Description |
---|
SentinelConnectionManager(SentinelServersConfig cfg,
Config config) |
Modifier and Type | Method and Description |
---|---|
protected RFuture<Void> |
addSlave(String ip,
String port,
String slaveAddr) |
protected void |
checkState(SentinelServersConfig cfg,
Iterator<RedisClient> iterator,
AtomicReference<Throwable> lastException) |
protected URI |
convert(String ip,
String port) |
protected MasterSlaveServersConfig |
create(BaseMasterSlaveServersConfig<?> cfg) |
protected MasterSlaveEntry |
createMasterSlaveEntry(MasterSlaveServersConfig config,
HashSet<ClusterSlotRange> slots) |
protected boolean |
isUseSameMaster(String slaveIp,
String slavePort,
String slaveMasterHost,
String slaveMasterPort) |
protected void |
onSentinelAdded(String msg,
MasterSlaveServersConfig c) |
protected void |
onSlaveAdded(URI addr,
String msg) |
protected void |
scheduleSentinelDNSCheck() |
void |
shutdown() |
protected void |
startDNSMonitoring(RedisClient masterHost) |
protected void |
updateState(SentinelServersConfig cfg,
RedisConnection connection,
Iterator<RedisClient> iterator) |
addEntry, calcSlot, changeMaster, closeNodeConnection, closeNodeConnections, connectionReadOp, connectionWriteOp, connectToNode, createClient, createClient, createClient, createRedisConfig, getCfg, getCodec, getCommandExecutor, getConfig, getConnectionEventsHub, getConnectionWatcher, getEntry, getEntry, getEntry, getEntrySet, getExecutor, getGroup, getId, getLastClusterNode, getShutdownLatch, getShutdownPromise, getSubscribeService, initSingleEntry, initTimer, isClusterMode, isShutdown, isShuttingDown, newTimeout, releaseRead, releaseWrite, removeEntry, shutdown, shutdownAsync, stopThreads
public SentinelConnectionManager(SentinelServersConfig cfg, Config config)
protected void startDNSMonitoring(RedisClient masterHost)
startDNSMonitoring
in class MasterSlaveConnectionManager
protected void scheduleSentinelDNSCheck()
protected void checkState(SentinelServersConfig cfg, Iterator<RedisClient> iterator, AtomicReference<Throwable> lastException)
protected void updateState(SentinelServersConfig cfg, RedisConnection connection, Iterator<RedisClient> iterator)
protected MasterSlaveEntry createMasterSlaveEntry(MasterSlaveServersConfig config, HashSet<ClusterSlotRange> slots)
createMasterSlaveEntry
in class MasterSlaveConnectionManager
protected void onSentinelAdded(String msg, MasterSlaveServersConfig c)
protected boolean isUseSameMaster(String slaveIp, String slavePort, String slaveMasterHost, String slaveMasterPort)
protected MasterSlaveServersConfig create(BaseMasterSlaveServersConfig<?> cfg)
create
in class MasterSlaveConnectionManager
public void shutdown()
shutdown
in interface ConnectionManager
shutdown
in class MasterSlaveConnectionManager
Copyright © 2014–2018 The Redisson Project. All rights reserved.