public class RequestHedgingProxyProvider<T> extends ConfiguredFailoverProxyProvider<T>
AbstractNNFailoverProxyProvider.NNProxyInfo<T>| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOG |
proxiesconf, factory, fallbackToSimpleAuth, ugi, xface| Constructor and Description |
|---|
RequestHedgingProxyProvider(org.apache.hadoop.conf.Configuration conf,
URI uri,
Class<T> xface,
org.apache.hadoop.hdfs.server.namenode.ha.HAProxyFactory<T> proxyFactory) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.io.retry.FailoverProxyProvider.ProxyInfo<T> |
getProxy()
Lazily initialize the RPC proxy object.
|
void |
performFailover(T currentProxy) |
close, useLogicalURIcreateProxyIfNeeded, getFallbackToSimpleAuth, getInterface, getProxyAddresses, getRandomOrder, setFallbackToSimpleAuthpublic org.apache.hadoop.io.retry.FailoverProxyProvider.ProxyInfo<T> getProxy()
ConfiguredFailoverProxyProvidergetProxy in interface org.apache.hadoop.io.retry.FailoverProxyProvider<T>getProxy in class ConfiguredFailoverProxyProvider<T>public void performFailover(T currentProxy)
performFailover in interface org.apache.hadoop.io.retry.FailoverProxyProvider<T>performFailover in class ConfiguredFailoverProxyProvider<T>Copyright © 2008–2023 Apache Software Foundation. All rights reserved.