public class DelegatingClusterStateProvider extends Object implements ClusterStateProvider
ClusterStateProvider
Modifier and Type | Field and Description |
---|---|
protected ClusterStateProvider |
delegate |
Constructor and Description |
---|
DelegatingClusterStateProvider(ClusterStateProvider delegate) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
connect() |
Map<String,Object> |
getClusterProperties()
Obtain cluster properties.
|
ClusterState |
getClusterState()
Obtain the current cluster state.
|
DocCollection |
getCollection(String name) |
Set<String> |
getLiveNodes()
Obtain set of live_nodes for the cluster.
|
String |
getPolicyNameByCollection(String coll)
Get the collection-specific policy
|
ClusterState.CollectionRef |
getState(String collection)
Obtain the state of the collection (cluster status).
|
List<String> |
resolveAlias(String alias)
Given a collection alias, returns a list of collections it points to, or returns a singleton list of the input if
it's not an alias.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getClusterProperty, getClusterProperty
isClosed
protected ClusterStateProvider delegate
public DelegatingClusterStateProvider(ClusterStateProvider delegate)
public ClusterState.CollectionRef getState(String collection)
ClusterStateProvider
getState
in interface ClusterStateProvider
public Set<String> getLiveNodes()
ClusterStateProvider
getLiveNodes
in interface ClusterStateProvider
public List<String> resolveAlias(String alias)
ClusterStateProvider
resolveAlias
in interface ClusterStateProvider
public ClusterState getClusterState() throws IOException
ClusterStateProvider
getClusterState
in interface ClusterStateProvider
IOException
public Map<String,Object> getClusterProperties()
ClusterStateProvider
getClusterProperties
in interface ClusterStateProvider
public String getPolicyNameByCollection(String coll)
ClusterStateProvider
getPolicyNameByCollection
in interface ClusterStateProvider
public DocCollection getCollection(String name) throws IOException
getCollection
in interface ClusterStateProvider
IOException
public void connect()
connect
in interface ClusterStateProvider
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.