Record Class CapturedOutput
java.lang.Object
java.lang.Record
org.j7m.middleware.api.isolation.CapturedOutput
- Record Components:
stdout- redacted stdoutstderr- redacted stderrstdoutBytes- original stdout byte count observed before truncationstderrBytes- original stderr byte count observed before truncationstdoutTruncated- whether stdout was truncatedstderrTruncated- whether stderr was truncated
public record CapturedOutput(RedactedOutput stdout, RedactedOutput stderr, int stdoutBytes, int stderrBytes, boolean stdoutTruncated, boolean stderrTruncated)
extends Record
Captured stdout/stderr summary.
Only redacted text is exposed. Raw stream bytes remain internal provider state and must not be returned through public status, exceptions, or audit.
-
Constructor Summary
ConstructorsConstructorDescriptionCapturedOutput(RedactedOutput stdout, RedactedOutput stderr, int stdoutBytes, int stderrBytes, boolean stdoutTruncated, boolean stderrTruncated) Creates a validated captured output summary. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.stderr()Returns the value of thestderrrecord component.intReturns the value of thestderrBytesrecord component.booleanReturns the value of thestderrTruncatedrecord component.stdout()Returns the value of thestdoutrecord component.intReturns the value of thestdoutBytesrecord component.booleanReturns the value of thestdoutTruncatedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CapturedOutput
public CapturedOutput(RedactedOutput stdout, RedactedOutput stderr, int stdoutBytes, int stderrBytes, boolean stdoutTruncated, boolean stderrTruncated) Creates a validated captured output summary.
-
-
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. -
stdout
-
stderr
-
stdoutBytes
public int stdoutBytes()Returns the value of thestdoutBytesrecord component.- Returns:
- the value of the
stdoutBytesrecord component
-
stderrBytes
public int stderrBytes()Returns the value of thestderrBytesrecord component.- Returns:
- the value of the
stderrBytesrecord component
-
stdoutTruncated
public boolean stdoutTruncated()Returns the value of thestdoutTruncatedrecord component.- Returns:
- the value of the
stdoutTruncatedrecord component
-
stderrTruncated
public boolean stderrTruncated()Returns the value of thestderrTruncatedrecord component.- Returns:
- the value of the
stderrTruncatedrecord component
-