Class BotRuleEntry
java.lang.Object
org.frontcache.bots.BotRuleEntry
Wire/DTO view of a
BotRule - what the management API (get-bots) returns and the console
renders, alongside the flat botKeywords an older console knows how to read.
Deliberately flat and JSON-friendly: the live rule holds compiled patterns and a counter, none of
which travel. hits is a snapshot taken when the response was built; counters are
in-memory and reset when the node restarts or the rules are reloaded.-
Constructor Summary
ConstructorsConstructorDescriptionBotRuleEntry(String name, String condition, String clientType, boolean dryRun, long hits) -
Method Summary
Modifier and TypeMethodDescriptionlonggetHits()getName()booleanisDryRun()voidsetClientType(String clientType) voidsetCondition(String condition) voidsetDryRun(boolean dryRun) voidsetHits(long hits) voidtoString()
-
Constructor Details
-
BotRuleEntry
public BotRuleEntry() -
BotRuleEntry
-
-
Method Details
-
getName
-
setName
-
getCondition
-
setCondition
-
getClientType
-
setClientType
-
isDryRun
public boolean isDryRun() -
setDryRun
public void setDryRun(boolean dryRun) -
getHits
public long getHits() -
setHits
public void setHits(long hits) -
toString
-