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, wait
close
public SolrClientDataProvider(CloudSolrClient solrClient)
public String getPolicyNameByCollection(String coll)
ClusterDataProvider
getPolicyNameByCollection
in interface ClusterDataProvider
public Map<String,Object> getNodeValues(String node, Collection<String> tags)
ClusterDataProvider
getNodeValues
in interface ClusterDataProvider
node
- node nametags
- tag namespublic Map<String,Map<String,List<Policy.ReplicaInfo>>> getReplicaInfo(String node, Collection<String> keys)
ClusterDataProvider
the format is {collection:shard :[{replicadetails}]}
getReplicaInfo
in interface ClusterDataProvider
public Collection<String> getNodes()
getNodes
in interface ClusterDataProvider
public void writeMap(MapWriter.EntryWriter ew) throws IOException
writeMap
in interface MapWriter
IOException
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.