public class RequestHedgingProxyProvider<T> extends ConfiguredFailoverProxyProvider<T>
AbstractNNFailoverProxyProvider.NNProxyInfo<T>
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
LOG |
proxies
conf, 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, useLogicalURI
createProxyIfNeeded, getFallbackToSimpleAuth, getInterface, getProxyAddresses, getRandomOrder, setFallbackToSimpleAuth
public org.apache.hadoop.io.retry.FailoverProxyProvider.ProxyInfo<T> getProxy()
ConfiguredFailoverProxyProvider
getProxy
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 © 2018 Apache Software Foundation. All Rights Reserved.