net.ontopia.utils
Class QueryProfiler

java.lang.Object
  extended by net.ontopia.utils.QueryProfiler

public class QueryProfiler
extends java.lang.Object

INTERNAL: Statistics collector for profiling queries, whether tolog or SQL.


Constructor Summary
QueryProfiler()
           
 
Method Summary
 void clear()
           
 void generateReport(java.lang.String title, java.io.Writer out)
           
 void recordExecute(java.lang.String ename, long start, long end)
           
 void recordExecuteUpdate(java.lang.String ename, int affectedSize, long start, long end)
           
 void recordTraverse(java.lang.String ename, boolean hasNext, long start, long end)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryProfiler

public QueryProfiler()
Method Detail

clear

public void clear()

recordExecute

public void recordExecute(java.lang.String ename,
                          long start,
                          long end)

recordExecuteUpdate

public void recordExecuteUpdate(java.lang.String ename,
                                int affectedSize,
                                long start,
                                long end)

recordTraverse

public void recordTraverse(java.lang.String ename,
                           boolean hasNext,
                           long start,
                           long end)

generateReport

public void generateReport(java.lang.String title,
                           java.io.Writer out)
                    throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2000-2012 Ontopia.