public abstract class AbstractNNFailoverProxyProvider<T> extends Object implements org.apache.hadoop.io.retry.FailoverProxyProvider<T>
| Modifier and Type | Class and Description | 
|---|---|
| static class  | AbstractNNFailoverProxyProvider.NNProxyInfo<T>ProxyInfo to a NameNode. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected org.apache.hadoop.conf.Configuration | conf | 
| protected org.apache.hadoop.hdfs.server.namenode.ha.HAProxyFactory<T> | factory | 
| protected AtomicBoolean | fallbackToSimpleAuth | 
| protected static org.slf4j.Logger | LOG | 
| protected org.apache.hadoop.security.UserGroupInformation | ugi | 
| protected Class<T> | xface | 
| Modifier | Constructor and Description | 
|---|---|
| protected  | AbstractNNFailoverProxyProvider() | 
| protected  | AbstractNNFailoverProxyProvider(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 | 
|---|---|
| protected AbstractNNFailoverProxyProvider.NNProxyInfo<T> | createProxyIfNeeded(AbstractNNFailoverProxyProvider.NNProxyInfo<T> pi)Create a proxy if it has not been created yet. | 
| AtomicBoolean | getFallbackToSimpleAuth() | 
| Class<T> | getInterface() | 
| protected List<AbstractNNFailoverProxyProvider.NNProxyInfo<T>> | getProxyAddresses(URI uri,
                 String addressKey)Get list of configured NameNode proxy addresses. | 
| static boolean | getRandomOrder(org.apache.hadoop.conf.Configuration conf,
              URI nameNodeUri)Check whether random order is configured for failover proxy provider
 for the namenode/nameservice. | 
| void | setFallbackToSimpleAuth(AtomicBoolean fallbackToSimpleAuth)Set for tracking if a secure client falls back to simple auth. | 
| abstract boolean | useLogicalURI()Inquire whether logical HA URI is used for the implementation. | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected static final org.slf4j.Logger LOG
protected org.apache.hadoop.conf.Configuration conf
protected org.apache.hadoop.hdfs.server.namenode.ha.HAProxyFactory<T> factory
protected org.apache.hadoop.security.UserGroupInformation ugi
protected AtomicBoolean fallbackToSimpleAuth
public abstract boolean useLogicalURI()
public void setFallbackToSimpleAuth(AtomicBoolean fallbackToSimpleAuth)
fallbackToSimpleAuth - - set to true or false during this method to
   indicate if a secure client falls back to simple authpublic AtomicBoolean getFallbackToSimpleAuth()
public Class<T> getInterface()
getInterface in interface org.apache.hadoop.io.retry.FailoverProxyProvider<T>protected AbstractNNFailoverProxyProvider.NNProxyInfo<T> createProxyIfNeeded(AbstractNNFailoverProxyProvider.NNProxyInfo<T> pi)
protected List<AbstractNNFailoverProxyProvider.NNProxyInfo<T>> getProxyAddresses(URI uri, String addressKey)
public static boolean getRandomOrder(org.apache.hadoop.conf.Configuration conf,
                                     URI nameNodeUri)
conf - ConfigurationnameNodeUri - The URI of namenode/nameserviceCopyright © 2008–2023 Apache Software Foundation. All rights reserved.