@Override
        public void addFailure(Integer calculatedDistributor) {
            while (nodeFailures.size() <= calculatedDistributor) {
                nodeFailures.add(0);
            }
            nodeFailures.set(calculatedDistributor, nodeFailures.get(calculatedDistributor) + 1);
        }
Class that tracks a failure of a given type per node.
documentapi/src/main/java/com/yahoo/documentapi/messagebus/protocol/ContentPolicy.java