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) |
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, setFallbackToSimpleAuth
protected final List<AbstractNNFailoverProxyProvider.NNProxyInfo<T>> proxies
public org.apache.hadoop.io.retry.FailoverProxyProvider.ProxyInfo<T> getProxy()
public void performFailover(T currentProxy)
public void close() throws IOException
IOException
public boolean useLogicalURI()
useLogicalURI
in class AbstractNNFailoverProxyProvider<T>
Copyright © 2018 Apache Software Foundation. All Rights Reserved.