Record Class CanaryDeployment.Status
java.lang.Object
java.lang.Record
org.j7m.middleware.cluster.CanaryDeployment.Status
- Record Components:
version- resource CAS versionpolicy- current policystate- ACTIVE, HOLD, ROLLING_BACK or ROLLED_BACKlifecycleVersion- original rollback optimistic version, retained across controller restartrollbackNodes- original rollback node set, retained for idempotent operation replay
- Enclosing class:
CanaryDeployment
public static record CanaryDeployment.Status(long version, CanaryPolicy policy, String state, long lifecycleVersion, List<String> rollbackNodes)
extends Record
Durable controller state.
-
Constructor Summary
ConstructorsConstructorDescriptionStatus(long version, CanaryPolicy policy, String state, long lifecycleVersion, List<String> rollbackNodes) Copies the durable rollback participant list. -
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 thelifecycleVersionrecord component.policy()Returns the value of thepolicyrecord component.Returns the value of therollbackNodesrecord 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
-
Status
public Status(long version, CanaryPolicy policy, String state, long lifecycleVersion, List<String> rollbackNodes) Copies the durable rollback participant list.- Parameters:
version- policy resource versionpolicy- current policystate- controller statelifecycleVersion- original lifecycle versionrollbackNodes- original rollback participants
-
-
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. -
version
-
policy
-
state
-
lifecycleVersion
public long lifecycleVersion()Returns the value of thelifecycleVersionrecord component.- Returns:
- the value of the
lifecycleVersionrecord component
-
rollbackNodes
Returns the value of therollbackNodesrecord component.- Returns:
- the value of the
rollbackNodesrecord component
-