Class VisitorTypeEntry

java.lang.Object
org.frontcache.bots.VisitorTypeEntry

public class VisitorTypeEntry extends Object
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 Details

    • VisitorTypeEntry

      public VisitorTypeEntry()
    • VisitorTypeEntry

      public VisitorTypeEntry(String name, String base, boolean noStore, long hits)
  • Method Details

    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getBase

      public String getBase()
      the root this type behaves like where nothing names it - for a root, the root itself
    • setBase

      public void setBase(String base)
    • isBuiltIn

      public boolean isBuiltIn()
      true for a root - bot or guest. 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

      public String toString()
      Overrides:
      toString in class Object