Class VisitorTypeEntry
java.lang.Object
org.frontcache.bots.VisitorTypeEntry
Wire/DTO view of one visitor type a node knows - a root (
bot, guest) or a type bots.conf
declares - for get-bots' visitorTypes (2.13.0) and the console's types table.
Flat, like BotRuleEntry: base is what the type behaves like wherever it is not named - the type
itself for a root - and hits the requests the rules whose verdict it is decided (dry-run rules decide
nothing and are not summed), a snapshot reset by a restart or a reload-bots. Unknown fields are ignored so
a console reads a later node's entry.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBase()the root this type behaves like where nothing names it - for a root, the root itselflonggetHits()getName()booleantrue for a root -botorguest.boolean@type <name> like <root> no-store: its requests never write an entryvoidvoidsetHits(long hits) voidvoidsetNoStore(boolean noStore) toString()
-
Constructor Details
-
VisitorTypeEntry
public VisitorTypeEntry() -
VisitorTypeEntry
-
-
Method Details
-
getName
-
setName
-
getBase
the root this type behaves like where nothing names it - for a root, the root itself -
setBase
-
isBuiltIn
public boolean isBuiltIn()true for a root -botorguest. Derived, so not on the wire -
isNoStore
public boolean isNoStore()@type <name> like <root> no-store: its requests never write an entry -
setNoStore
public void setNoStore(boolean noStore) -
getHits
public long getHits() -
setHits
public void setHits(long hits) -
toString
-