java.io.Closeable, java.lang.AutoCloseable, org.apache.hadoop.io.retry.FailoverProxyProvider<T>InMemoryAliasMapFailoverProxyProvider, RequestHedgingProxyProviderpublic class ConfiguredFailoverProxyProvider<T> extends AbstractNNFailoverProxyProvider<T>
AbstractNNFailoverProxyProvider.NNProxyInfo<T>| Modifier and Type | Field | Description |
|---|---|---|
protected java.util.List<AbstractNNFailoverProxyProvider.NNProxyInfo<T>> |
proxies |
conf, factory, fallbackToSimpleAuth, LOG, ugi, xface| Constructor | Description |
|---|---|
ConfiguredFailoverProxyProvider(org.apache.hadoop.conf.Configuration conf,
java.net.URI uri,
java.lang.Class<T> xface,
HAProxyFactory<T> factory) |
|
ConfiguredFailoverProxyProvider(org.apache.hadoop.conf.Configuration conf,
java.net.URI uri,
java.lang.Class<T> xface,
HAProxyFactory<T> factory,
java.lang.String addressKey) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
Close all the proxy objects which have been opened over the lifetime of
this proxy provider.
|
org.apache.hadoop.io.retry.FailoverProxyProvider.ProxyInfo<T> |
getProxy() |
Lazily initialize the RPC proxy object.
|
void |
performFailover(T currentProxy) |
|
boolean |
useLogicalURI() |
Logical URI is required for this failover proxy provider.
|
createProxyIfNeeded, getFallbackToSimpleAuth, getInterface, getProxyAddresses, getRandomOrder, setFallbackToSimpleAuthprotected final java.util.List<AbstractNNFailoverProxyProvider.NNProxyInfo<T>> proxies
public ConfiguredFailoverProxyProvider(org.apache.hadoop.conf.Configuration conf,
java.net.URI uri,
java.lang.Class<T> xface,
HAProxyFactory<T> factory)
public ConfiguredFailoverProxyProvider(org.apache.hadoop.conf.Configuration conf,
java.net.URI uri,
java.lang.Class<T> xface,
HAProxyFactory<T> factory,
java.lang.String addressKey)
public org.apache.hadoop.io.retry.FailoverProxyProvider.ProxyInfo<T> getProxy()
public void performFailover(T currentProxy)
public void close()
throws java.io.IOException
java.io.IOExceptionpublic boolean useLogicalURI()
useLogicalURI in class AbstractNNFailoverProxyProvider<T>Copyright © 2008–2025 Apache Software Foundation. All rights reserved.