Class ExecutionStatisticsBuilder

java.lang.Object
scriptella.execution.ExecutionStatisticsBuilder
Direct Known Subclasses:
SilentExecutionStatisticsBuilder

public class ExecutionStatisticsBuilder extends Object
A builder for execution statistics.

This class collects runtime ETL execution statistics, the usage contract is the following:

Notes:
  • Start/End element callbacks sequence must comply with executing elements position in a XML file.
  • This class is not thread safe.
Version:
1.0
Author:
Fyodor Kupolov
  • Field Details

    • executionStack

      protected scriptella.execution.ExecutionStatisticsBuilder.ElementsStack executionStack
  • Constructor Details

    • ExecutionStatisticsBuilder

      public ExecutionStatisticsBuilder()
  • Method Details

    • elementStarted

      public void elementStarted(Location loc, Connection connection)
      Called when new element execution started.
      Parameters:
      loc - element location.
    • elementExecuted

      public void elementExecuted()
      This method is called when element has been executed.
    • etlStarted

      public void etlStarted()
      Invoked on ETL start
    • etlComplete

      public void etlComplete()
      Invoked on ETL completion.
    • elementFailed

      public void elementFailed()
    • getStatistics

      public ExecutionStatistics getStatistics()