public class ConfiguredFailoverProxyProvider<T> extends AbstractNNFailoverProxyProvider<T>
AbstractNNFailoverProxyProvider.NNProxyInfo<T>| Modifier and Type | Field and Description | 
|---|---|
| protected List<AbstractNNFailoverProxyProvider.NNProxyInfo<T>> | proxies | 
conf, factory, fallbackToSimpleAuth, LOG, ugi, xface| Constructor and Description | 
|---|
| ConfiguredFailoverProxyProvider(org.apache.hadoop.conf.Configuration conf,
                               URI uri,
                               Class<T> xface,
                               org.apache.hadoop.hdfs.server.namenode.ha.HAProxyFactory<T> factory) | 
| ConfiguredFailoverProxyProvider(org.apache.hadoop.conf.Configuration conf,
                               URI uri,
                               Class<T> xface,
                               org.apache.hadoop.hdfs.server.namenode.ha.HAProxyFactory<T> factory,
                               String addressKey) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | close()Close all the proxy objects which have been opened over the lifetime of
 this proxy provider. | 
| org.apache.hadoop.io.retry.FailoverProxyProvider.ProxyInfo<T> | getProxy()Lazily initialize the RPC proxy object. | 
| void | performFailover(T currentProxy) | 
| boolean | useLogicalURI()Logical URI is required for this failover proxy provider. | 
createProxyIfNeeded, getFallbackToSimpleAuth, getInterface, getProxyAddresses, getRandomOrder, setFallbackToSimpleAuthprotected final List<AbstractNNFailoverProxyProvider.NNProxyInfo<T>> proxies
public ConfiguredFailoverProxyProvider(org.apache.hadoop.conf.Configuration conf,
                                       URI uri,
                                       Class<T> xface,
                                       org.apache.hadoop.hdfs.server.namenode.ha.HAProxyFactory<T> factory)
public org.apache.hadoop.io.retry.FailoverProxyProvider.ProxyInfo<T> getProxy()
public void performFailover(T currentProxy)
public void close()
           throws IOException
IOExceptionpublic boolean useLogicalURI()
useLogicalURI in class AbstractNNFailoverProxyProvider<T>Copyright © 2008–2023 Apache Software Foundation. All rights reserved.