Class ClusterConfig

java.lang.Object
com.norconex.crawler.core.cluster.ClusterConfig

public class ClusterConfig extends Object
  • Field Details

    • DEFAULT_ADMIN_PORT

      public static final int DEFAULT_ADMIN_PORT
      Default port used to communicate via a node for some administrative crawler cluster tasks.
      See Also:
  • Constructor Details

    • ClusterConfig

      public ClusterConfig()
  • Method Details

    • getConnector

      public ClusterConnector getConnector()
      The connector to the cluster implementation used to run the crawler. Default is an MVStore file-backed connector with no external infrastructure. For clustered mode, set this to a HazelcastClusterConnector. For a pure in-memory non-persistent alternative, use MemoryClusterConnector.
    • isAdminDisabled

      public boolean isAdminDisabled()
      Disable launching the crawler administrative server endpoints.
    • getAdminPort

      public int getAdminPort()
      Port the crawler cluster listens to for administrative commands, on each nodes. Incremented to the next available port in case of conflicts. Default is 27295 (mnemonic: ‘CRAWL’ on a phone keypad).
    • isClustered

      public boolean isClustered()
      Whether the crawler should run in stand-alone or cluster mode. Default is standalone, optimized for performance, by eliminating or minimizing inter-node communication.
    • setConnector

      public ClusterConfig setConnector(ClusterConnector connector)
      The connector to the cluster implementation used to run the crawler. Default is an MVStore file-backed connector with no external infrastructure. For clustered mode, set this to a HazelcastClusterConnector. For a pure in-memory non-persistent alternative, use MemoryClusterConnector.
      Returns:
      this.
    • setAdminDisabled

      public ClusterConfig setAdminDisabled(boolean adminDisabled)
      Disable launching the crawler administrative server endpoints.
      Returns:
      this.
    • setAdminPort

      public ClusterConfig setAdminPort(int adminPort)
      Port the crawler cluster listens to for administrative commands, on each nodes. Incremented to the next available port in case of conflicts. Default is 27295 (mnemonic: ‘CRAWL’ on a phone keypad).
      Returns:
      this.
    • setClustered

      public ClusterConfig setClustered(boolean clustered)
      Whether the crawler should run in stand-alone or cluster mode. Default is standalone, optimized for performance, by eliminating or minimizing inter-node communication.
      Returns:
      this.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object