Class ExecutionStatistics

java.lang.Object
scriptella.execution.ExecutionStatistics

public class ExecutionStatistics extends Object
Represents script execution statistics

The statistics is groupped by script elements i.e. script or query.

Version:
1.0
Author:
Fyodor Kupolov
  • Constructor Details

    • ExecutionStatistics

      public ExecutionStatistics()
  • Method Details

    • getExecutedStatementsCount

      public int getExecutedStatementsCount()
      Returns:
      number of statements executed for all elements.
    • getElements

    • getCategoriesStatistics

      public Map<String,Integer> getCategoriesStatistics()
      Returns the statistics on executed categories, e.g. queries-5times, scripts-10times.

      Note the category names are xml element names, no plural form used.

      Returns:
      xmlelement->count map .
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getTotalTime

      public long getTotalTime()
      Total ETL execution time or -1 if ETL hasn't completed.
      Returns:
      ETL execution time in milliseconds.
    • getStartDate

      public Date getStartDate()
      Returns date/time when ETL was started.
      Returns:
      ETL start date/time.
    • getFinishDate

      public Date getFinishDate()
      Returns date/time when ETL was completed.
      Returns:
      ETL finish date/time.