Record Class OrphanedMasterJob
java.lang.Object
java.lang.Record
io.github.jchejarla.springbatch.clustering.mgmt.OrphanedMasterJob
- Record Components:
jobExecutionId- the Spring Batch job execution id of the stranded jobmasterNodeId- the id of the master node that was lostmasterStepExecutionId- the manager step execution id that coordinated the partitionsmasterStepName- the manager step name
public record OrphanedMasterJob(long jobExecutionId, String masterNodeId, long masterStepExecutionId, String masterStepName)
extends Record
A job whose master node has left the cluster while the job was still running.
Produced by the recovery scan when a BATCH_JOB_COORDINATION row is still marked
STARTED but its master node is no longer present in BATCH_NODES. Such a job can
no longer make progress on its own (the node that was monitoring and aggregating it is gone), so
a surviving node reaps it.
- Author:
- Janardhan Chejarla
-
Constructor Summary
ConstructorsConstructorDescriptionOrphanedMasterJob(long jobExecutionId, String masterNodeId, long masterStepExecutionId, String masterStepName) Creates an instance of aOrphanedMasterJobrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal 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 themasterNodeIdrecord component.longReturns the value of themasterStepExecutionIdrecord component.Returns the value of themasterStepNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OrphanedMasterJob
public OrphanedMasterJob(long jobExecutionId, String masterNodeId, long masterStepExecutionId, String masterStepName) Creates an instance of aOrphanedMasterJobrecord class.- Parameters:
jobExecutionId- the value for thejobExecutionIdrecord componentmasterNodeId- the value for themasterNodeIdrecord componentmasterStepExecutionId- the value for themasterStepExecutionIdrecord componentmasterStepName- the value for themasterStepNamerecord 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
-
masterNodeId
Returns the value of themasterNodeIdrecord component.- Returns:
- the value of the
masterNodeIdrecord component
-
masterStepExecutionId
public long masterStepExecutionId()Returns the value of themasterStepExecutionIdrecord component.- Returns:
- the value of the
masterStepExecutionIdrecord component
-
masterStepName
Returns the value of themasterStepNamerecord component.- Returns:
- the value of the
masterStepNamerecord component
-