com.cisco.services.tracing.implementation
Class ConditionalTraceImpl

java.lang.Object
  extended by com.cisco.services.tracing.implementation.TraceImpl
      extended by com.cisco.services.tracing.implementation.ConditionalTraceImpl
All Implemented Interfaces:
ConditionalTrace, Trace

public final class ConditionalTraceImpl
extends TraceImpl
implements ConditionalTrace


Field Summary
 
Fields inherited from interface com.cisco.services.tracing.Trace
ALERTS, ALERTS_TRACE_NAME, CRITICAL, CRITICAL_TRACE_NAME, DEBUGGING, DEBUGGING_TRACE_NAME, EMERGENCIES, EMERGENCIES_TRACE_NAME, ERROR, ERROR_TRACE_NAME, HIGHEST_LEVEL, INFORMATIONAL, INFORMATIONAL_TRACE_NAME, LOWEST_LEVEL, NOTIFICATION, NOTIFICATION_TRACE_NAME, WARNING, WARNING_TRACE_NAME
 
Method Summary
 void disable()
          Disables this condition for tracing.
 void enable()
          Enables this condition for tracing.
 boolean isEnabled()
          Returns the state of this Trace object.
 
Methods inherited from class com.cisco.services.tracing.implementation.TraceImpl
getName, getSubFacility, getType, println, println, println, println, setDefaultMnemonic
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.cisco.services.tracing.Trace
getName, getSubFacility, getType, println, println, println, println, setDefaultMnemonic
 

Method Detail

enable

public void enable()
Description copied from interface: ConditionalTrace
Enables this condition for tracing.

Specified by:
enable in interface ConditionalTrace

disable

public void disable()
Description copied from interface: ConditionalTrace
Disables this condition for tracing.

Specified by:
disable in interface ConditionalTrace

isEnabled

public boolean isEnabled()
Description copied from interface: Trace
Returns the state of this Trace object. By default, Trace objects are enabled, that is, println() method will always trace. The state may not be changed through this interface, however, this object may implement additional interfaces that allow the state to be changed.

Specified by:
isEnabled in interface Trace
Returns:
true if tracing is enabled, false otherwise
See Also:
ConditionalTrace