public class ConfiguredFailoverProxyProvider<T> extends Object implements org.apache.hadoop.io.retry.FailoverProxyProvider<T>
Constructor and Description |
---|
ConfiguredFailoverProxyProvider(org.apache.hadoop.conf.Configuration conf,
URI uri,
Class<T> xface) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close all the proxy objects which have been opened over the lifetime of
this proxy provider.
|
Class<T> |
getInterface() |
T |
getProxy()
Lazily initialize the RPC proxy object.
|
void |
performFailover(T currentProxy) |
public ConfiguredFailoverProxyProvider(org.apache.hadoop.conf.Configuration conf, URI uri, Class<T> xface)
public Class<T> getInterface()
getInterface
in interface org.apache.hadoop.io.retry.FailoverProxyProvider<T>
public T getProxy()
getProxy
in interface org.apache.hadoop.io.retry.FailoverProxyProvider<T>
public void performFailover(T currentProxy)
performFailover
in interface org.apache.hadoop.io.retry.FailoverProxyProvider<T>
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2014 Apache Software Foundation. All Rights Reserved.