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, waitgetClusterProperty, getClusterProperty, isRoutedAliasisClosedprotected ClusterStateProvider delegate
public DelegatingClusterStateProvider(ClusterStateProvider delegate)
public ClusterState.CollectionRef getState(String collection)
ClusterStateProvidergetState in interface ClusterStateProviderpublic Set<String> getLiveNodes()
ClusterStateProvidergetLiveNodes in interface ClusterStateProviderpublic List<String> resolveAlias(String alias)
ClusterStateProviderresolveAlias in interface ClusterStateProviderpublic Map<String,String> getAliasProperties(String alias)
ClusterStateProvidergetAliasProperties in interface ClusterStateProviderpublic String resolveSimpleAlias(String alias) throws IllegalArgumentException
ClusterStateProviderresolveSimpleAlias in interface ClusterStateProviderIllegalArgumentException - if an alias points to more than 1 collection, either directly or indirectly.public ClusterState getClusterState() throws IOException
ClusterStateProvidergetClusterState in interface ClusterStateProviderIOExceptionpublic Map<String,Object> getClusterProperties()
ClusterStateProvidergetClusterProperties in interface ClusterStateProviderpublic String getPolicyNameByCollection(String coll)
ClusterStateProvidergetPolicyNameByCollection in interface ClusterStateProviderpublic DocCollection getCollection(String name) throws IOException
getCollection in interface ClusterStateProviderIOExceptionpublic void connect()
connect in interface ClusterStateProviderpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.