Record Class OperationStatus
java.lang.Object
java.lang.Record
org.j7m.middleware.cluster.OperationStatus
- Record Components:
operationId- idempotent operation identitystate- RUNNING, HOLD, COMPLETED, FAILED or UNKNOWNversion- current fleet generationplanId- bound deployment plan, or emptycurrentNode- current hosting target, or emptyphase- durable workflow phaseerrorCode- redacted fixed diagnostic code, or empty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecurrentNoderecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theerrorCoderecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theoperationIdrecord component.phase()Returns the value of thephaserecord component.planId()Returns the value of theplanIdrecord component.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.longversion()Returns the value of theversionrecord component.
-
Constructor Details
-
OperationStatus
public OperationStatus(String operationId, String state, long version, String planId, String currentNode, String phase, String errorCode) Creates an instance of aOperationStatusrecord class.- Parameters:
operationId- the value for theoperationIdrecord componentstate- the value for thestaterecord componentversion- the value for theversionrecord componentplanId- the value for theplanIdrecord componentcurrentNode- the value for thecurrentNoderecord componentphase- the value for thephaserecord componenterrorCode- the value for theerrorCoderecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
operationId
Returns the value of theoperationIdrecord component.- Returns:
- the value of the
operationIdrecord component
-
state
-
version
-
planId
-
currentNode
Returns the value of thecurrentNoderecord component.- Returns:
- the value of the
currentNoderecord component
-
phase
-
errorCode
-