Record Class JobSummaryView
java.lang.Object
java.lang.Record
io.github.jchejarla.springbatch.clustering.query.JobSummaryView
- Record Components:
jobExecutionId- the Spring Batch job execution idmasterNode- the node coordinating (mastering) this jobmasterStepName- the manager step namecoordinationStatus- 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 Summary
ConstructorsConstructorDescriptionJobSummaryView(long jobExecutionId, String masterNode, String masterStepName, String coordinationStatus) Creates an instance of aJobSummaryViewrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecoordinationStatusrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of thejobExecutionIdrecord component.Returns the value of themasterNoderecord component.Returns the value of themasterStepNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
JobSummaryView
public JobSummaryView(long jobExecutionId, String masterNode, String masterStepName, String coordinationStatus) Creates an instance of aJobSummaryViewrecord class.- Parameters:
jobExecutionId- the value for thejobExecutionIdrecord componentmasterNode- the value for themasterNoderecord componentmasterStepName- the value for themasterStepNamerecord componentcoordinationStatus- the value for thecoordinationStatusrecord 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 '=='. -
jobExecutionId
public long jobExecutionId()Returns the value of thejobExecutionIdrecord component.- Returns:
- the value of the
jobExecutionIdrecord component
-
masterNode
Returns the value of themasterNoderecord component.- Returns:
- the value of the
masterNoderecord component
-
masterStepName
Returns the value of themasterStepNamerecord component.- Returns:
- the value of the
masterStepNamerecord component
-
coordinationStatus
Returns the value of thecoordinationStatusrecord component.- Returns:
- the value of the
coordinationStatusrecord component
-