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 idsecurityContext- caller security context for authorizationcorrelationId- safe correlation idaction- lifecycle actioncoordinate- exact coordinate forNuggetApplicationLifecycle.Action.STARTinstanceId- target instance forNuggetApplicationLifecycle.Action.DRAIN,NuggetApplicationLifecycle.Action.STOP, orNuggetApplicationLifecycle.Action.UNLOADdryRun- whether mutation must be planned but not executedrequestedAt- request creation timestampdeadlineAt- absolute deadline for the complete operationmetadata- 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 Summary
ConstructorsConstructorDescriptionRequest(String admissionId, SecurityContext securityContext, String correlationId, NuggetApplicationLifecycle.Action action, ApplicationCoordinate coordinate, ApplicationInstanceId instanceId, boolean dryRun, Instant requestedAt, Instant deadlineAt, Map<String, String> metadata) Creates immutable request metadata. -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.Returns the value of theadmissionIdrecord component.Returns the value of thecoordinaterecord component.Returns the value of thecorrelationIdrecord component.Returns the value of thedeadlineAtrecord component.booleandryRun()Returns the value of thedryRunrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinstanceIdrecord component.metadata()Returns the value of themetadatarecord component.Returns the value of therequestedAtrecord component.Returns the value of thesecurityContextrecord component.toString()
-
Constructor Details
-
Request
public Request(String admissionId, SecurityContext securityContext, String correlationId, NuggetApplicationLifecycle.Action action, ApplicationCoordinate coordinate, ApplicationInstanceId instanceId, boolean dryRun, Instant requestedAt, Instant deadlineAt, Map<String, String> metadata) Creates immutable request metadata.
-
-
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. -
admissionId
Returns the value of theadmissionIdrecord component.- Returns:
- the value of the
admissionIdrecord component
-
securityContext
Returns the value of thesecurityContextrecord component.- Returns:
- the value of the
securityContextrecord component
-
correlationId
Returns the value of thecorrelationIdrecord component.- Returns:
- the value of the
correlationIdrecord component
-
action
-
coordinate
Returns the value of thecoordinaterecord component.- Returns:
- the value of the
coordinaterecord component
-
instanceId
Returns the value of theinstanceIdrecord component.- Returns:
- the value of the
instanceIdrecord component
-
dryRun
-
requestedAt
Returns the value of therequestedAtrecord component.- Returns:
- the value of the
requestedAtrecord component
-
deadlineAt
Returns the value of thedeadlineAtrecord component.- Returns:
- the value of the
deadlineAtrecord component
-
metadata
-