Class WarmerCheckpoint
java.lang.Object
org.frontcache.warmer.WarmerCheckpoint
warmer/.state/run.json: where a run was, so it can be resumed after a restart.
Resume is offered only while the list still hashes the same - line N of a different file is a
different URL - and is never automatic. A node that warms itself on boot turns a crash loop into
a crash loop that also calls the origin.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonglonglongbooleanvoidsetCounters(WarmerCounters counters) voidsetListSha256(String listSha256) voidsetNextLine(long nextLine) voidsetParams(WarmerRunParams params) voidsetResumable(boolean resumable) voidsetSavedAt(long savedAt) voidsetStartedAt(long startedAt)
-
Constructor Details
-
WarmerCheckpoint
public WarmerCheckpoint()
-
-
Method Details
-
getParams
-
setParams
-
getListSha256
-
setListSha256
-
getNextLine
public long getNextLine() -
setNextLine
public void setNextLine(long nextLine) -
getCounters
-
setCounters
-
getStartedAt
public long getStartedAt() -
setStartedAt
public void setStartedAt(long startedAt) -
getSavedAt
public long getSavedAt() -
setSavedAt
public void setSavedAt(long savedAt) -
isResumable
public boolean isResumable() -
setResumable
public void setResumable(boolean resumable)
-