Record Class IsolationExecutionResult
java.lang.Object
java.lang.Record
org.j7m.middleware.api.isolation.IsolationExecutionResult
- Record Components:
executionId- execution identifierstate- execution stateexitCode- process exit code when availableoutput- redacted captured outputusage- resource usage snapshotviolations- safe policy violationsmetadata- safe redacted metadata
public record IsolationExecutionResult(IsolationExecutionId executionId, IsolationExecutionState state, int exitCode, CapturedOutput output, ResourceUsageSnapshot usage, List<IsolationPolicyViolation> violations, Map<String,String> metadata)
extends Record
Terminal or current result for an isolated execution.
-
Constructor Summary
ConstructorsConstructorDescriptionIsolationExecutionResult(IsolationExecutionId executionId, IsolationExecutionState state, int exitCode, CapturedOutput output, ResourceUsageSnapshot usage, List<IsolationPolicyViolation> violations, Map<String, String> metadata) Creates a validated execution result. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theexecutionIdrecord component.intexitCode()Returns the value of theexitCoderecord component.final inthashCode()Returns a hash code value for this object.metadata()Returns the value of themetadatarecord component.output()Returns the value of theoutputrecord component.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.usage()Returns the value of theusagerecord component.Returns the value of theviolationsrecord component.
-
Constructor Details
-
IsolationExecutionResult
public IsolationExecutionResult(IsolationExecutionId executionId, IsolationExecutionState state, int exitCode, CapturedOutput output, ResourceUsageSnapshot usage, List<IsolationPolicyViolation> violations, Map<String, String> metadata) Creates a validated execution result.
-
-
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. -
executionId
Returns the value of theexecutionIdrecord component.- Returns:
- the value of the
executionIdrecord component
-
state
-
exitCode
-
output
-
usage
-
violations
Returns the value of theviolationsrecord component.- Returns:
- the value of the
violationsrecord component
-
metadata
-