Record Class IsolationExecutionStatus
java.lang.Object
java.lang.Record
org.j7m.middleware.api.isolation.IsolationExecutionStatus
- Record Components:
executionId- execution identifiersubjectId- subject identifiermode- execution modestate- current statestartedAt- start time if knowncompletedAt- completion time if knownsafeCommand- command summary with secret arguments redactedmetadata- safe redacted metadata
public record IsolationExecutionStatus(IsolationExecutionId executionId, IsolationSubjectId subjectId, IsolationMode mode, IsolationExecutionState state, Instant startedAt, Instant completedAt, String safeCommand, Map<String,String> metadata)
extends Record
Redacted live status for one isolated execution.
-
Constructor Summary
ConstructorsConstructorDescriptionIsolationExecutionStatus(IsolationExecutionId executionId, IsolationSubjectId subjectId, IsolationMode mode, IsolationExecutionState state, Instant startedAt, Instant completedAt, String safeCommand, Map<String, String> metadata) Creates a validated status. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecompletedAtrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexecutionIdrecord component.final inthashCode()Returns a hash code value for this object.metadata()Returns the value of themetadatarecord component.mode()Returns the value of themoderecord component.Returns the value of thesafeCommandrecord component.Returns the value of thestartedAtrecord component.state()Returns the value of thestaterecord component.Returns the value of thesubjectIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
IsolationExecutionStatus
public IsolationExecutionStatus(IsolationExecutionId executionId, IsolationSubjectId subjectId, IsolationMode mode, IsolationExecutionState state, Instant startedAt, Instant completedAt, String safeCommand, Map<String, String> metadata) Creates a validated status.
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
executionId
Returns the value of theexecutionIdrecord component.- Returns:
- the value of the
executionIdrecord component
-
subjectId
-
mode
-
state
-
startedAt
-
completedAt
Returns the value of thecompletedAtrecord component.- Returns:
- the value of the
completedAtrecord component
-
safeCommand
Returns the value of thesafeCommandrecord component.- Returns:
- the value of the
safeCommandrecord component
-
metadata
-