org.e2etrace.config
Interface ITraceConfig

All Known Implementing Classes:
DefaultTraceConfig, PropertiesTraceConfig

public interface ITraceConfig

Represents configuration settings of e2etrace.

Author:
Gunther Popp

Method Summary
 boolean isTraceEnabled()
          Is tracing enabled at all?
 boolean isTraceEnabledForId(ITraceStepId id)
          Is tracing enabled for the given trace step id?
 

Method Detail

isTraceEnabled

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.

Returns:
true / false

isTraceEnabledForId

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.

Parameters:
id - the trace id
Returns:
true / false


Copyright © 2013 Gunther Popp. All Rights Reserved.