net.ontopia.topicmaps.query.impl.utils
Class SimpleQueryTracer

java.lang.Object
  extended by net.ontopia.topicmaps.query.impl.basic.QueryTracer.TracePrinter
      extended by net.ontopia.topicmaps.query.impl.utils.SimpleQueryTracer
All Implemented Interfaces:
QueryTraceListenerIF

public class SimpleQueryTracer
extends QueryTracer.TracePrinter

INTERNAL: Used to get a trace from a specific query into a writer for ease of display. Warning: this method is not thread-safe; any other queries running simultaneously will pollute the trace.


Field Summary
 
Fields inherited from class net.ontopia.topicmaps.query.impl.basic.QueryTracer.TracePrinter
elapsedThreshold, memoryDeltaThreshold
 
Constructor Summary
SimpleQueryTracer(java.io.Writer out)
           
 
Method Summary
 boolean isEnabled()
           
 void output(java.lang.String message)
           
 
Methods inherited from class net.ontopia.topicmaps.query.impl.basic.QueryTracer.TracePrinter
endQuery, enter, enter, enter, enterOrderBy, enterSelect, leave, leave, leaveOrderBy, leaveSelect, startQuery, trace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleQueryTracer

public SimpleQueryTracer(java.io.Writer out)
Method Detail

isEnabled

public boolean isEnabled()
Overrides:
isEnabled in class QueryTracer.TracePrinter

output

public void output(java.lang.String message)
Overrides:
output in class QueryTracer.TracePrinter


Copyright © 2000-2012 Ontopia.