Package org.apache.hadoop.hbase.ipc
Class FailedServers
java.lang.Object
org.apache.hadoop.hbase.ipc.FailedServers
A class to manage a list of servers that failed recently.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate longprivate static final org.slf4j.Loggerprivate final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToFailedServers(Address address, Throwable throwable) Add an address to the list of the failed servers list.booleanisFailedServer(Address address) Check if the server should be considered as bad.
-
Field Details
-
failedServers
-
latestExpiry
-
recheckServersTimeout
-
LOG
-
-
Constructor Details
-
FailedServers
-
-
Method Details
-
addToFailedServers
Add an address to the list of the failed servers list. -
isFailedServer
Check if the server should be considered as bad. Clean the old entries of the list.- Returns:
- true if the server is in the failed servers list
-