public class DelegatingClusterStateProvider extends Object implements ClusterStateProvider
ClusterStateProvider| 限定符和类型 | 字段和说明 |
|---|---|
protected ClusterStateProvider |
delegate |
| 构造器和说明 |
|---|
DelegatingClusterStateProvider(ClusterStateProvider delegate) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
void |
connect() |
Map<String,String> |
getAliasProperties(String alias)
Return alias properties, or an empty map if the alias has no properties.
|
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.
|
String |
resolveSimpleAlias(String alias)
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 在接口中 ClusterStateProviderpublic Set<String> getLiveNodes()
ClusterStateProvidergetLiveNodes 在接口中 ClusterStateProviderpublic List<String> resolveAlias(String alias)
ClusterStateProviderresolveAlias 在接口中 ClusterStateProviderpublic Map<String,String> getAliasProperties(String alias)
ClusterStateProvidergetAliasProperties 在接口中 ClusterStateProviderpublic String resolveSimpleAlias(String alias) throws IllegalArgumentException
ClusterStateProviderresolveSimpleAlias 在接口中 ClusterStateProviderIllegalArgumentException - if an alias points to more than 1 collection, either directly or indirectly.public ClusterState getClusterState() throws IOException
ClusterStateProvidergetClusterState 在接口中 ClusterStateProviderIOExceptionpublic Map<String,Object> getClusterProperties()
ClusterStateProvidergetClusterProperties 在接口中 ClusterStateProviderpublic String getPolicyNameByCollection(String coll)
ClusterStateProviderpublic DocCollection getCollection(String name) throws IOException
getCollection 在接口中 ClusterStateProviderIOExceptionpublic void connect()
connect 在接口中 ClusterStateProviderpublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableIOExceptionCopyright © 2006–2022 The Apache Software Foundation. All rights reserved.