Record Class NuggetApplicationLifecycle.Request

java.lang.Object
java.lang.Record
org.j7m.middleware.operations.api.NuggetApplicationLifecycle.Request
Record Components:
admissionId - accepted Phase 7.1 admission id
securityContext - caller security context for authorization
correlationId - safe correlation id
action - lifecycle action
coordinate - exact coordinate for NuggetApplicationLifecycle.Action.START
instanceId - target instance for NuggetApplicationLifecycle.Action.DRAIN, NuggetApplicationLifecycle.Action.STOP, or NuggetApplicationLifecycle.Action.UNLOAD
dryRun - whether mutation must be planned but not executed
requestedAt - request creation timestamp
deadlineAt - absolute deadline for the complete operation
metadata - safe request metadata
Enclosing class:
NuggetApplicationLifecycle

public static record NuggetApplicationLifecycle.Request(String admissionId, SecurityContext securityContext, String correlationId, NuggetApplicationLifecycle.Action action, ApplicationCoordinate coordinate, ApplicationInstanceId instanceId, boolean dryRun, Instant requestedAt, Instant deadlineAt, Map<String,String> metadata) extends Record
Headless lifecycle request metadata.

The admission id is required by the server but is not intended for rendering, audit detail, or durable evidence. The deadline is absolute and applies to server-side admission verification, authorization, provider calls, lifecycle work, and result construction. Callers should compute it once for the original command and reuse the remaining budget while resolving targets, authenticating, connecting, and invoking this method.

  • Constructor Details

  • Method Details

    • toString

      public String toString()
      Specified by:
      toString in class Record
    • 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 the compare method from their corresponding wrapper classes.
      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.
    • admissionId

      public String admissionId()
      Returns the value of the admissionId record component.
      Returns:
      the value of the admissionId record component
    • securityContext

      public SecurityContext securityContext()
      Returns the value of the securityContext record component.
      Returns:
      the value of the securityContext record component
    • correlationId

      public String correlationId()
      Returns the value of the correlationId record component.
      Returns:
      the value of the correlationId record component
    • action

      Returns the value of the action record component.
      Returns:
      the value of the action record component
    • coordinate

      public ApplicationCoordinate coordinate()
      Returns the value of the coordinate record component.
      Returns:
      the value of the coordinate record component
    • instanceId

      public ApplicationInstanceId instanceId()
      Returns the value of the instanceId record component.
      Returns:
      the value of the instanceId record component
    • dryRun

      public boolean dryRun()
      Returns the value of the dryRun record component.
      Returns:
      the value of the dryRun record component
    • requestedAt

      public Instant requestedAt()
      Returns the value of the requestedAt record component.
      Returns:
      the value of the requestedAt record component
    • deadlineAt

      public Instant deadlineAt()
      Returns the value of the deadlineAt record component.
      Returns:
      the value of the deadlineAt record component
    • metadata

      public Map<String,String> metadata()
      Returns the value of the metadata record component.
      Returns:
      the value of the metadata record component