public class IPFailoverProxyProvider<T> extends AbstractNNFailoverProxyProvider<T>
AbstractNNFailoverProxyProvider.NNProxyInfo<T>
conf, factory, fallbackToSimpleAuth, LOG, ugi, xface
Constructor and Description |
---|
IPFailoverProxyProvider(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 the proxy,
|
AbstractNNFailoverProxyProvider.NNProxyInfo<T> |
getProxy() |
void |
performFailover(T currentProxy)
Nothing to do for IP failover
|
boolean |
useLogicalURI()
Logical URI is not used for IP failover.
|
createProxyIfNeeded, getFallbackToSimpleAuth, getInterface, getProxyAddresses, getRandomOrder, setFallbackToSimpleAuth
public AbstractNNFailoverProxyProvider.NNProxyInfo<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.