public interface ClusterDataProvider extends Closeable
| Modifier and Type | Method and Description | 
|---|---|
| default void | close() | 
| 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. | 
Map<String,Object> getNodeValues(String node, Collection<String> tags)
node - node nametags - tag namesMap<String,Map<String,List<Policy.ReplicaInfo>>> getReplicaInfo(String node, Collection<String> keys)
the format is {collection:shard :[{replicadetails}]}
Collection<String> getNodes()
String getPolicyNameByCollection(String coll)
default void close()
            throws IOException
close in interface AutoCloseableclose in interface CloseableIOExceptionCopyright © 2000-2017 Apache Software Foundation. All Rights Reserved.