Class ConnectionFailureDetector
- java.lang.Object
-
- org.apache.pinot.broker.failuredetector.BaseExponentialBackoffRetryFailureDetector
-
- org.apache.pinot.broker.failuredetector.ConnectionFailureDetector
-
- All Implemented Interfaces:
FailureDetector
@ThreadSafe public class ConnectionFailureDetector extends BaseExponentialBackoffRetryFailureDetector
TheConnectionFailureDetectormarks failed server (connection failure) from query response as unhealthy, and retries the unhealthy servers with exponential increasing delays.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.pinot.broker.failuredetector.BaseExponentialBackoffRetryFailureDetector
BaseExponentialBackoffRetryFailureDetector.RetryInfo
-
Nested classes/interfaces inherited from interface org.apache.pinot.broker.failuredetector.FailureDetector
FailureDetector.Listener
-
-
Field Summary
-
Fields inherited from class org.apache.pinot.broker.failuredetector.BaseExponentialBackoffRetryFailureDetector
_brokerMetrics, _listeners, _maxRetries, _name, _retryDelayFactor, _retryInfoDelayQueue, _retryInitialDelayNs, _retryThread, _running, _unhealthyServerRetryInfoMap
-
-
Constructor Summary
Constructors Constructor Description ConnectionFailureDetector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidnotifyQueryFinished(QueryResponse queryResponse)Notifies the failure detector that a query is finished (COMPLETED, FAILED or TIMED_OUT).voidnotifyQuerySubmitted(QueryResponse queryResponse)Notifies the failure detector that a query is submitted.-
Methods inherited from class org.apache.pinot.broker.failuredetector.BaseExponentialBackoffRetryFailureDetector
getUnhealthyServers, init, markServerHealthy, markServerUnhealthy, register, start, stop
-
-
-
-
Method Detail
-
notifyQuerySubmitted
public void notifyQuerySubmitted(QueryResponse queryResponse)
Description copied from interface:FailureDetectorNotifies the failure detector that a query is submitted.
-
notifyQueryFinished
public void notifyQueryFinished(QueryResponse queryResponse)
Description copied from interface:FailureDetectorNotifies the failure detector that a query is finished (COMPLETED, FAILED or TIMED_OUT).
-
-