Class CrawlerStatsHelper.StatsKeyObject

java.lang.Object
org.codelibs.fess.helper.CrawlerStatsHelper.StatsKeyObject
Enclosing class:
CrawlerStatsHelper

public static class CrawlerStatsHelper.StatsKeyObject extends Object
Key object for statistics tracking that contains an identifier and optional URL. Used when tracking statistics for objects that don't have built-in URL extraction.
  • Constructor Details

    • StatsKeyObject

      public StatsKeyObject(String id)
      Creates a new statistics key object with the specified identifier.
      Parameters:
      id - the unique identifier for this object
  • Method Details

    • getId

      public String getId()
      Gets the unique identifier for this statistics key object.
      Returns:
      the identifier
    • setUrl

      public void setUrl(String url)
      Sets the URL associated with this statistics key object.
      Parameters:
      url - the URL to associate with this object
    • getUrl

      protected String getUrl()
      Gets the URL associated with this statistics key object.
      Returns:
      the URL if set, otherwise returns the identifier