redis.clients.jedis
Class JedisClusterInfoCache
java.lang.Object
redis.clients.jedis.JedisClusterInfoCache
public class JedisClusterInfoCache
- extends Object
Constructor Summary |
JedisClusterInfoCache(org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
nodeInfoParser
public static final ClusterNodeInformationParser nodeInfoParser
JedisClusterInfoCache
public JedisClusterInfoCache(org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig)
discoverClusterNodesAndSlots
public void discoverClusterNodesAndSlots(Jedis jedis)
discoverClusterSlots
public void discoverClusterSlots(Jedis jedis)
setNodeIfNotExist
public void setNodeIfNotExist(HostAndPort node)
assignSlotToNode
public void assignSlotToNode(int slot,
HostAndPort targetNode)
assignSlotsToNode
public void assignSlotsToNode(List<Integer> targetSlots,
HostAndPort targetNode)
getNode
public JedisPool getNode(String nodeKey)
getSlotPool
public JedisPool getSlotPool(int slot)
getNodes
public Map<String,JedisPool> getNodes()
getNodeKey
public static String getNodeKey(HostAndPort hnp)
getNodeKey
public static String getNodeKey(Client client)
getNodeKey
public static String getNodeKey(Jedis jedis)
Copyright © 2014. All rights reserved.