org.e2etrace.config
Class DefaultTraceConfig

java.lang.Object
  extended by org.e2etrace.config.DefaultTraceConfig
All Implemented Interfaces:
ITraceConfig

public class DefaultTraceConfig
extends Object
implements ITraceConfig

Default implementation of the e2etrace configuration.

This implementation returns the following default values for all configuration settings:

The default implementation is used by e2etrace if no explicit configuration is set by the user (see ITraceSessionManager.setConfig(ITraceConfig)).

Author:
Gunther Popp

Constructor Summary
DefaultTraceConfig()
          Default constructor.
 
Method Summary
 boolean isTraceEnabled()
          Is tracing enabled at all?
 boolean isTraceEnabledForId(ITraceStepId id)
          Is tracing enabled for the given trace step id?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTraceConfig

public DefaultTraceConfig()
Default constructor.

Method Detail

isTraceEnabled

public boolean isTraceEnabled()
Is tracing enabled at all?

If this method returns false e2etrace does not collect any trace information. All potential time consuming methods of e2etrace will immediately return.

Specified by:
isTraceEnabled in interface ITraceConfig
Returns:
true / false

isTraceEnabledForId

public boolean isTraceEnabledForId(ITraceStepId id)
Is tracing enabled for the given trace step id?

If this method returns false for the given id, e2etrace does not collect any trace information for this specific trace id. Basically, this reduces the amount of collected data but not the general overhead of the trace mechanismn itself. Note: If tracing is disabled for a trace session id, no trace data will be collected for the complete session.

Specified by:
isTraceEnabledForId in interface ITraceConfig
Parameters:
id - the trace id
Returns:
true / false


Copyright © 2013 Gunther Popp. All Rights Reserved.