Skip navigation links
A B C D E G H L N O P R S T V 

A

add(T) - Method in interface org.ishugaliy.allgood.consistent.hash.ConsistentHash
Add node to the consistent hash
add(T) - Method in class org.ishugaliy.allgood.consistent.hash.HashRing
 
addAll(Collection<T>) - Method in interface org.ishugaliy.allgood.consistent.hash.ConsistentHash
Add all nodes to the consistent hash
addAll(Collection<T>) - Method in class org.ishugaliy.allgood.consistent.hash.HashRing
 

B

build() - Method in class org.ishugaliy.allgood.consistent.hash.HashRingBuilder
Build hash ring.

C

ConsistentHash<T extends Node> - Interface in org.ishugaliy.allgood.consistent.hash
Consistent Hash base interface
contains(T) - Method in interface org.ishugaliy.allgood.consistent.hash.ConsistentHash
Check if consistent hash contains node
contains(T) - Method in class org.ishugaliy.allgood.consistent.hash.HashRing
 

D

DefaultHasher - Enum in org.ishugaliy.allgood.consistent.hash.hasher
List of default hash functions.

E

equals(Object) - Method in class org.ishugaliy.allgood.consistent.hash.node.ServerNode
 
equals(Object) - Method in class org.ishugaliy.allgood.consistent.hash.node.SimpleNode
 
equals(Object) - Method in class org.ishugaliy.allgood.consistent.hash.partition.ReplicationPartition
 

G

Generated - Annotation Type in org.ishugaliy.allgood.consistent.hash.annotation
Used by Jacoco test coverage tool to exclude generated items from scan.
getDc() - Method in class org.ishugaliy.allgood.consistent.hash.node.ServerNode
 
getHasher() - Method in class org.ishugaliy.allgood.consistent.hash.HashRing
 
getIndex() - Method in class org.ishugaliy.allgood.consistent.hash.partition.ReplicationPartition
 
getIp() - Method in class org.ishugaliy.allgood.consistent.hash.node.ServerNode
 
getKey() - Method in interface org.ishugaliy.allgood.consistent.hash.node.Node
Node key, uniquely identifies node.
getKey() - Method in class org.ishugaliy.allgood.consistent.hash.node.ServerNode
 
getKey() - Method in class org.ishugaliy.allgood.consistent.hash.node.SimpleNode
 
getName() - Method in interface org.ishugaliy.allgood.consistent.hash.ConsistentHash
Return name of the consistent hash instance
getName() - Method in class org.ishugaliy.allgood.consistent.hash.HashRing
 
getNode() - Method in interface org.ishugaliy.allgood.consistent.hash.partition.Partition
 
getNode() - Method in class org.ishugaliy.allgood.consistent.hash.partition.ReplicationPartition
 
getNodes() - Method in interface org.ishugaliy.allgood.consistent.hash.ConsistentHash
Return list of all nodes that consistent hash contains
getNodes() - Method in class org.ishugaliy.allgood.consistent.hash.HashRing
 
getPartitionKey() - Method in interface org.ishugaliy.allgood.consistent.hash.partition.Partition
Return the partition key, used for slot calculation.
getPartitionKey() - Method in class org.ishugaliy.allgood.consistent.hash.partition.ReplicationPartition
 
getPartitionRate() - Method in class org.ishugaliy.allgood.consistent.hash.HashRing
 
getPort() - Method in class org.ishugaliy.allgood.consistent.hash.node.ServerNode
 
getSlot() - Method in interface org.ishugaliy.allgood.consistent.hash.partition.Partition
 
getSlot() - Method in class org.ishugaliy.allgood.consistent.hash.partition.ReplicationPartition
 

H

hash(String, int) - Method in enum org.ishugaliy.allgood.consistent.hash.hasher.DefaultHasher
 
hash(String, int) - Method in interface org.ishugaliy.allgood.consistent.hash.hasher.Hasher
Calculate hash of provided key with seed (salt)
hashCode() - Method in class org.ishugaliy.allgood.consistent.hash.node.ServerNode
 
hashCode() - Method in class org.ishugaliy.allgood.consistent.hash.node.SimpleNode
 
hashCode() - Method in class org.ishugaliy.allgood.consistent.hash.partition.ReplicationPartition
 
Hasher - Interface in org.ishugaliy.allgood.consistent.hash.hasher
Hash function base interface
hasher(Hasher) - Method in class org.ishugaliy.allgood.consistent.hash.HashRingBuilder
Set hash function implementation.
HashRing<T extends Node> - Class in org.ishugaliy.allgood.consistent.hash
Implementation of Consistent Hash Ring with Virtual Nodes (partitions).
HashRingBuilder<T extends Node> - Class in org.ishugaliy.allgood.consistent.hash
Implementation of builder pattern for HashRing
HashRingBuilder() - Constructor for class org.ishugaliy.allgood.consistent.hash.HashRingBuilder
 

