Record Class NuggetApplicationLifecycle.Result
java.lang.Object
java.lang.Record
org.j7m.middleware.operations.api.NuggetApplicationLifecycle.Result
- Record Components:
operationId- server-created operation idcorrelationId- safe correlation idaction- lifecycle actionadmitted- whether PIN admission was accepted- whether authorization allowed the requested actiondryRun- whether mutation was intentionally skippednuggetId- target nugget idruntimeId- target runtime idcoordinate- target application coordinate, when applicableinstanceId- target or resulting application instance id, when knownpreviousState- state observed before the operation, when knowncurrentState- state observed after the operation, when knownresultingState- resulting lifecycle state, when knownoutcome- stable outcome enumoutcomeText- safe operator-facing outcome textaccepted- whether the server accepted the operationinProgress- whether work remains in progresscompleted- whether the operation completed synchronouslypartial- whether optional details are partialoutcomeUnknown- whether the final application state is uncertainverificationSummary- safe verification summary- safe authorization summaryplan- activation plan for dry-run or start planning, when availabledeploymentResult- safe deployer result, when available; returned failed deployer results are omitted or reduced to a public projection and must not expose provider-supplied message or detail textactivation- activation snapshot, when availablewarnings- safe warningserror- normalized safe error, ornullrequestedAt- request timestampcompletedAt- result timestampelapsed- elapsed server-side durationmetadata- safe bounded metadata produced from the same public projection used for audit and rendering
- Enclosing class:
NuggetApplicationLifecycle
public static record NuggetApplicationLifecycle.Result(String operationId, String correlationId, NuggetApplicationLifecycle.Action action, boolean admitted, boolean authorized, boolean dryRun, String nuggetId, String runtimeId, ApplicationCoordinate coordinate, ApplicationInstanceId instanceId, ApplicationRunState previousState, ApplicationRunState currentState, ApplicationRunState resultingState, NuggetApplicationLifecycle.Outcome outcome, String outcomeText, boolean accepted, boolean inProgress, boolean completed, boolean partial, boolean outcomeUnknown, String verificationSummary, String authorizationSummary, ApplicationDeploymentPlan plan, ApplicationDeploymentResult deploymentResult, ApplicationActivation activation, List<String> warnings, RemoteError error, Instant requestedAt, Instant completedAt, Duration elapsed, Map<String,String> metadata)
extends Record
Safe lifecycle operation result.
-
Constructor Summary
ConstructorsConstructorDescriptionResult(String operationId, String correlationId, NuggetApplicationLifecycle.Action action, boolean admitted, boolean authorized, boolean dryRun, String nuggetId, String runtimeId, ApplicationCoordinate coordinate, ApplicationInstanceId instanceId, ApplicationRunState previousState, ApplicationRunState currentState, ApplicationRunState resultingState, NuggetApplicationLifecycle.Outcome outcome, String outcomeText, boolean accepted, boolean inProgress, boolean completed, boolean partial, boolean outcomeUnknown, String verificationSummary, String authorizationSummary, ApplicationDeploymentPlan plan, ApplicationDeploymentResult deploymentResult, ApplicationActivation activation, List<String> warnings, RemoteError error, Instant requestedAt, Instant completedAt, Duration elapsed, Map<String, String> metadata) Creates immutable safe result metadata. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccepted()Returns the value of theacceptedrecord component.action()Returns the value of theactionrecord component.Returns the value of theactivationrecord component.booleanadmitted()Returns the value of theadmittedrecord component.Returns the value of theauthorizationSummaryrecord component.booleanReturns the value of theauthorizedrecord component.booleanReturns the value of thecompletedrecord component.Returns the value of thecompletedAtrecord component.Returns the value of thecoordinaterecord component.Returns the value of thecorrelationIdrecord component.Returns the value of thecurrentStaterecord component.Returns the value of thedeploymentResultrecord component.booleandryRun()Returns the value of thedryRunrecord component.elapsed()Returns the value of theelapsedrecord component.final booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theinProgressrecord component.Returns the value of theinstanceIdrecord component.metadata()Returns the value of themetadatarecord component.nuggetId()Returns the value of thenuggetIdrecord component.Returns the value of theoperationIdrecord component.outcome()Returns the value of theoutcomerecord component.Returns the value of theoutcomeTextrecord component.booleanReturns the value of theoutcomeUnknownrecord component.booleanpartial()Returns the value of thepartialrecord component.plan()Returns the value of theplanrecord component.Returns the value of thepreviousStaterecord component.Returns the value of therequestedAtrecord component.Returns the value of theresultingStaterecord component.Returns the value of theruntimeIdrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theverificationSummaryrecord component.warnings()Returns the value of thewarningsrecord component.
-
Constructor Details
-
Result
public Result(String operationId, String correlationId, NuggetApplicationLifecycle.Action action, boolean admitted, boolean authorized, boolean dryRun, String nuggetId, String runtimeId, ApplicationCoordinate coordinate, ApplicationInstanceId instanceId, ApplicationRunState previousState, ApplicationRunState currentState, ApplicationRunState resultingState, NuggetApplicationLifecycle.Outcome outcome, String outcomeText, boolean accepted, boolean inProgress, boolean completed, boolean partial, boolean outcomeUnknown, String verificationSummary, String authorizationSummary, ApplicationDeploymentPlan plan, ApplicationDeploymentResult deploymentResult, ApplicationActivation activation, List<String> warnings, RemoteError error, Instant requestedAt, Instant completedAt, Duration elapsed, Map<String, String> metadata) Creates immutable safe result 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. -
operationId
Returns the value of theoperationIdrecord component.- Returns:
- the value of the
operationIdrecord component
-
correlationId
Returns the value of thecorrelationIdrecord component.- Returns:
- the value of the
correlationIdrecord component
-
action
-
admitted
-
authorized
public boolean authorized()Returns the value of theauthorizedrecord component.- Returns:
- the value of the
authorizedrecord component
-
dryRun
-
nuggetId
-
runtimeId
-
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
-
previousState
Returns the value of thepreviousStaterecord component.- Returns:
- the value of the
previousStaterecord component
-
currentState
Returns the value of thecurrentStaterecord component.- Returns:
- the value of the
currentStaterecord component
-
resultingState
Returns the value of theresultingStaterecord component.- Returns:
- the value of the
resultingStaterecord component
-
outcome
-
outcomeText
Returns the value of theoutcomeTextrecord component.- Returns:
- the value of the
outcomeTextrecord component
-
accepted
-
inProgress
public boolean inProgress()Returns the value of theinProgressrecord component.- Returns:
- the value of the
inProgressrecord component
-
completed
-
partial
-
outcomeUnknown
public boolean outcomeUnknown()Returns the value of theoutcomeUnknownrecord component.- Returns:
- the value of the
outcomeUnknownrecord component
-
verificationSummary
Returns the value of theverificationSummaryrecord component.- Returns:
- the value of the
verificationSummaryrecord component
-
authorizationSummary
Returns the value of theauthorizationSummaryrecord component.- Returns:
- the value of the
authorizationSummaryrecord component
-
plan
-
deploymentResult
Returns the value of thedeploymentResultrecord component.- Returns:
- the value of the
deploymentResultrecord component
-
activation
Returns the value of theactivationrecord component.- Returns:
- the value of the
activationrecord component
-
warnings
-
error
-
requestedAt
Returns the value of therequestedAtrecord component.- Returns:
- the value of the
requestedAtrecord component
-
completedAt
Returns the value of thecompletedAtrecord component.- Returns:
- the value of the
completedAtrecord component
-
elapsed
-
metadata
-