Class Coverage


  • public class Coverage
    extends com.yahoo.container.handler.Coverage
    The coverage report for a result set.
    Author:
    Steinar Knutsen, baldersheim
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.yahoo.container.handler.Coverage

        com.yahoo.container.handler.Coverage.FullCoverageDefinition
    • Field Summary

      • Fields inherited from class com.yahoo.container.handler.Coverage

        active, DEGRADED_BY_ADAPTIVE_TIMEOUT, DEGRADED_BY_MATCH_PHASE, DEGRADED_BY_TIMEOUT, degradedReason, docs, fullReason, fullResultSets, nodes, resultSets, soonActive
    • Constructor Summary

      Constructors 
      Constructor Description
      Coverage​(long docs, long active)  
      Coverage​(long docs, long active, int nodes)  
      Coverage​(long docs, long active, int nodes, int resultSets)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Coverage setDegradedReason​(int degradedReason)
      Will set the reasons for degraded coverage as reported by vespa backend.
      Coverage setNodesTried​(int nodesTried)  
      Coverage setSoonActive​(long soonActive)
      Will set number of documents present in ideal state
      • Methods inherited from class com.yahoo.container.handler.Coverage

        getActive, getDocs, getFull, getFullResultSets, getNodes, getNodesTried, getResultPercentage, getResultSets, getSoonActive, isDegraded, isDegradedByAdapativeTimeout, isDegradedByMatchPhase, isDegradedByNonIdealState, isDegradedByTimeout, merge, toLoggingCoverage
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Coverage

        public Coverage​(long docs,
                        long active)
      • Coverage

        public Coverage​(long docs,
                        long active,
                        int nodes)
      • Coverage

        public Coverage​(long docs,
                        long active,
                        int nodes,
                        int resultSets)
    • Method Detail

      • setSoonActive

        @Beta
        public Coverage setSoonActive​(long soonActive)
        Will set number of documents present in ideal state
        Parameters:
        soonActive - Number of documents active in ideal state
        Returns:
        self for chaining
      • setDegradedReason

        public Coverage setDegradedReason​(int degradedReason)
        Will set the reasons for degraded coverage as reported by vespa backend.
        Parameters:
        degradedReason - Reason for degradation
        Returns:
        self for chaining
      • setNodesTried

        public Coverage setNodesTried​(int nodesTried)
        Overrides:
        setNodesTried in class com.yahoo.container.handler.Coverage