Package scriptella.execution
Class ExecutionReport
java.lang.Object
scriptella.execution.ExecutionReport
One bounded machine-readable report for one Scriptella execution.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcomplete(ExecutionStatistics statistics, Throwable failure) longgetError()booleanbooleantoJson()Serializes only bounded aggregates and deliberately omits driver messages and stack traces.voidWrites a complete report using same-directory temporary storage and atomic replacement where supported.
-
Field Details
-
SCHEMA_VERSION
public static final int SCHEMA_VERSION- See Also:
-
-
Constructor Details
-
ExecutionReport
public ExecutionReport()
-
-
Method Details
-
complete
-
getExecutionId
-
getStarted
-
getFinished
-
getElapsedNanos
public long getElapsedNanos() -
getStatistics
-
getError
-
isComplete
public boolean isComplete() -
isFinalized
public boolean isFinalized() -
getOutcome
-
toJson
Serializes only bounded aggregates and deliberately omits driver messages and stack traces. -
write
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
-