Record Class HazelcastConfigurerContext
java.lang.Object
java.lang.Record
com.norconex.crawler.core.cluster.impl.hazelcast.HazelcastConfigurerContext
- Record Components:
workDir- crawler work directory; used by standalone mode for the embedded H2 database pathclustered-truewhen running in multi-node cluster mode,falsefor standalone (single-process) modeclusterName- Hazelcast cluster name; nodes sharing the same name will discover each other
public record HazelcastConfigurerContext(Path workDir, boolean clustered, String clusterName)
extends Record
Context passed to
HazelcastConfigurer.buildConfig(HazelcastConfigurerContext) with all
framework-supplied information needed to build the Hazelcast configuration.-
Constructor Summary
ConstructorsConstructorDescriptionHazelcastConfigurerContext(Path workDir, boolean clustered, String clusterName) Creates an instance of aHazelcastConfigurerContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theclusteredrecord component.Returns the value of theclusterNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.workDir()Returns the value of theworkDirrecord component.
-
Constructor Details
-
HazelcastConfigurerContext
Creates an instance of aHazelcastConfigurerContextrecord class.- Parameters:
workDir- the value for theworkDirrecord componentclustered- the value for theclusteredrecord componentclusterName- the value for theclusterNamerecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
workDir
Returns the value of theworkDirrecord component.- Returns:
- the value of the
workDirrecord component
-
clustered
public boolean clustered()Returns the value of theclusteredrecord component.- Returns:
- the value of the
clusteredrecord component
-
clusterName
Returns the value of theclusterNamerecord component.- Returns:
- the value of the
clusterNamerecord component
-