@InterfaceAudience.Private public class FailedServers extends Object
Modifier and Type | Field and Description |
---|---|
private Map<String,Long> |
failedServers |
private long |
latestExpiry |
private static org.slf4j.Logger |
LOG |
private int |
recheckServersTimeout |
Constructor and Description |
---|
FailedServers(org.apache.hadoop.conf.Configuration conf) |
Modifier and Type | Method and Description |
---|---|
void |
addToFailedServers(InetSocketAddress address,
Throwable throwable)
Add an address to the list of the failed servers list.
|
boolean |
isFailedServer(InetSocketAddress address)
Check if the server should be considered as bad.
|
private final Map<String,Long> failedServers
private long latestExpiry
private final int recheckServersTimeout
private static final org.slf4j.Logger LOG
public FailedServers(org.apache.hadoop.conf.Configuration conf)
public void addToFailedServers(InetSocketAddress address, Throwable throwable)
public boolean isFailedServer(InetSocketAddress address)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.