public class SolrClientNodeStateProvider extends Object implements NodeStateProvider, MapWriter
MapWriter.EntryWriter| Modifier and Type | Field and Description |
|---|---|
static SolrClientNodeStateProvider |
INST |
| Constructor and Description |
|---|
SolrClientNodeStateProvider(CloudSolrClient solrClient) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
getNodeValues(String node,
Collection<String> tags)
Get the value of each tag for a given node
|
Map<String,Map<String,List<ReplicaInfo>>> |
getReplicaInfo(String node,
Collection<String> keys)
Get the details of each replica in a node.
|
String |
toString() |
void |
writeMap(MapWriter.EntryWriter ew) |
public static SolrClientNodeStateProvider INST
public SolrClientNodeStateProvider(CloudSolrClient solrClient)
public void writeMap(MapWriter.EntryWriter ew) throws IOException
writeMap in interface MapWriterIOExceptionpublic Map<String,Object> getNodeValues(String node, Collection<String> tags)
NodeStateProvidergetNodeValues in interface NodeStateProvidernode - node nametags - tag namespublic Map<String,Map<String,List<ReplicaInfo>>> getReplicaInfo(String node, Collection<String> keys)
NodeStateProviderThe format is {collection:shard :[{replicadetails}]}.
getReplicaInfo in interface NodeStateProviderCopyright © 2000-2017 Apache Software Foundation. All Rights Reserved.