scriptella.execution
Class ExecutionStatistics

java.lang.Object
  extended by scriptella.execution.ExecutionStatistics

public class ExecutionStatistics
extends java.lang.Object

Represents script execution statistics

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

Version:
1.0
Author:
Fyodor Kupolov

Nested Class Summary
static class ExecutionStatistics.ElementInfo
           
 
Constructor Summary
ExecutionStatistics()
           
 
Method Summary
 java.util.Map<java.lang.String,java.lang.Integer> getCategoriesStatistics()
          Returns the statistics on executed categories, e.g.
 java.util.Collection<ExecutionStatistics.ElementInfo> getElements()
           
 int getExecutedStatementsCount()
           
 java.util.Date getFinishDate()
          Returns date/time when ETL was completed.
 java.util.Date getStartDate()
          Returns date/time when ETL was started.
 long getTotalTime()
          Total ETL execution time or -1 if ETL hasn't completed.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExecutionStatistics

public ExecutionStatistics()
Method Detail

getExecutedStatementsCount

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

getElements

public java.util.Collection<ExecutionStatistics.ElementInfo> getElements()

getCategoriesStatistics

public java.util.Map<java.lang.String,java.lang.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 java.lang.String toString()
Overrides:
toString in class java.lang.Object

getTotalTime

public long getTotalTime()
Total ETL execution time or -1 if ETL hasn't completed.

Returns:
ETL execution time in milliseconds.

getStartDate

public java.util.Date getStartDate()
Returns date/time when ETL was started.

Returns:
ETL start date/time.

getFinishDate

public java.util.Date getFinishDate()
Returns date/time when ETL was completed.

Returns:
ETL finish date/time.


Copyright © Copyright 2006-2009 The Scriptella Project Team.