Package | Description |
---|---|
org.apache.solr.common.cloud |
Common Solr Cloud and ZooKeeper related classes reused on both clients & server.
|
Modifier and Type | Method and Description |
---|---|
Replica |
Slice.getLeader() |
Replica |
DocCollection.getLeader(String sliceName) |
Replica |
ClusterState.getLeader(String collection,
String sliceName)
Deprecated.
Use
DocCollection.getLeader(String) instead |
Replica |
ZkStateReader.getLeader(String collection,
String shard) |
Replica |
ZkStateReader.getLeaderRetry(String collection,
String shard)
Get shard leader properties, with retry if none exist.
|
Replica |
ZkStateReader.getLeaderRetry(String collection,
String shard,
int timeout)
Get shard leader properties, with retry if none exist.
|
Replica |
Slice.getReplica(String replicaName) |
Replica |
DocCollection.getReplica(String coreNodeName) |
Replica |
ClusterState.getReplica(String collection,
String coreNodeName)
Deprecated.
use
DocCollection.getReplica(String) instead |
Modifier and Type | Method and Description |
---|---|
List<Replica> |
DocCollection.getLeaderReplicas(String nodeName)
Get the list of all leaders hosted on the given node or
null if none. |
Collection<Replica> |
Slice.getReplicas()
Gets the list of replicas for this slice.
|
List<Replica> |
DocCollection.getReplicas() |
List<Replica> |
Slice.getReplicas(Predicate<Replica> pred)
Gets all replicas that match a predicate
|
List<Replica> |
DocCollection.getReplicas(String nodeName)
Get the list of replicas hosted on the given node or
null if none. |
Map<String,Replica> |
Slice.getReplicasCopy() |
Map<String,Replica> |
Slice.getReplicasMap()
Get the map of coreNodeName to replicas for this slice.
|
Iterator<Replica> |
Slice.iterator() |
Modifier and Type | Method and Description |
---|---|
List<Replica> |
Slice.getReplicas(Predicate<Replica> pred)
Gets all replicas that match a predicate
|
Constructor and Description |
---|
Slice(String name,
Map<String,Replica> replicas,
Map<String,Object> props) |
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.