public class ConfiguredFailoverProxyProvider<T> extends AbstractNNFailoverProxyProvider<T>
Modifier and Type | Field and Description |
---|---|
protected org.apache.hadoop.conf.Configuration |
conf |
protected List<org.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverProxyProvider.AddressRpcProxyPair<T>> |
proxies |
protected Class<T> |
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.
|
Class<T> |
getInterface() |
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.
|
getFallbackToSimpleAuth, setFallbackToSimpleAuth
protected final org.apache.hadoop.conf.Configuration conf
protected final List<org.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverProxyProvider.AddressRpcProxyPair<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 © 2017 Apache Software Foundation. All Rights Reserved.