Class WarmerConfig
java.lang.Object
org.frontcache.warmer.WarmerConfig
The
front-cache.warmer.* keys of frontcache.properties, read once per call site.
Each run's own parameters (list, mode, key base, client type, delay, concurrency) are NOT here -
they come from the Run form, change from run to run, and are recorded in the checkpoint and the run
summary instead. See docs/cache-warmer-proposal.md section 11.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final StringNames a bot, to match the default client type - so what the origin and its logs see agrees with what the cache stores the entry for.static final Stringstatic final Stringstatic final intNo configuration raises concurrency above this: 32 loopback workers is already a lot of origin.static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Method Summary
Modifier and TypeMethodDescriptionstatic WarmerConfigcurrent()The node's current settings.intlonglongintlonglongintbooleanboolean
-
Field Details
-
ENABLED
- See Also:
-
LIST_WRITE
- See Also:
-
KEY_BASE
- See Also:
-
LOOPBACK_URL
- See Also:
-
DEFAULT_DELAY_MS
- See Also:
-
MAX_CONCURRENCY
- See Also:
-
REQUEST_TIMEOUT_MS
- See Also:
-
AUTO_PAUSE_AFTER_FAILURES
- See Also:
-
USER_AGENT
- See Also:
-
EDIT_MAX_BYTES
- See Also:
-
MAX_LIST_BYTES
- See Also:
-
MAX_LIST_ENTRIES
- See Also:
-
HARD_MAX_CONCURRENCY
public static final int HARD_MAX_CONCURRENCYNo configuration raises concurrency above this: 32 loopback workers is already a lot of origin.- See Also:
-
DEFAULT_USER_AGENT
Names a bot, to match the default client type - so what the origin and its logs see agrees with what the cache stores the entry for. The client type itself is still set explicitly on the warm request rather than classified from this string, so no bots.conf rule can turn a bot run into a guest run.- See Also:
-
-
Method Details
-
current
The node's current settings. -
isEnabled
public boolean isEnabled() -
isListWrite
public boolean isListWrite() -
getKeyBase
-
getLoopbackUrl
-
getDefaultDelayMs
public long getDefaultDelayMs() -
getMaxConcurrency
public int getMaxConcurrency() -
getRequestTimeoutMs
public int getRequestTimeoutMs() -
getAutoPauseAfterFailures
public int getAutoPauseAfterFailures() -
getUserAgent
-
getEditMaxBytes
public long getEditMaxBytes() -
getMaxListBytes
public long getMaxListBytes() -
getMaxListEntries
public long getMaxListEntries() -
getPublicDomain
-