Uses of Interface
org.apache.solr.cluster.Replica
-
Packages that use Replica Package Description org.apache.solr.cluster This package contains the interfaces giving access to cluster state, including nodes, collections and the structure of the collections (shards and replicas).org.apache.solr.cluster.placement This package contains interfaces visible by plugins (i.e.org.apache.solr.cluster.placement.impl Implementation classes (not visible to plugins, subject to change at any time) for the interfaces inorg.apache.solr.cluster.placement
and to make them work with the rest of Solr.org.apache.solr.cluster.placement.plugins Sample plugin implementations. -
-
Uses of Replica in org.apache.solr.cluster
Methods in org.apache.solr.cluster that return Replica Modifier and Type Method Description Replica
Shard. getLeader()
Replica
Shard. getReplica(String name)
Returns theReplica
of the given name for that shard, if such a replica exists.Methods in org.apache.solr.cluster that return types with arguments of type Replica Modifier and Type Method Description Iterator<Replica>
Shard. iterator()
Iterable<Replica>
Shard. replicas()
Allow foreach iteration on replicas such as:for (Replica r : shard.replicas()) {...}
. -
Uses of Replica in org.apache.solr.cluster.placement
Methods in org.apache.solr.cluster.placement that return types with arguments of type Replica Modifier and Type Method Description Map<Replica,Node>
BalancePlan. getReplicaMovements()
Set<Replica>
DeleteReplicasRequest. getReplicas()
Method parameters in org.apache.solr.cluster.placement with type arguments of type Replica Modifier and Type Method Description BalancePlan
BalancePlanFactory. createBalancePlan(BalanceRequest request, Map<Replica,Node> replicaMovements)
Creates aBalancePlan
for balancing replicas across the given nodes. -
Uses of Replica in org.apache.solr.cluster.placement.impl
Method parameters in org.apache.solr.cluster.placement.impl with type arguments of type Replica Modifier and Type Method Description BalancePlan
BalancePlanFactoryImpl. createBalancePlan(BalanceRequest request, Map<Replica,Node> replicaMovements)
static DeleteReplicasRequest
ModificationRequestImpl. createDeleteReplicasRequest(SolrCollection collection, Set<Replica> replicas)
Create a delete replicas request. -
Uses of Replica in org.apache.solr.cluster.placement.plugins
Methods in org.apache.solr.cluster.placement.plugins that return types with arguments of type Replica Modifier and Type Method Description Map<Replica,String>
OrderedNodePlacementPlugin.WeightedNode. canRemoveReplicas(Collection<Replica> replicas)
Determine if the given replicas can be removed from the node.Set<Replica>
OrderedNodePlacementPlugin.WeightedNode. getAllReplicasOnNode()
Set<Replica>
OrderedNodePlacementPlugin.WeightedNode. getReplicasForShardOnNode(Shard shard)
Methods in org.apache.solr.cluster.placement.plugins with parameters of type Replica Modifier and Type Method Description protected abstract boolean
OrderedNodePlacementPlugin.WeightedNode. addProjectedReplicaWeights(Replica replica)
Add the weights for the given replica to this nodeboolean
OrderedNodePlacementPlugin.WeightedNode. addReplica(Replica replica)
abstract int
OrderedNodePlacementPlugin.WeightedNode. calcRelevantWeightWithReplica(Replica replica)
boolean
OrderedNodePlacementPlugin.WeightedNode. canAddReplica(Replica replica)
void
OrderedNodePlacementPlugin.WeightedNode. initReplica(Replica replica)
protected void
OrderedNodePlacementPlugin.WeightedNode. initReplicaWeights(Replica replica)
protected abstract void
OrderedNodePlacementPlugin.WeightedNode. removeProjectedReplicaWeights(Replica replica)
void
OrderedNodePlacementPlugin.WeightedNode. removeReplica(Replica replica)
Method parameters in org.apache.solr.cluster.placement.plugins with type arguments of type Replica Modifier and Type Method Description Map<Replica,String>
OrderedNodePlacementPlugin.WeightedNode. canRemoveReplicas(Collection<Replica> replicas)
Determine if the given replicas can be removed from the node.
-