Class ClientHAProxyFactory<T>
java.lang.Object
org.apache.hadoop.hdfs.server.namenode.ha.ClientHAProxyFactory<T>
- All Implemented Interfaces:
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) Set the alignment context to be used when creating new proxies using this factory.
-
Constructor Details
-
ClientHAProxyFactory
public ClientHAProxyFactory()
-
-
Method Details
-
setAlignmentContext
public void setAlignmentContext(org.apache.hadoop.ipc.AlignmentContext alignmentContext) Description copied from interface:HAProxyFactorySet the alignment context to be used when creating new proxies using this factory. Not all implementations will use this alignment context.- Specified by:
setAlignmentContextin interfaceHAProxyFactory<T>
-
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 interfaceHAProxyFactory<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 interfaceHAProxyFactory<T>- Throws:
IOException
-