com.cisco.services.tracing
Interface TraceWriterManager

All Superinterfaces:
TraceWriter
All Known Implementing Classes:
TraceWriterManagerImpl

public interface TraceWriterManager
extends TraceWriter

TraceWriterManager contains the list of TraceWriter objects that are used to implement the tracing. The list is populated at startup from the switches in a .ini file. A LogFileTraceWriter, a ConsoleTraceWriter, and a SyslogTraceWriter are available. Users can override the existing TraceWriters by setting a user implemented TraceWriter[] or adding to the existing TraceWriters. This makes it possible to add other TraceWriters that can function along with exisiting trace writers.


Method Summary
 void addTraceWriter(TraceWriter traceWriter)
          Add another TraceWriter to the array
 TraceWriter[] getTraceWriters()
           
 void removeTraceWriter(TraceWriter traceWriter)
          Remove the TraceWriter from the array in the manager
 void setTraceWriters(TraceWriter[] traceWriters)
          Implementations can use this method to override or enhance the provided TraceWriters
 
Methods inherited from interface com.cisco.services.tracing.TraceWriter
close, flush, getDescription, getEnabled, getName, getTraceLevels, println, setTraceLevels
 

Method Detail

getTraceWriters

TraceWriter[] getTraceWriters()
Returns:
the array of TraceWriters in the manager

setTraceWriters

void setTraceWriters(TraceWriter[] traceWriters)
Implementations can use this method to override or enhance the provided TraceWriters

Parameters:
traceWriters - An array of TraceWriters.

addTraceWriter

void addTraceWriter(TraceWriter traceWriter)
Add another TraceWriter to the array

Parameters:
traceWriter - TraceWriter to be added to the list

removeTraceWriter

void removeTraceWriter(TraceWriter traceWriter)
Remove the TraceWriter from the array in the manager