@Override
    public void emitMetrics(Metric metric) {
        int numStaleContainers;
        synchronized (monitor) {
            numStaleContainers = this.numStaleContainers;
        }
        metric.set(TOTAL_DEACTIVATED_CONTAINERS, numStaleContainers, null);
    }
A watchdog that monitors all deactivated {@link ActiveContainer} instances with the purpose of detecting stale containers.

@author bjorncs
jdisc_core/src/main/java/com/yahoo/jdisc/core/ContainerWatchdog.java