redis.clients.jedis
Class JedisClusterInfoCache

java.lang.Object
  extended by redis.clients.jedis.JedisClusterInfoCache

public class JedisClusterInfoCache
extends Object


Field Summary
static ClusterNodeInformationParser nodeInfoParser
           
 
Constructor Summary
JedisClusterInfoCache(org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig)
           
 
Method Summary
 void assignSlotsToNode(List<Integer> targetSlots, HostAndPort targetNode)
           
 void assignSlotToNode(int slot, HostAndPort targetNode)
           
 void discoverClusterNodesAndSlots(Jedis jedis)
           
 void discoverClusterSlots(Jedis jedis)
           
 JedisPool getNode(String nodeKey)
           
static String getNodeKey(Client client)
           
static String getNodeKey(HostAndPort hnp)
           
static String getNodeKey(Jedis jedis)
           
 Map<String,JedisPool> getNodes()
           
 JedisPool getSlotPool(int slot)
           
 void setNodeIfNotExist(HostAndPort node)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nodeInfoParser

public static final ClusterNodeInformationParser nodeInfoParser
Constructor Detail

JedisClusterInfoCache

public JedisClusterInfoCache(org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig)
Method Detail

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.