public class MasterSlaveTopologyProvider extends Object implements TopologyProvider
INFO REPLICATION
output. Slaves are listed as slaveN=...
entries.Modifier and Type | Field and Description |
---|---|
static Pattern |
IP_PATTERN |
static Pattern |
PORT_PATTERN |
static Pattern |
ROLE_PATTERN |
static Pattern |
SLAVE_PATTERN |
Constructor and Description |
---|
MasterSlaveTopologyProvider(StatefulRedisConnection<?,?> masterConnection,
RedisURI masterURI) |
Modifier and Type | Method and Description |
---|---|
List<RedisNodeDescription> |
getNodes()
Lookup the nodes within the topology.
|
protected List<RedisNodeDescription> |
getNodesFromInfo(String info) |
public static final Pattern ROLE_PATTERN
public static final Pattern SLAVE_PATTERN
public static final Pattern IP_PATTERN
public static final Pattern PORT_PATTERN
public MasterSlaveTopologyProvider(StatefulRedisConnection<?,?> masterConnection, RedisURI masterURI)
public List<RedisNodeDescription> getNodes()
TopologyProvider
getNodes
in interface TopologyProvider
RedisNodeDescription
instancesprotected List<RedisNodeDescription> getNodesFromInfo(String info)
Copyright © 2016. All rights reserved.