public class DelegatingClusterStateProvider extends Object implements ClusterStateProvider
ClusterStateProvider
Modifier and Type | Field and Description |
---|---|
protected ClusterStateProvider |
delegate
Deprecated.
|
Constructor and Description |
---|
DelegatingClusterStateProvider(ClusterStateProvider delegate)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Deprecated.
|
void |
connect()
Deprecated.
|
Map<String,String> |
getAliasProperties(String alias)
Deprecated.
Return alias properties, or an empty map if the alias has no properties.
|
Map<String,Object> |
getClusterProperties()
Deprecated.
Obtain cluster properties.
|
ClusterState |
getClusterState()
Deprecated.
Obtain the current cluster state.
|
DocCollection |
getCollection(String name)
Deprecated.
|
Set<String> |
getLiveNodes()
Deprecated.
Obtain set of live_nodes for the cluster.
|
String |
getPolicyNameByCollection(String coll)
Deprecated.
Get the collection-specific policy
|
ClusterState.CollectionRef |
getState(String collection)
Deprecated.
Obtain the state of the collection (cluster status).
|
List<String> |
resolveAlias(String alias)
Deprecated.
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.
|
String |
resolveSimpleAlias(String alias)
Deprecated.
Given a collection alias, return a single collection it points to, or the original name if it's not an
alias.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getClusterProperty, getClusterProperty, isRoutedAlias
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 Map<String,String> getAliasProperties(String alias)
ClusterStateProvider
getAliasProperties
in interface ClusterStateProvider
public String resolveSimpleAlias(String alias) throws IllegalArgumentException
ClusterStateProvider
resolveSimpleAlias
in interface ClusterStateProvider
IllegalArgumentException
- if an alias points to more than 1 collection, either directly or indirectly.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-2020 Apache Software Foundation. All Rights Reserved.