Class ClusterConfig
java.lang.Object
com.norconex.crawler.core.cluster.ClusterConfig
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDefault port used to communicate via a node for some administrative crawler cluster tasks. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanintPort the crawler cluster listens to for administrative commands, on each nodes.The connector to the cluster implementation used to run the crawler.inthashCode()booleanDisable launching the crawler administrative server endpoints.booleanWhether the crawler should run in stand-alone or cluster mode.setAdminDisabled(boolean adminDisabled) Disable launching the crawler administrative server endpoints.setAdminPort(int adminPort) Port the crawler cluster listens to for administrative commands, on each nodes.setClustered(boolean clustered) Whether the crawler should run in stand-alone or cluster mode.setConnector(ClusterConnector connector) The connector to the cluster implementation used to run the crawler.toString()
-
Field Details
-
DEFAULT_ADMIN_PORT
public static final int DEFAULT_ADMIN_PORTDefault port used to communicate via a node for some administrative crawler cluster tasks.- See Also:
-
-
Constructor Details
-
ClusterConfig
public ClusterConfig()
-
-
Method Details
-
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 aHazelcastClusterConnector. For a pure in-memory non-persistent alternative, useMemoryClusterConnector. -
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
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 aHazelcastClusterConnector. For a pure in-memory non-persistent alternative, useMemoryClusterConnector.- Returns:
this.
-
setAdminDisabled
Disable launching the crawler administrative server endpoints.- Returns:
this.
-
setAdminPort
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
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
-
canEqual
-
hashCode
public int hashCode() -
toString
-