Class ContentPolicy.PerNodeCountingInstabilityChecker
java.lang.Object
com.yahoo.documentapi.messagebus.protocol.ContentPolicy.PerNodeCountingInstabilityChecker
- All Implemented Interfaces:
ContentPolicy.InstabilityChecker
- Enclosing class:
- ContentPolicy
public static class ContentPolicy.PerNodeCountingInstabilityChecker
extends Object
implements ContentPolicy.InstabilityChecker
Class that tracks a failure of a given type per node.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addFailure
(Integer calculatedDistributor) boolean
tooManyFailures
(int nodeIndex)
-
Constructor Details
-
PerNodeCountingInstabilityChecker
public PerNodeCountingInstabilityChecker(int failureLimit)
-
-
Method Details
-
tooManyFailures
public boolean tooManyFailures(int nodeIndex) - Specified by:
tooManyFailures
in interfaceContentPolicy.InstabilityChecker
-
addFailure
- Specified by:
addFailure
in interfaceContentPolicy.InstabilityChecker
-