@Override public void updateLocator(List<MemcachedNode> nodes) { allNodes = nodes; setKetamaNodes(nodes); }
@Override public void updateLocator(List<MemcachedNode> nodes) { allNodes = nodes; setKetamaNodes(nodes); allNodes = nodes; }
/** * Create a new KetamaNodeLocator using specified nodes and the specifed hash algorithm and configuration. * * @param nodes The List of nodes to use in the Ketama consistent hash continuum * @param alg The hash algorithm to use when choosing a node in the Ketama consistent hash continuum * @param conf */ public KetamaNodeLocator(List<MemcachedNode> nodes, HashAlgorithm alg, KetamaNodeLocatorConfiguration conf) { super(); allNodes = nodes; hashAlg = alg; config = conf; setKetamaNodes(nodes); }
@Override public void updateLocator(List<MemcachedNode> nodes) { setKetamaNodes(nodes); }
@Override public void updateLocator(List<MemcachedNode> nodes) { setKetamaNodes(nodes); }
/** * Create a new KetamaNodeLocator using specified nodes and the specifed hash * algorithm and configuration. * * @param nodes The List of nodes to use in the Ketama consistent hash * continuum * @param alg The hash algorithm to use when choosing a node in the Ketama * consistent hash continuum * @param conf */ public KetamaNodeLocator(List<MemcachedNode> nodes, HashAlgorithm alg, KetamaNodeLocatorConfiguration conf) { super(); allNodes = nodes; hashAlg = alg; config = conf; setKetamaNodes(nodes); }
/** * Create a new KetamaNodeLocator using specified nodes and the specifed hash * algorithm and configuration. * * @param nodes The List of nodes to use in the Ketama consistent hash * continuum * @param alg The hash algorithm to use when choosing a node in the Ketama * consistent hash continuum * @param conf */ public KetamaNodeLocator(List<MemcachedNode> nodes, HashAlgorithm alg, KetamaNodeLocatorConfiguration conf) { super(); allNodes = nodes; hashAlg = alg; config = conf; setKetamaNodes(nodes); }
/** * Create a new KetamaNodeLocator with specific nodes, hash, node key format, * and weight * * @param nodes The List of nodes to use in the Ketama consistent hash * continuum * @param alg The hash algorithm to use when choosing a node in the Ketama * consistent hash continuum * @param weights node weights for ketama, a map from InetSocketAddress to * weight as Integer * @param configuration node locator configuration */ public KetamaNodeLocator(List<MemcachedNode> nodes, HashAlgorithm alg, Map<InetSocketAddress, Integer> nodeWeights, KetamaNodeLocatorConfiguration configuration) { super(); allNodes = nodes; hashAlg = alg; config = configuration; weights = nodeWeights; isWeightedKetama = !weights.isEmpty(); setKetamaNodes(nodes); }
/** * Create a new KetamaNodeLocator with specific nodes, hash, node key format, * and weight * * @param nodes The List of nodes to use in the Ketama consistent hash * continuum * @param alg The hash algorithm to use when choosing a node in the Ketama * consistent hash continuum * @param weights node weights for ketama, a map from InetSocketAddress to * weight as Integer * @param configuration node locator configuration */ public KetamaNodeLocator(List<MemcachedNode> nodes, HashAlgorithm alg, Map<InetSocketAddress, Integer> nodeWeights, KetamaNodeLocatorConfiguration configuration) { super(); allNodes = nodes; hashAlg = alg; config = configuration; weights = nodeWeights; isWeightedKetama = !weights.isEmpty(); setKetamaNodes(nodes); }