Enum Class CrawlerMode

java.lang.Object
java.lang.Enum<CrawlerMode>
com.norconex.crawler.core.session.CrawlerMode
All Implemented Interfaces:
Serializable, Comparable<CrawlerMode>, Constable

public enum CrawlerMode extends Enum<CrawlerMode>
Whether we are executing a full or incremental crawler run.
  • Enum Constant Details

    • FULL

      public static final CrawlerMode FULL
      Disregard any previous crawl and crawl as if it was the first time.
    • INCREMENTAL

      public static final CrawlerMode INCREMENTAL
      Crawl taking into account previously crawled documents and only commit those that have been added, removed, or modified.
  • Method Details

    • values

      public static CrawlerMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static CrawlerMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null