net.sf.farrago.trace
Class FarragoTrace

java.lang.Object
  extended by net.sf.farrago.trace.FarragoTrace

public abstract class FarragoTrace
extends Object

Contains all of the tracers used within Farrago.

This class is similar to EigenbaseTrace; see there for a description of how to define tracers.

Since:
May 24, 2004
Version:
$Id: //open/dev/farrago/src/net/sf/farrago/trace/FarragoTrace.java#28 $
Author:
jhyde

Constructor Summary
FarragoTrace()
           
 
Method Summary
static Logger getCalcTracer()
          The "net.sf.farrago.fennel.calc.CalcProgramBuilder" tracer prints the generated program at level Level.FINE or higher.
static Logger getClassTracer(Class clazz)
          Gets the logger to be used for tracing a particular class.
static Logger getDatabaseSessionTracer()
          The tracer "net.sf.farrago.db.FarragoDbSession" traces FarragoDbSession.
static Logger getDatabaseStatementContextTracer()
          The tracer "net.sf.farrago.db.FarragoDbStmtContext" traces FarragoDbStmtContext.
static Logger getDatabaseTracer()
          The tracer "net.sf.farrago.db.FarragoDatabase" traces FarragoDatabase.
static Logger getDdlValidatorTracer()
          The tracer "net.sf.farrago.ddl.DdlValidator" traces DdlValidator.
static Logger getDynamicTracer()
          The tracer "net.sf.farrago.dynamic" controls whether dynamically generated Java code is preserved for debugging (otherwise it is deleted automatically).
static Logger getFarragoJdbcEngineDriverTracer()
          The tracer "net.sf.farrago.jdbc.engine.FarragoJdbcEngineDriver" traces FarragoJdbcEngineDriver.
static Logger getFarragoTupleIterResultSetTracer()
          The tracer "net.sf.farrago.runtime.FarragoTupleIterResultSet" traces FarragoTupleIterResultSet.
static Logger getFennelDbHandleTracer()
          The tracer "net.sf.farrago.fennel.FarragoDbHandle" traces FennelDbHandle.
static Logger getFennelJavaHandleTracer()
          The tracer "net.sf.farrago.fennel.FennelJavaHandle" traces FennelDbHandle.
static Logger getFennelPipeIteratorTracer()
          The tracer "net.sf.farrago.runtime.FennelPipeIterator" traces FennelPipeIterator.
static Logger getFennelStreamGraphTracer()
          The tracer "net.sf.farrago.fennel.FennelStreamGraph" traces FennelStreamGraph.
static Logger getFileAllocationTracer()
          The tracer "net.sf.farrago.util.FarragoFileAllocation" traces FarragoFileAllocation.
static Logger getFileLockAllocationTracer()
          The tracer "net.sf.farrago.util.FarragoFileLockAllocation" traces FarragoFileLockAllocation.
static Logger getMdrTracer()
          The tracer "net.sf.farrago.mdr" traces Farrago's use of MDR.
static Logger getObjectCacheTracer()
          The tracer "net.sf.farrago.util.FarragoObjectCache" traces FarragoObjectCache.
static Logger getOptimizerRuleTracer()
          The tracer "net.sf.farrago.query.rule" traces Farrago's custom optimizer rules.
static Logger getPlanDumpTracer()
          The tracer "net.sf.farrago.query.plandump" cause the plan to be dumped before and after optimization.
static Logger getPlannerVizTracer()
          The tracer "net.sf.farrago.plannerviz" controls JGraph visualization of planner activity.
static Logger getPreparedStreamGraphTracer()
          The tracer "net.sf.farrago.query.streamgraph" traces Fennel execution stream graphs when they are constructed.
static Logger getReposTracer()
          The tracer "net.sf.farrago.catalog.FarragoRepos" traces FarragoRepos.
static Logger getRuntimeContextTracer()
          The "net.sf.farrago.runtime.FarragoRuntimeContext" tracer traces use of the FarragoRuntimeContext class.
static Logger getSyslibTracer()
          The tracer "net.sf.farrago.syslib" traces use of the various system-management UDRs defined in that package.
static Logger getTestTracer()
          The tracer "net.sf.farrago.test.FarragoTestCase" controls tracing during regression tests.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FarragoTrace

public FarragoTrace()
Method Detail

getReposTracer

public static Logger getReposTracer()
The tracer "net.sf.farrago.catalog.FarragoRepos" traces FarragoRepos.


getDatabaseTracer

public static Logger getDatabaseTracer()
The tracer "net.sf.farrago.db.FarragoDatabase" traces FarragoDatabase.


