ReplicaMapper

com.netflix.atlas.core.util.Shards.ReplicaMapper
class ReplicaMapper[T](groups: Array[List[Group[T]]])

Mapper for finding the instance that should receive data for an id or index of a file. There can be multiple groups with a given name and data will be replicated across all of the groups for that name.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def instancesForId(id: BigInteger): List[T]

Return the instances that should receive the data associated with id.

Return the instances that should receive the data associated with id.

Attributes

def instancesForIndex(i: Int): List[T]

Return the instances that should receive the data for the file with the specified index.

Return the instances that should receive the data for the file with the specified index.

Attributes