public interface ClusterStateProvider extends Closeable
Modifier and Type | Method and Description |
---|---|
void |
connect() |
String |
getAlias(String alias)
Given an alias, returns the collection name that this alias points to
|
Object |
getClusterProperty(String propertyName)
Obtain a cluster property, or null if it doesn't exist.
|
Object |
getClusterProperty(String propertyName,
String def)
Obtain a cluster property, or the default value if it doesn't exist.
|
String |
getCollectionName(String name)
Given a name, returns the collection name if an alias by that name exists, or
returns the name itself, if no alias exists.
|
ClusterState.CollectionRef |
getState(String collection)
Obtain the state of the collection (cluster status).
|
Set<String> |
liveNodes()
Obtain set of live_nodes for the cluster.
|
ClusterState.CollectionRef getState(String collection)
String getAlias(String alias)
String getCollectionName(String name)
Object getClusterProperty(String propertyName)
Object getClusterProperty(String propertyName, String def)
void connect()
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.