org.infinispan.client.hotrod.impl.consistenthash
Class ConsitentHashV1

java.lang.Object
  extended by org.infinispan.client.hotrod.impl.consistenthash.ConsitentHashV1
All Implemented Interfaces:
ConsistentHash

public class ConsitentHashV1
extends Object
implements ConsistentHash

// TODO: Document this

Since:
4.1
Author:
Mircea.Markus@jboss.com

Constructor Summary
ConsitentHashV1()
           
 
Method Summary
 InetSocketAddress getServer(byte[] key)
           
 void init(LinkedHashMap<InetSocketAddress,Integer> servers2HashCode, int numKeyOwners, int hashSpace)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsitentHashV1

public ConsitentHashV1()
Method Detail

init

public void init(LinkedHashMap<InetSocketAddress,Integer> servers2HashCode,
                 int numKeyOwners,
                 int hashSpace)
Specified by:
init in interface ConsistentHash

getServer

public InetSocketAddress getServer(byte[] key)
Specified by:
getServer in interface ConsistentHash

Google Analytics

Copyright © 2010 JBoss, a division of Red Hat. All Rights Reserved.