Class NameNodeHAProxyFactory<T>
java.lang.Object
org.apache.hadoop.hdfs.server.namenode.ha.NameNodeHAProxyFactory<T>
- All Implemented Interfaces:
org.apache.hadoop.hdfs.server.namenode.ha.HAProxyFactory<T>
public class NameNodeHAProxyFactory<T>
extends Object
implements org.apache.hadoop.hdfs.server.namenode.ha.HAProxyFactory<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateProxy(org.apache.hadoop.conf.Configuration conf, InetSocketAddress nnAddr, Class<T> xface, org.apache.hadoop.security.UserGroupInformation ugi, boolean withRetries) createProxy(org.apache.hadoop.conf.Configuration conf, InetSocketAddress nnAddr, Class<T> xface, org.apache.hadoop.security.UserGroupInformation ugi, boolean withRetries, AtomicBoolean fallbackToSimpleAuth) voidsetAlignmentContext(org.apache.hadoop.ipc.AlignmentContext alignmentContext)
-
Constructor Details
-
NameNodeHAProxyFactory
public NameNodeHAProxyFactory()
-
-
Method Details
-
createProxy
public T createProxy(org.apache.hadoop.conf.Configuration conf, InetSocketAddress nnAddr, Class<T> xface, org.apache.hadoop.security.UserGroupInformation ugi, boolean withRetries, AtomicBoolean fallbackToSimpleAuth) throws IOException - Specified by:
createProxyin interfaceorg.apache.hadoop.hdfs.server.namenode.ha.HAProxyFactory<T>- Throws:
IOException
-
createProxy
public T createProxy(org.apache.hadoop.conf.Configuration conf, InetSocketAddress nnAddr, Class<T> xface, org.apache.hadoop.security.UserGroupInformation ugi, boolean withRetries) throws IOException - Specified by:
createProxyin interfaceorg.apache.hadoop.hdfs.server.namenode.ha.HAProxyFactory<T>- Throws:
IOException
-
setAlignmentContext
public void setAlignmentContext(org.apache.hadoop.ipc.AlignmentContext alignmentContext) - Specified by:
setAlignmentContextin interfaceorg.apache.hadoop.hdfs.server.namenode.ha.HAProxyFactory<T>
-