Interface ReplicaPlacement
-
public interface ReplicaPlacementPlacement decision for a singleReplica. Note this placement decision is used as part of aPlacementPlan, it does not directly lead to the plugin code getting a correspondingReplicainstance, nor does it require the plugin to provide aShardinstance (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),NodeandReplica.ReplicaTypeof a Replica to be created.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SolrCollectiongetCollection()NodegetNode()Replica.ReplicaTypegetReplicaType()StringgetShardName()
-
-
-
Method Detail
-
getCollection
SolrCollection getCollection()
- Returns:
- the
SolrCollectionfor which the replica should be created
-
getShardName
String getShardName()
-
getReplicaType
Replica.ReplicaType getReplicaType()
- Returns:
- the type of the replica to be created
-
-