public class SolrClientDataProvider extends Object implements ClusterDataProvider, MapWriter
ClusterStateProvider accepting a SolrClientMapWriter.EntryWriter| Constructor and Description | 
|---|
SolrClientDataProvider(CloudSolrClient solrClient)  | 
| Modifier and Type | Method and Description | 
|---|---|
Collection<String> | 
getNodes()  | 
Map<String,Object> | 
getNodeValues(String node,
             Collection<String> tags)
Get the value of each tag for a given node 
 | 
String | 
getPolicyNameByCollection(String coll)
Get the collection-specific policy 
 | 
Map<String,Map<String,List<Policy.ReplicaInfo>>> | 
getReplicaInfo(String node,
              Collection<String> keys)
Get the details of each replica in a node. 
 | 
void | 
writeMap(MapWriter.EntryWriter ew)  | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclosepublic SolrClientDataProvider(CloudSolrClient solrClient)
public String getPolicyNameByCollection(String coll)
ClusterDataProvidergetPolicyNameByCollection in interface ClusterDataProviderpublic Map<String,Object> getNodeValues(String node, Collection<String> tags)
ClusterDataProvidergetNodeValues in interface ClusterDataProvidernode - node nametags - tag namespublic Map<String,Map<String,List<Policy.ReplicaInfo>>> getReplicaInfo(String node, Collection<String> keys)
ClusterDataProviderthe format is {collection:shard :[{replicadetails}]}
getReplicaInfo in interface ClusterDataProviderpublic Collection<String> getNodes()
getNodes in interface ClusterDataProviderpublic void writeMap(MapWriter.EntryWriter ew) throws IOException
writeMap in interface MapWriterIOExceptionCopyright © 2000-2017 Apache Software Foundation. All Rights Reserved.