public class RouterObserverReadProxyProvider<T> extends AbstractNNFailoverProxyProvider<T>
FailoverProxyProvider
implementation
to support automatic msync-ing when using routers.
This constructs a wrapper proxy around an internal one, and
injects msync calls when necessary via the InvocationHandler.AbstractNNFailoverProxyProvider.NNProxyInfo<T>
conf, factory, fallbackToSimpleAuth, ugi, xface
Constructor and Description |
---|
RouterObserverReadProxyProvider(org.apache.hadoop.conf.Configuration conf,
URI uri,
Class<T> xface,
org.apache.hadoop.hdfs.server.namenode.ha.HAProxyFactory<T> factory) |
RouterObserverReadProxyProvider(org.apache.hadoop.conf.Configuration conf,
URI uri,
Class<T> xface,
org.apache.hadoop.hdfs.server.namenode.ha.HAProxyFactory<T> factory,
AbstractNNFailoverProxyProvider<T> failoverProxy) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
org.apache.hadoop.ipc.AlignmentContext |
getAlignmentContext() |
org.apache.hadoop.io.retry.FailoverProxyProvider.ProxyInfo<T> |
getProxy() |
void |
performFailover(T currentProxy) |
boolean |
useLogicalURI()
Inquire whether logical HA URI is used for the implementation.
|
createProxyIfNeeded, getFallbackToSimpleAuth, getInterface, getProxyAddresses, getRandomOrder, setFallbackToSimpleAuth
public RouterObserverReadProxyProvider(org.apache.hadoop.conf.Configuration conf, URI uri, Class<T> xface, org.apache.hadoop.hdfs.server.namenode.ha.HAProxyFactory<T> factory)
public org.apache.hadoop.ipc.AlignmentContext getAlignmentContext()
public org.apache.hadoop.io.retry.FailoverProxyProvider.ProxyInfo<T> getProxy()
public void performFailover(T currentProxy)
public boolean useLogicalURI()
AbstractNNFailoverProxyProvider
useLogicalURI
in class AbstractNNFailoverProxyProvider<T>
public void close() throws IOException
IOException
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.