Class TologSpy
- java.lang.Object
-
- net.ontopia.topicmaps.query.utils.TologSpy
-
public class TologSpy extends 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
Constructors Constructor Description TologSpy()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
clear()
PUBLIC: Clears recorded data.static void
generateReport(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.
-
-
-
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(Writer out) throws IOException
PUBLIC: Produce profiling report.- Throws:
IOException
-
recordExecute
public static void recordExecute(TologQuery query, long start, long end)
INTERNAL: Records data about a query.
-
-