K - The key type of subcluster mapping info queried from Router.V - The value type of subcluster mapping info queried from Router.OrderedResolverAvailableSpaceResolver, LocalResolverpublic abstract class RouterResolver<K,V> extends java.lang.Object implements OrderedResolver
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
MIN_UPDATE_PERIOD_KEY |
Configuration key to set the minimum time to update subcluster info.
|
| Constructor | Description |
|---|---|
RouterResolver(org.apache.hadoop.conf.Configuration conf,
Router routerService) |
| Modifier and Type | Method | Description |
|---|---|---|
protected abstract java.lang.String |
chooseFirstNamespace(java.lang.String path,
PathLocation loc) |
Choose the first namespace from queried subcluster mapping info.
|
java.lang.String |
getFirstNamespace(java.lang.String path,
PathLocation loc) |
Get the first namespace based on this resolver approach.
|
protected MembershipStore |
getMembershipStore() |
Get the Membership store.
|
protected RouterRpcServer |
getRpcServer() |
Get the Router RPC server.
|
protected abstract java.util.Map<K,V> |
getSubclusterInfo(MembershipStore membershipStore) |
The implementation for getting desired subcluster mapping info.
|
protected java.util.Map<K,V> |
getSubclusterMapping() |
Get subcluster mapping info.
|
public static final java.lang.String MIN_UPDATE_PERIOD_KEY
public RouterResolver(org.apache.hadoop.conf.Configuration conf,
Router routerService)
public java.lang.String getFirstNamespace(java.lang.String path,
PathLocation loc)
OrderedResolvergetFirstNamespace in interface OrderedResolverpath - Path to check.loc - Federated location with multiple destinations.protected abstract java.util.Map<K,V> getSubclusterInfo(MembershipStore membershipStore)
membershipStore - Membership store the resolver queried from.protected abstract java.lang.String chooseFirstNamespace(java.lang.String path,
PathLocation loc)
path - Path to check.loc - Federated location with multiple destinations.protected RouterRpcServer getRpcServer()
protected MembershipStore getMembershipStore()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.