org.apache.hadoop.hdfs.server.namenode.ha
Class AbstractNNFailoverProxyProvider<T>

java.lang.Object
  extended by org.apache.hadoop.hdfs.server.namenode.ha.AbstractNNFailoverProxyProvider<T>
All Implemented Interfaces:
Closeable, org.apache.hadoop.io.retry.FailoverProxyProvider<T>
Direct Known Subclasses:
ConfiguredFailoverProxyProvider, IPFailoverProxyProvider, WrappedFailoverProxyProvider

public abstract class AbstractNNFailoverProxyProvider<T>
extends Object
implements org.apache.hadoop.io.retry.FailoverProxyProvider<T>


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.hadoop.io.retry.FailoverProxyProvider
org.apache.hadoop.io.retry.FailoverProxyProvider.ProxyInfo<T>
 
Field Summary
protected  AtomicBoolean fallbackToSimpleAuth
           
 
Constructor Summary
AbstractNNFailoverProxyProvider()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.hadoop.io.retry.FailoverProxyProvider
getInterface, getProxy, performFailover
 
Methods inherited from interface java.io.Closeable
close
 

Field Detail

fallbackToSimpleAuth

protected AtomicBoolean fallbackToSimpleAuth
Constructor Detail

AbstractNNFailoverProxyProvider

public AbstractNNFailoverProxyProvider()
Method Detail

useLogicalURI

public abstract boolean useLogicalURI()
Inquire whether logical HA URI is used for the implementation. If it is used, a special token handling may be needed to make sure a token acquired from a node in the HA pair can be used against the other node.

Returns:
true if logical HA URI is used. false, if not used.

setFallbackToSimpleAuth

public void setFallbackToSimpleAuth(AtomicBoolean fallbackToSimpleAuth)
Set for tracking if a secure client falls back to simple auth. This method is synchronized only to stifle a Findbugs warning.

Parameters:
fallbackToSimpleAuth - - set to true or false during this method to indicate if a secure client falls back to simple auth


Copyright © 2014 Apache Software Foundation. All Rights Reserved.