Class ClusterAdminServer

java.lang.Object
com.norconex.crawler.core.cluster.admin.ClusterAdminServer

public class ClusterAdminServer extends Object
Provides an HTTP admin interface for cluster management. Offers endpoints for querying cluster status and controlling the cluster.
  • Field Details

    • ADMIN_PORT_FILE

      public static final String ADMIN_PORT_FILE
      File name written to the crawler work directory containing the actual admin server port. Used by the stop command to locate the server.
      See Also:
  • Constructor Details

    • ClusterAdminServer

      public ClusterAdminServer(CrawlerSession session)
  • Method Details

    • start

      public int start()
      Starts the HTTP server on an available port starting from 27295.
      Returns:
      the server port
    • doStart

      public int doStart()
    • close

      public void close()
      Stops the HTTP server.
    • getPort

      public int getPort()