|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.infinispan.distribution.ConsistentHashHelper
public class ConsistentHashHelper
A helper class that handles the construction of consistent hash instances based on configuration.
| Constructor Summary | |
|---|---|
ConsistentHashHelper()
|
|
| Method Summary | |
|---|---|
static ConsistentHash |
createConsistentHash(Class<? extends ConsistentHash> clazz,
List<Address> addresses)
Creates a new consistent hash instance based on the type specified, and populates the consistent hash with the collection of addresses passed in. |
static ConsistentHash |
createConsistentHash(Class<? extends ConsistentHash> clazz,
List<Address> addresses,
Address... moreAddresses)
Creates a new consistent hash instance based on the type specified, and populates the consistent hash with the collection of addresses passed in. |
static ConsistentHash |
createConsistentHash(Class<? extends ConsistentHash> clazz,
List<Address> addresses,
Collection<Address> moreAddresses)
Creates a new consistent hash instance based on the type specified, and populates the consistent hash with the collection of addresses passed in. |
static ConsistentHash |
createConsistentHash(Configuration c,
List<Address> addresses)
Creates a new consistent hash instance based on the user's configuration, and populates the consistent hash with the collection of addresses passed in. |
static ConsistentHash |
createConsistentHash(Configuration c,
List<Address> addresses,
Address... moreAddresses)
Creates a new consistent hash instance based on the user's configuration, and populates the consistent hash with the collection of addresses passed in. |
static ConsistentHash |
createConsistentHash(Configuration c,
List<Address> addresses,
Collection<Address> moreAddresses)
Creates a new consistent hash instance based on the user's configuration, and populates the consistent hash with the collection of addresses passed in. |
static ConsistentHash |
removeAddress(ConsistentHash ch,
Address toRemove,
Configuration c)
Returns a new consistent hash of the same type with the given address removed. |
static UnionConsistentHash |
removeAddressFromUnionConsistentHash(UnionConsistentHash uch,
Address toRemove,
Configuration c)
Creates a new UnionConsistentHash instance based on the old instance, removing the provided address from both target consistent hash instances in the union. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConsistentHashHelper()
| Method Detail |
|---|
public static ConsistentHash removeAddress(ConsistentHash ch,
Address toRemove,
Configuration c)
ch - consistent hash to start withtoRemove - address to removec - configuration
public static UnionConsistentHash removeAddressFromUnionConsistentHash(UnionConsistentHash uch,
Address toRemove,
Configuration c)
uch - union consistent hash instancetoRemove - address to removec - configuration
public static ConsistentHash createConsistentHash(Configuration c,
List<Address> addresses)
c - configurationaddresses - with which to populate the consistent hash
public static ConsistentHash createConsistentHash(Configuration c,
List<Address> addresses,
Address... moreAddresses)
c - configurationaddresses - with which to populate the consistent hashmoreAddresses - to add to the list of addresses
public static ConsistentHash createConsistentHash(Configuration c,
List<Address> addresses,
Collection<Address> moreAddresses)
c - configurationaddresses - with which to populate the consistent hashmoreAddresses - to add to the list of addresses
public static ConsistentHash createConsistentHash(Class<? extends ConsistentHash> clazz,
List<Address> addresses)
clazz - type of the consistent hash to createaddresses - with which to populate the consistent hash
public static ConsistentHash createConsistentHash(Class<? extends ConsistentHash> clazz,
List<Address> addresses,
Address... moreAddresses)
clazz - type of the consistent hash to createaddresses - with which to populate the consistent hashmoreAddresses - to add to the list of addresses
public static ConsistentHash createConsistentHash(Class<? extends ConsistentHash> clazz,
List<Address> addresses,
Collection<Address> moreAddresses)
clazz - type of the consistent hash to createaddresses - with which to populate the consistent hashmoreAddresses - to add to the list of addresses
|
Google Analytics | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||