public class RequestHedgingProxyProvider<T> extends ConfiguredFailoverProxyProvider<T>
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
LOG |
conf, proxies, xface
Constructor and Description |
---|
RequestHedgingProxyProvider(org.apache.hadoop.conf.Configuration conf,
URI uri,
Class<T> xface) |
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.io.retry.FailoverProxyProvider.ProxyInfo<T> |
getProxy()
Lazily initialize the RPC proxy object.
|
void |
performFailover(T currentProxy) |
close, getInterface, useLogicalURI
public static final org.slf4j.Logger LOG
public RequestHedgingProxyProvider(org.apache.hadoop.conf.Configuration conf, URI uri, Class<T> xface)
public org.apache.hadoop.io.retry.FailoverProxyProvider.ProxyInfo<T> getProxy()
ConfiguredFailoverProxyProvider
getProxy
in interface org.apache.hadoop.io.retry.FailoverProxyProvider<T>
getProxy
in class ConfiguredFailoverProxyProvider<T>
public void performFailover(T currentProxy)
performFailover
in interface org.apache.hadoop.io.retry.FailoverProxyProvider<T>
performFailover
in class ConfiguredFailoverProxyProvider<T>
Copyright © 2017 Apache Software Foundation. All Rights Reserved.