Class WarmerPreflight
java.lang.Object
org.frontcache.warmer.WarmerPreflight
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetBytes()longlonglonglonglonglonglonglonglongvoidsetBytes(long bytes) voidsetCachedFresh(long cachedFresh) voidsetCachedSampled(long cachedSampled) voidsetDuplicates(long duplicates) voidsetEntries(long entries) voidvoidsetEtaSeconds(long etaSeconds) voidsetIgnoredLines(long ignoredLines) voidsetInvalid(long invalid) voidsetInvalidLines(List<WarmerError> invalidLines) voidsetKeyBaseWarning(String keyBaseWarning) voidsetLoopbackTarget(String loopbackTarget) voidsetOriginLatencyMs(long originLatencyMs) voidsetParams(WarmerRunParams params) voidsetRebased(long rebased) voidsetSampleKeys(List<String> sampleKeys) voidsetWarnings(List<String> warnings)
-
Constructor Details
-
WarmerPreflight
public WarmerPreflight()
-
-
Method Details
-
getParams
-
setParams
-
getLoopbackTarget
-
setLoopbackTarget
-
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
-
setInvalidLines
-
getDuplicates
public long getDuplicates() -
setDuplicates
public void setDuplicates(long duplicates) -
getRebased
public long getRebased() -
setRebased
public void setRebased(long rebased) -
getSampleKeys
-
setSampleKeys
-
getKeyBaseWarning
-
setKeyBaseWarning
-
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
-
setErrors
-
getWarnings
-
setWarnings
-