java.io.Closeable, java.lang.AutoCloseable, org.apache.hadoop.io.retry.FailoverProxyProvider<T>public class RequestHedgingProxyProvider<T> extends ConfiguredFailoverProxyProvider<T>
AbstractNNFailoverProxyProvider.NNProxyInfo<T>| Modifier and Type | Field | Description |
|---|---|---|
static org.slf4j.Logger |
LOG |
proxiesconf, factory, fallbackToSimpleAuth, ugi, xface| Constructor | Description |
|---|---|
RequestHedgingProxyProvider(org.apache.hadoop.conf.Configuration conf,
java.net.URI uri,
java.lang.Class<T> xface,
HAProxyFactory<T> proxyFactory) |
| Modifier and Type | Method | 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 RequestHedgingProxyProvider(org.apache.hadoop.conf.Configuration conf,
java.net.URI uri,
java.lang.Class<T> xface,
HAProxyFactory<T> proxyFactory)
public 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–2025 Apache Software Foundation. All rights reserved.