Interface ReplicaPlacement
public interface ReplicaPlacement
Placement decision for a single
Replica. Note this placement decision is used as part of
a PlacementPlan, it does not directly lead to the plugin code getting a corresponding
Replica instance, nor does it require the plugin to provide a Shard instance (the
plugin code gets such instances for existing replicas and shards in the cluster but does not
create them directly for adding new replicas for new or existing shards).
Captures the SolrCollection, Shard (via the shard name), Node and
Replica.ReplicaType of a Replica to be created.
-
Method Summary
-
Method Details
-
getCollection
SolrCollection getCollection()- Returns:
- the
SolrCollectionfor which the replica should be created
-
getShardName
String getShardName() -
getNode
Node getNode()- Returns:
- the
Nodeon which the replica should be created
-
getReplicaType
Replica.ReplicaType getReplicaType()- Returns:
- the type of the replica to be created
-