public class

ResourceAssignment

extends Object
java.lang.Object
   ↳ org.apache.helix.controller.stages.ResourceAssignment

Class Overview

Represents the assignments of replicas for an entire resource, keyed on partitions of the resource. Each partition has its replicas assigned to a node, and each replica is in a state.

Summary

Public Constructors
ResourceAssignment()
ResourceAssignment(Map<PartitionMap<StringString>> resourceMap)
Public Methods
void addReplicaMap(Partition partition, Map<StringString> replicaMap)
Map<StringString> getInstanceStateMap(Partition partition)
Map<PartitionMap<StringString>> getResourceMap()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ResourceAssignment ()

public ResourceAssignment (Map<PartitionMap<StringString>> resourceMap)

Public Methods

public void addReplicaMap (Partition partition, Map<StringString> replicaMap)

public Map<StringString> getInstanceStateMap (Partition partition)

public Map<PartitionMap<StringString>> getResourceMap ()