Interface BalancePlan
-
public interface BalancePlan
A fully specified plan or instructions for replica balancing to be applied to the cluster.Fully specified means the actual
Node
's on which to place replicas have been decided.Instances are created by plugin code using
BalancePlanFactory
. This interface obviously doesn't expose much but the underlying Solr side implementation has all that is needed (and will do at least one cast in order to execute the plan, likely then using some type of visitor pattern).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<Replica,Node>
getReplicaMovements()
BalanceRequest
getRequest()
-
-
-
Method Detail
-
getRequest
BalanceRequest getRequest()
- Returns:
- the
BalanceRequest
at the origin of thisBalancePlan
, as passed to theBalancePlanFactory
method that created this instance.
-
getReplicaMovements
Map<Replica,Node> getReplicaMovements()
- Returns:
- the map of
Replica
's to theReplicaPlacement
's that describe where the replica should be placed.
-
-