Record Class JobSummaryView

java.lang.Object
java.lang.Record
io.github.jchejarla.springbatch.clustering.query.JobSummaryView
Record Components:
jobExecutionId - the Spring Batch job execution id
masterNode - the node coordinating (mastering) this job
masterStepName - the manager step name
coordinationStatus - the coordination status (CREATED / STARTED / COMPLETED / RECOVERING / ABANDONED)

public record JobSummaryView(long jobExecutionId, String masterNode, String masterStepName, String coordinationStatus) extends Record
A one-line summary of a coordinated job, for listing.
  • Constructor Details

    • JobSummaryView

      public JobSummaryView(long jobExecutionId, String masterNode, String masterStepName, String coordinationStatus)
      Creates an instance of a JobSummaryView record class.
      Parameters:
      jobExecutionId - the value for the jobExecutionId record component
      masterNode - the value for the masterNode record component
      masterStepName - the value for the masterStepName record component
      coordinationStatus - the value for the coordinationStatus 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.
    • jobExecutionId

      public long jobExecutionId()
      Returns the value of the jobExecutionId record component.
      Returns:
      the value of the jobExecutionId record component
    • masterNode

      public String masterNode()
      Returns the value of the masterNode record component.
      Returns:
      the value of the masterNode record component
    • masterStepName

      public String masterStepName()
      Returns the value of the masterStepName record component.
      Returns:
      the value of the masterStepName record component
    • coordinationStatus

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