Package org.apache.solr.handler.admin
Class ClusterStatus
- java.lang.Object
-
- org.apache.solr.handler.admin.ClusterStatus
-
public class ClusterStatus extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ClusterStatus.Health
Shard / collection health state.
-
Constructor Summary
Constructors Constructor Description ClusterStatus(org.apache.solr.common.cloud.ZkStateReader zkStateReader, org.apache.solr.common.cloud.ZkNodeProps props)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
crossCheckReplicaStateWithLiveNodes(List<String> liveNodes, org.apache.solr.common.util.NamedList<Object> collectionProps)
Walks the tree of collection status to verify that any replicas not reporting a "down" status is on a live node, if any replicas reporting their status as "active" but the node is not live is marked as "down"; used by CLUSTERSTATUS.void
getClusterStatus(org.apache.solr.common.util.NamedList<Object> results)
static Map<String,Object>
postProcessCollectionJSON(Map<String,Object> collection)
-
-
-
Method Detail
-
getClusterStatus
public void getClusterStatus(org.apache.solr.common.util.NamedList<Object> results) throws org.apache.zookeeper.KeeperException, InterruptedException
- Throws:
org.apache.zookeeper.KeeperException
InterruptedException
-
crossCheckReplicaStateWithLiveNodes
protected void crossCheckReplicaStateWithLiveNodes(List<String> liveNodes, org.apache.solr.common.util.NamedList<Object> collectionProps)
Walks the tree of collection status to verify that any replicas not reporting a "down" status is on a live node, if any replicas reporting their status as "active" but the node is not live is marked as "down"; used by CLUSTERSTATUS.- Parameters:
liveNodes
- List of currently live node names.collectionProps
- Map of collection status information pulled directly from ZooKeeper.
-
-