net.ontopia.topicmaps.query.utils
Class TologSpy

java.lang.Object
  extended by net.ontopia.topicmaps.query.utils.TologSpy

public class TologSpy
extends java.lang.Object

PUBLIC: Query profiler for tolog. Note that it must be turned on by a call to setIsRecording() in order to start recording data.

Since:
5.0.0

Constructor Summary
TologSpy()
           
 
Method Summary
static void clear()
          PUBLIC: Clears recorded data.
static void generateReport(java.io.Writer out)
          PUBLIC: Produce profiling report.
static boolean getIsRecording()
          PUBLIC: Returns true if the profiler is recording query data.
static void recordExecute(TologQuery query, long start, long end)
          INTERNAL: Records data about a query.
static void setIsRecording(boolean recording)
          PUBLIC: Used to turn recording on and off.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TologSpy

public TologSpy()
Method Detail

getIsRecording

public static boolean getIsRecording()
PUBLIC: Returns true if the profiler is recording query data.


setIsRecording

public static void setIsRecording(boolean recording)
PUBLIC: Used to turn recording on and off.


clear

public static void clear()
PUBLIC: Clears recorded data.


generateReport

public static void generateReport(java.io.Writer out)
                           throws java.io.IOException
PUBLIC: Produce profiling report.

Throws:
java.io.IOException

recordExecute

public static void recordExecute(TologQuery query,
                                 long start,
                                 long end)
INTERNAL: Records data about a query.



Copyright © 2000-2012 Ontopia.