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 path
clustered - true when running in multi-node cluster mode, false for standalone (single-process) mode
clusterName - 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 Details

    • HazelcastConfigurerContext

      public HazelcastConfigurerContext(Path workDir, boolean clustered, String clusterName)
      Creates an instance of a HazelcastConfigurerContext record class.
      Parameters:
      workDir - the value for the workDir record component
      clustered - the value for the clustered record component
      clusterName - the value for the clusterName record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • workDir

      public Path workDir()
      Returns the value of the workDir record component.
      Returns:
      the value of the workDir record component
    • clustered

      public boolean clustered()
      Returns the value of the clustered record component.
      Returns:
      the value of the clustered record component
    • clusterName

      public String clusterName()
      Returns the value of the clusterName record component.
      Returns:
      the value of the clusterName record component