Class HazelcastClusterNode
java.lang.Object
com.norconex.crawler.core.cluster.impl.hazelcast.HazelcastClusterNode
- All Implemented Interfaces:
ClusterNode,Closeable,AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionHazelcastClusterNode(com.hazelcast.core.HazelcastInstance hazelcastInstance, boolean standalone) -
Method Summary
-
Constructor Details
-
HazelcastClusterNode
public HazelcastClusterNode(com.hazelcast.core.HazelcastInstance hazelcastInstance, boolean standalone)
-
-
Method Details
-
getNodeName
- Specified by:
getNodeNamein interfaceClusterNode
-
isStandaloneNode
public boolean isStandaloneNode()- Returns:
- true if this JVM is effectively standalone (single-node mode).
-
isCoordinator
public boolean isCoordinator()- Specified by:
isCoordinatorin interfaceClusterNode- Returns:
- true if this node should run "one‑per‑cluster" tasks. - In standalone mode (no clustering at all): true - In clustered mode: true only for the oldest cluster member
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-