public interface

ReplicatedRebalancerContext

implements RebalancerContext
org.apache.helix.controller.rebalancer.context.ReplicatedRebalancerContext
Known Indirect Subclasses

Class Overview

Methods specifying a rebalancer context that allows replicas. For instance, a rebalancer context with partitions may accept state model definitions that support multiple replicas per partition, and it's possible that the policy is that each live participant in the system should have a replica.

Summary

Public Methods
abstract boolean anyLiveParticipant()
Check if this resource should be assigned to any live participant
abstract int getReplicaCount()
Get the number of replicas that each resource subunit should have
[Expand]
Inherited Methods
From interface org.apache.helix.controller.rebalancer.context.RebalancerContext

Public Methods

public abstract boolean anyLiveParticipant ()

Check if this resource should be assigned to any live participant

Returns
  • true if any live participant expected, false otherwise

public abstract int getReplicaCount ()

Get the number of replicas that each resource subunit should have

Returns
  • replica count