Class ExecutionReport

java.lang.Object
scriptella.execution.ExecutionReport

public final class ExecutionReport extends Object
One bounded machine-readable report for one Scriptella execution.
  • Field Details

  • Constructor Details

    • ExecutionReport

      public ExecutionReport()
  • Method Details

    • complete

      public void complete(ExecutionStatistics statistics, Throwable failure)
    • getExecutionId

      public String getExecutionId()
    • getStarted

      public Instant getStarted()
    • getFinished

      public Instant getFinished()
    • getElapsedNanos

      public long getElapsedNanos()
    • getStatistics

      public ExecutionStatistics getStatistics()
    • getError

      public ExecutionReport.ErrorInfo getError()
    • isComplete

      public boolean isComplete()
    • isFinalized

      public boolean isFinalized()
    • getOutcome

      public String getOutcome()
    • toJson

      public String toJson()
      Serializes only bounded aggregates and deliberately omits driver messages and stack traces.
    • write

      public void write(Path destination) throws IOException
      Writes a complete report using same-directory temporary storage and atomic replacement where supported. When atomic moves are unsupported, replacement falls back to a normal replace-existing move.
      Throws:
      IOException