Record Class RExecutionResult
java.lang.Object
java.lang.Record
es.urjc.etsii.grafo.autoconfig.r.RExecutionResult
- Record Components:
exitCode- process exit codeelapsed- process execution durationstdoutLog- captured standard-output logstderrLog- captured standard-error log
-
Constructor Summary
ConstructorsConstructorDescriptionRExecutionResult(int exitCode, Duration elapsed, Path stdoutLog, Path stderrLog) Creates an instance of aRExecutionResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionelapsed()Returns the value of theelapsedrecord component.final booleanIndicates whether some other object is "equal to" this one.intexitCode()Returns the value of theexitCoderecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thestderrLogrecord component.Returns the value of thestdoutLogrecord component.booleanWhether the process completed successfully.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RExecutionResult
Creates an instance of aRExecutionResultrecord class.
-
-
Method Details
-
successful
public boolean successful()Whether the process completed successfully.- Returns:
- true for exit code zero
-
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. -
exitCode
-
elapsed
-
stdoutLog
-
stderrLog
-