getDatabaseSessionTracer

public static Logger getDatabaseSessionTracer()
The tracer "net.sf.farrago.db.FarragoDbSession" traces FarragoDbSession.


getDatabaseStatementContextTracer

public static Logger getDatabaseStatementContextTracer()
The tracer "net.sf.farrago.db.FarragoDbStmtContext" traces FarragoDbStmtContext.


getDdlValidatorTracer

public static Logger getDdlValidatorTracer()
The tracer "net.sf.farrago.ddl.DdlValidator" traces DdlValidator.


getFennelDbHandleTracer

public static Logger getFennelDbHandleTracer()
The tracer "net.sf.farrago.fennel.FarragoDbHandle" traces FennelDbHandle.


getFennelJavaHandleTracer

public static Logger getFennelJavaHandleTracer()
The tracer "net.sf.farrago.fennel.FennelJavaHandle" traces FennelDbHandle.


getFennelStreamGraphTracer

public static Logger getFennelStreamGraphTracer()
The tracer "net.sf.farrago.fennel.FennelStreamGraph" traces FennelStreamGraph.


getFarragoJdbcEngineDriverTracer

public static Logger getFarragoJdbcEngineDriverTracer()
The tracer "net.sf.farrago.jdbc.engine.FarragoJdbcEngineDriver" traces FarragoJdbcEngineDriver.


getFennelPipeIteratorTracer

public static Logger getFennelPipeIteratorTracer()
The tracer "net.sf.farrago.runtime.FennelPipeIterator" traces FennelPipeIterator.


getFarragoTupleIterResultSetTracer

public static Logger getFarragoTupleIterResultSetTracer()
The tracer "net.sf.farrago.runtime.FarragoTupleIterResultSet" traces FarragoTupleIterResultSet.


getTestTracer

public static Logger getTestTracer()
The tracer "net.sf.farrago.test.FarragoTestCase" controls tracing during regression tests.

See Also:
FarragoTestCase

getFileAllocationTracer

public static Logger getFileAllocationTracer()
The tracer "net.sf.farrago.util.FarragoFileAllocation" traces FarragoFileAllocation.


getFileLockAllocationTracer

public static Logger getFileLockAllocationTracer()
The tracer "net.sf.farrago.util.FarragoFileLockAllocation" traces FarragoFileLockAllocation.


getObjectCacheTracer

public static Logger getObjectCacheTracer()
The tracer "net.sf.farrago.util.FarragoObjectCache" traces FarragoObjectCache.


getDynamicTracer

public static Logger getDynamicTracer()
The tracer "net.sf.farrago.dynamic" controls whether dynamically generated Java code is preserved for debugging (otherwise it is deleted automatically).


getPreparedStreamGraphTracer

public static Logger getPreparedStreamGraphTracer()
The tracer "net.sf.farrago.query.streamgraph" traces Fennel execution stream graphs when they are constructed.


getPlanDumpTracer

public static Logger getPlanDumpTracer()
The tracer "net.sf.farrago.query.plandump" cause the plan to be dumped before and after optimization.


getPlannerVizTracer

public static Logger getPlannerVizTracer()
The tracer "net.sf.farrago.plannerviz" controls JGraph visualization of planner activity. See wiki for details.

Visualization behavior of the plugin can be controlled via this trace setting:

  1. Level.FINE: render only logical equivalence classes
  2. Level.FINER: render only physical equivalence classes
  3. Level.FINEST: render both logical and physical equivalence classes


getOptimizerRuleTracer

public static Logger getOptimizerRuleTracer()
The tracer "net.sf.farrago.query.rule" traces Farrago's custom optimizer rules.


getMdrTracer

public static Logger getMdrTracer()
The tracer "net.sf.farrago.mdr" traces Farrago's use of MDR.


getCalcTracer

public static Logger getCalcTracer()
The "net.sf.farrago.fennel.calc.CalcProgramBuilder" tracer prints the generated program at level Level.FINE or higher.


getRuntimeContextTracer

public static Logger getRuntimeContextTracer()
The "net.sf.farrago.runtime.FarragoRuntimeContext" tracer traces use of the FarragoRuntimeContext class.


getSyslibTracer

public static Logger getSyslibTracer()
The tracer "net.sf.farrago.syslib" traces use of the various system-management UDRs defined in that package.


getClassTracer

public static Logger getClassTracer(Class clazz)
Gets the logger to be used for tracing a particular class.

Parameters:
clazz - the class to trace
Returns:
appropriate Logger instance