Package org.apache.solr.common.cloud
Class PerReplicaStatesFetcher
- java.lang.Object
-
- org.apache.solr.common.cloud.PerReplicaStatesFetcher
-
public class PerReplicaStatesFetcher extends Object
-
-
Constructor Summary
Constructors Constructor Description PerReplicaStatesFetcher()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.apache.solr.common.cloud.PerReplicaStates
fetch(String path, SolrZkClient zkClient, org.apache.solr.common.cloud.PerReplicaStates current)
Fetch the latestPerReplicaStates
.static org.apache.solr.common.cloud.DocCollection.PrsSupplier
getZkClientPrsSupplier(SolrZkClient zkClient, String collectionPath)
-
-
-
Method Detail
-
fetch
public static org.apache.solr.common.cloud.PerReplicaStates fetch(String path, SolrZkClient zkClient, org.apache.solr.common.cloud.PerReplicaStates current)
Fetch the latestPerReplicaStates
. It fetches data after checking theStat.getCversion()
of state.json. If this is not modified, the same object is returned
-
getZkClientPrsSupplier
public static org.apache.solr.common.cloud.DocCollection.PrsSupplier getZkClientPrsSupplier(SolrZkClient zkClient, String collectionPath)
-
-