Class WarmerPreflight

java.lang.Object
org.frontcache.warmer.WarmerPreflight

public class WarmerPreflight extends Object
What warmer-preflight reports: one read of the list, without calling the origin. The part that earns its place is the key-base check. A wrong key base is the one mistake that completes, reports every entry stored, and leaves visitors missing on all of them - so the keys entries 1-3 will be stored under are shown before the run starts, and the live index is sampled: if the cache holds entries and none of the first KEY_SAMPLE share the run's base, that is said, with the base they do share. A warning, not a refusal - an empty cache, or the first warm of a new hostname, are both legitimate. errors are what warmer-start would refuse on; warnings are not.
  • Constructor Details

    • WarmerPreflight

      public WarmerPreflight()
  • Method Details

    • getParams

      public WarmerRunParams getParams()
    • setParams

      public void setParams(WarmerRunParams params)
    • getLoopbackTarget

      public String getLoopbackTarget()
    • setLoopbackTarget

      public void setLoopbackTarget(String loopbackTarget)
    • getBytes

      public long getBytes()
    • setBytes

      public void setBytes(long bytes)
    • getEntries

      public long getEntries()
    • setEntries

      public void setEntries(long entries)
    • getIgnoredLines

      public long getIgnoredLines()
    • setIgnoredLines

      public void setIgnoredLines(long ignoredLines)
    • getInvalid

      public long getInvalid()
    • setInvalid

      public void setInvalid(long invalid)
    • getInvalidLines

      public List<WarmerError> getInvalidLines()
    • setInvalidLines

      public void setInvalidLines(List<WarmerError> invalidLines)
    • getDuplicates

      public long getDuplicates()
    • setDuplicates

      public void setDuplicates(long duplicates)
    • getRebased

      public long getRebased()
    • setRebased

      public void setRebased(long rebased)
    • getSampleKeys

      public List<String> getSampleKeys()
    • setSampleKeys

      public void setSampleKeys(List<String> sampleKeys)
    • getKeyBaseWarning

      public String getKeyBaseWarning()
    • setKeyBaseWarning

      public void setKeyBaseWarning(String keyBaseWarning)
    • getCachedSampled

      public long getCachedSampled()
    • setCachedSampled

      public void setCachedSampled(long cachedSampled)
    • getCachedFresh

      public long getCachedFresh()
    • setCachedFresh

      public void setCachedFresh(long cachedFresh)
    • getOriginLatencyMs

      public long getOriginLatencyMs()
    • setOriginLatencyMs

      public void setOriginLatencyMs(long originLatencyMs)
    • getEtaSeconds

      public long getEtaSeconds()
    • setEtaSeconds

      public void setEtaSeconds(long etaSeconds)
    • getErrors

      public List<String> getErrors()
    • setErrors

      public void setErrors(List<String> errors)
    • getWarnings

      public List<String> getWarnings()
    • setWarnings

      public void setWarnings(List<String> warnings)