Package org.apache.solr.handler.admin
Class ClusterStatus
java.lang.Object
org.apache.solr.handler.admin.ClusterStatus
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumShard / collection health state. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionClusterStatus(org.apache.solr.common.cloud.ZkStateReader zkStateReader, org.apache.solr.common.params.SolrParams params) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidWalks 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.voidgetClusterStatus(org.apache.solr.common.util.NamedList<Object> results, SolrVersion solrVersion) postProcessCollectionJSON(Map<String, Object> collection)
-
Field Details
-
INCLUDE_ALL
- See Also:
-
LIVENODES_PROP
- See Also:
-
CLUSTER_PROP
- See Also:
-
ROLES_PROP
- See Also:
-
ALIASES_PROP
- See Also:
-
-
Constructor Details
-
ClusterStatus
public ClusterStatus(org.apache.solr.common.cloud.ZkStateReader zkStateReader, org.apache.solr.common.params.SolrParams params)
-
-
Method Details
-
getClusterStatus
public void getClusterStatus(org.apache.solr.common.util.NamedList<Object> results, SolrVersion solrVersion) throws org.apache.zookeeper.KeeperException, InterruptedException - Throws:
org.apache.zookeeper.KeeperExceptionInterruptedException
-
crossCheckReplicaStateWithLiveNodes
protected void crossCheckReplicaStateWithLiveNodes(List<String> liveNodes, Map<String, 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.
-
postProcessCollectionJSON
-