Interface ReplicaPlacement
-
public interface ReplicaPlacement
Placement 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 correspondingReplica
instance, nor does it require the plugin to provide aShard
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
andReplica.ReplicaType
of a Replica to be created.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SolrCollection
getCollection()
Node
getNode()
Replica.ReplicaType
getReplicaType()
String
getShardName()
-
-
-
Method Detail
-
getCollection
SolrCollection getCollection()
- Returns:
- the
SolrCollection
for which the replica should be created
-
getShardName
String getShardName()
-
getReplicaType
Replica.ReplicaType getReplicaType()
- Returns:
- the type of the replica to be created
-
-