Class ClusterAdminServer
java.lang.Object
com.norconex.crawler.core.cluster.admin.ClusterAdminServer
Provides an HTTP admin interface for cluster management.
Offers endpoints for querying cluster status and controlling the cluster.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringFile name written to the crawler work directory containing the actual admin server port. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
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
-
-
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()
-