Package | Description |
---|---|
org.apache.hadoop.hdfs |
A distributed implementation of
FileSystem . |
org.apache.hadoop.hdfs.server.namenode.ha | |
org.apache.hadoop.io.retry |
A mechanism for selectively retrying methods that throw exceptions under certain circumstances.
|
Modifier and Type | Method and Description |
---|---|
static <T> FailoverProxyProvider<T> |
NameNodeProxies.createFailoverProxyProvider(Configuration conf,
Class<FailoverProxyProvider<T>> failoverProxyProviderClass,
Class<T> xface,
URI nameNodeUri)
Creates the Failover proxy provider instance
|
Modifier and Type | Method and Description |
---|---|
static <T> Class<FailoverProxyProvider<T>> |
NameNodeProxies.getFailoverProxyProviderClass(Configuration conf,
URI nameNodeUri,
Class<T> xface)
Gets the configured Failover proxy provider's class
|
Modifier and Type | Method and Description |
---|---|
static <T> FailoverProxyProvider<T> |
NameNodeProxies.createFailoverProxyProvider(Configuration conf,
Class<FailoverProxyProvider<T>> failoverProxyProviderClass,
Class<T> xface,
URI nameNodeUri)
Creates the Failover proxy provider instance
|
Modifier and Type | Class and Description |
---|---|
class |
ConfiguredFailoverProxyProvider<T>
A FailoverProxyProvider implementation which allows one to configure two URIs
to connect to during fail-over.
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultFailoverProxyProvider<T>
An implementation of
FailoverProxyProvider which does nothing in the
event of failover, and always returns the same proxy object. |
Modifier and Type | Method and Description |
---|---|
static <T> Object |
RetryProxy.create(Class<T> iface,
FailoverProxyProvider<T> proxyProvider,
Map<String,RetryPolicy> methodNameToPolicyMap,
RetryPolicy defaultPolicy)
Create a proxy for an interface of implementations of that interface using
the given
FailoverProxyProvider and the a set of retry policies
specified by method name. |
static <T> Object |
RetryProxy.create(Class<T> iface,
FailoverProxyProvider<T> proxyProvider,
RetryPolicy retryPolicy)
Create a proxy for an interface of implementations of that interface using
the given
FailoverProxyProvider and the same retry policy for each
method in the interface. |
Constructor and Description |
---|
LossyRetryInvocationHandler(int numToDrop,
FailoverProxyProvider<T> proxyProvider,
RetryPolicy retryPolicy) |
RetryInvocationHandler(FailoverProxyProvider<T> proxyProvider,
RetryPolicy retryPolicy) |
RetryInvocationHandler(FailoverProxyProvider<T> proxyProvider,
RetryPolicy defaultPolicy,
Map<String,RetryPolicy> methodNameToPolicyMap) |
Copyright © 2013 Apache Software Foundation. All rights reserved.