Package scriptella.execution
Class ExecutionStatisticsBuilder
java.lang.Object
scriptella.execution.ExecutionStatisticsBuilder
- Direct Known Subclasses:
SilentExecutionStatisticsBuilder
A builder for execution statistics.
This class collects runtime ETL execution statistics, the usage contract is the following:
etlStarted()invoked on ETL start.- Call
elementStarted(Location,Connection)before executing an element. - Call
elementExecuted()orelementFailed()after executing an element. etlComplete()invoked when ETL completes.Obtain statisticsafter ETL completes.
- 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 Summary
FieldsModifier and TypeFieldDescriptionprotected scriptella.execution.ExecutionStatisticsBuilder.ElementsStack -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidThis method is called when element has been executed.voidvoidelementStarted(Location loc, Connection connection) Called when new element execution started.voidInvoked on ETL completion.voidInvoked on ETL start
-
Field Details
-
executionStack
protected scriptella.execution.ExecutionStatisticsBuilder.ElementsStack executionStack
-
-
Constructor Details
-
ExecutionStatisticsBuilder
public ExecutionStatisticsBuilder()
-
-
Method Details
-
elementStarted
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
-