L

locate(String) - Method in interface org.ishugaliy.allgood.consistent.hash.ConsistentHash
Find node which most matches the key
locate(String, int) - Method in interface org.ishugaliy.allgood.consistent.hash.ConsistentHash
Find nodes which most matches the key
locate(String) - Method in class org.ishugaliy.allgood.consistent.hash.HashRing
 
locate(String, int) - Method in class org.ishugaliy.allgood.consistent.hash.HashRing
 

N

name(String) - Method in class org.ishugaliy.allgood.consistent.hash.HashRingBuilder
Set name of the hash ring
newBuilder() - Static method in class org.ishugaliy.allgood.consistent.hash.HashRing
Create instance of HashRingBuilder
Node - Interface in org.ishugaliy.allgood.consistent.hash.node
Base interface for Consistent Hash nodes ConsistentHash
nodes(Collection<T>) - Method in class org.ishugaliy.allgood.consistent.hash.HashRingBuilder
Initialized hash ring with list of nodes

O

of(String) - Static method in class org.ishugaliy.allgood.consistent.hash.node.SimpleNode
Factory method to create instance of the class.
org.ishugaliy.allgood.consistent.hash - package org.ishugaliy.allgood.consistent.hash
 
org.ishugaliy.allgood.consistent.hash.annotation - package org.ishugaliy.allgood.consistent.hash.annotation
 
org.ishugaliy.allgood.consistent.hash.hasher - package org.ishugaliy.allgood.consistent.hash.hasher
 
org.ishugaliy.allgood.consistent.hash.node - package org.ishugaliy.allgood.consistent.hash.node
 
org.ishugaliy.allgood.consistent.hash.partition - package org.ishugaliy.allgood.consistent.hash.partition
 

P

Partition<T extends Node> - Interface in org.ishugaliy.allgood.consistent.hash.partition
Base interface of partitions to be used inside HashRing.
partitionRate(int) - Method in class org.ishugaliy.allgood.consistent.hash.HashRingBuilder
Set amount of Partition to be create per Node

R

remove(T) - Method in interface org.ishugaliy.allgood.consistent.hash.ConsistentHash
Remove node from the consistent hash
remove(T) - Method in class org.ishugaliy.allgood.consistent.hash.HashRing
 
ReplicationPartition<T extends Node> - Class in org.ishugaliy.allgood.consistent.hash.partition
Implementation of replicated partitions (virtual nodes).
ReplicationPartition(int, T) - Constructor for class org.ishugaliy.allgood.consistent.hash.partition.ReplicationPartition
 
ReplicationPartition(int, T, long) - Constructor for class org.ishugaliy.allgood.consistent.hash.partition.ReplicationPartition
 

S

ServerNode - Class in org.ishugaliy.allgood.consistent.hash.node
Represents server node
ServerNode(String, int) - Constructor for class org.ishugaliy.allgood.consistent.hash.node.ServerNode
 
ServerNode(String, String, int) - Constructor for class org.ishugaliy.allgood.consistent.hash.node.ServerNode
 
setSlot(long) - Method in interface org.ishugaliy.allgood.consistent.hash.partition.Partition
 
setSlot(long) - Method in class org.ishugaliy.allgood.consistent.hash.partition.ReplicationPartition
 
SimpleNode - Class in org.ishugaliy.allgood.consistent.hash.node
Simple implementation of Node.
size() - Method in interface org.ishugaliy.allgood.consistent.hash.ConsistentHash
Return number of nodes inside consistent hash
size() - Method in class org.ishugaliy.allgood.consistent.hash.HashRing
 

T

toString() - Method in class org.ishugaliy.allgood.consistent.hash.HashRing
 
toString() - Method in class org.ishugaliy.allgood.consistent.hash.node.ServerNode
 
toString() - Method in class org.ishugaliy.allgood.consistent.hash.node.SimpleNode
 
toString() - Method in class org.ishugaliy.allgood.consistent.hash.partition.ReplicationPartition
 

V

valueOf(String) - Static method in enum org.ishugaliy.allgood.consistent.hash.hasher.DefaultHasher
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.ishugaliy.allgood.consistent.hash.hasher.DefaultHasher
Returns an array containing the constants of this enum type, in the order they are declared.
A B C D E G H L N O P R S T V 
Skip navigation links