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.
|
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, waitgetClusterProperty, getClusterPropertyprotected 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 ClusterState getClusterState() throws IOException
ClusterStateProvidergetClusterState in interface ClusterStateProviderIOExceptionpublic Map<String,Object> getClusterProperties()
ClusterStateProvidergetClusterProperties in interface ClusterStateProviderpublic String getPolicyNameByCollection(String coll)
ClusterStateProvidergetPolicyNameByCollection in interface ClusterStateProviderpublic void connect()
connect in interface ClusterStateProviderpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2000-2017 Apache Software Foundation. All Rights Reserved.