com.cisco.services.tracing.implementation
Class TraceManagerImpl

java.lang.Object
  extended by com.cisco.services.tracing.implementation.TraceManagerImpl
All Implemented Interfaces:
TraceManager

public class TraceManagerImpl
extends java.lang.Object
implements TraceManager

The TraceManagerImpl class implements the TraceManager interface.

Version:
0.1

Constructor Summary
TraceManagerImpl(java.lang.String moduleName, java.lang.String[] subFacilities, TraceWriterManager traceWriterManager)
           
TraceManagerImpl(java.lang.String moduleName, TraceWriterManager traceWriterManager)
           
 
Method Summary
 void addSubFacilities(java.lang.String[] names)
          Adds subFacilities for this TraceManager/Facility.
 void addSubFacility(java.lang.String name)
          Adds a subFacility for this TraceManager/Facility.
 void disableAll()
          Disables tracing for all Trace objects managed by this TraceManager.
 void disableTimeStamp()
          Disables prefixing a time stamp for every message printed by this TraceManager.
 void enableAll()
          Enables tracing for all Trace objects managed by this TraceManager.
 void enableTimeStamp()
          Enables prefixing a time stamp for every message printed by this TraceManager.
 ConditionalTrace getConditionalTrace(int severity)
          Creates a new ConditionalTrace object or obtains an existing ConditionalTrace object for this condition.
 ConditionalTrace getConditionalTrace(java.lang.String subFacility, int severity)
          Creates a new ConditionalTrace object or obtains an existing ConditionalTrace object for this condition and subFacility
 java.lang.String getName()
          Returns the Facility name for this TraceManager.
 java.lang.String[] getSubFacilities()
          Returns the subFacility names for this TraceManager/Facility.
 java.util.Enumeration getTraces()
          Returns an enumeration of the Trace objects managed by this TraceManager.
 TraceWriterManager getTraceWriterManager()
          Returns the TraceWriter used by this TraceManager.
 UnconditionalTrace getUnconditionalTrace(int severity)
          Creates a new UnconditionalTrace object or obtains an existing UnconditionalTrace object for this condition.
 UnconditionalTrace getUnconditionalTrace(java.lang.String subFacility, int severity)
          Creates a new UnconditionalTrace object or obtains an existing UnconditionalTrace object for this condition and subFacility
 void removeTrace(Trace tc)
          Removes a Trace object given an object.
 void setSubFacilities(java.lang.String[] names)
          Deprecated. replaced by addSubFacilties(String[])
 void setSubFacility(java.lang.String name)
          Deprecated. replaced by addSubFacility(String)
 void setTraceWriterManager(TraceWriterManager out)
          Sets the TraceWriter to be used by this TraceManager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TraceManagerImpl

public TraceManagerImpl(java.lang.String moduleName,
                        java.lang.String[] subFacilities,
                        TraceWriterManager traceWriterManager)

TraceManagerImpl

public TraceManagerImpl(java.lang.String moduleName,
                        TraceWriterManager traceWriterManager)
Method Detail

getConditionalTrace

public ConditionalTrace getConditionalTrace(int severity)
Description copied from interface: TraceManager
Creates a new ConditionalTrace object or obtains an existing ConditionalTrace object for this condition.

Specified by:
getConditionalTrace in interface TraceManager

getConditionalTrace

public ConditionalTrace getConditionalTrace(java.lang.String subFacility,
                                            int severity)
Description copied from interface: TraceManager
Creates a new ConditionalTrace object or obtains an existing ConditionalTrace object for this condition and subFacility

Specified by:
getConditionalTrace in interface TraceManager

getUnconditionalTrace

public UnconditionalTrace getUnconditionalTrace(int severity)
Description copied from interface: TraceManager
Creates a new UnconditionalTrace object or obtains an existing UnconditionalTrace object for this condition.

Specified by:
getUnconditionalTrace in interface TraceManager

getUnconditionalTrace

public UnconditionalTrace getUnconditionalTrace(java.lang.String subFacility,
                                                int severity)
Description copied from interface: TraceManager
Creates a new UnconditionalTrace object or obtains an existing UnconditionalTrace object for this condition and subFacility

Specified by:
getUnconditionalTrace in interface TraceManager

getTraceWriterManager

public TraceWriterManager getTraceWriterManager()
Description copied from interface: TraceManager
Returns the TraceWriter used by this TraceManager.

Specified by:
getTraceWriterManager in interface TraceManager

setTraceWriterManager

public void setTraceWriterManager(TraceWriterManager out)
Description copied from interface: TraceManager
Sets the TraceWriter to be used by this TraceManager.

Specified by:
setTraceWriterManager in interface TraceManager

removeTrace

public void removeTrace(Trace tc)
Description copied from interface: TraceManager
Removes a Trace object given an object.

Specified by:
removeTrace in interface TraceManager

getTraces

public java.util.Enumeration getTraces()
Description copied from interface: TraceManager
Returns an enumeration of the Trace objects managed by this TraceManager.

Specified by:
getTraces in interface TraceManager

enableAll

public void enableAll()
Description copied from interface: TraceManager
Enables tracing for all Trace objects managed by this TraceManager.

Specified by:
enableAll in interface TraceManager

disableAll

public void disableAll()
Description copied from interface: TraceManager
Disables tracing for all Trace objects managed by this TraceManager.

Specified by:
disableAll in interface TraceManager

getName

public java.lang.String getName()
Description copied from interface: TraceManager
Returns the Facility name for this TraceManager.

Specified by:
getName in interface TraceManager

enableTimeStamp

public void enableTimeStamp()
Description copied from interface: TraceManager
Enables prefixing a time stamp for every message printed by this TraceManager.

Specified by:
enableTimeStamp in interface TraceManager

disableTimeStamp

public void disableTimeStamp()
Description copied from interface: TraceManager
Disables prefixing a time stamp for every message printed by this TraceManager.

Specified by:
disableTimeStamp in interface TraceManager

getSubFacilities

public java.lang.String[] getSubFacilities()
Returns the subFacility names for this TraceManager/Facility.

Specified by:
getSubFacilities in interface TraceManager

setSubFacilities

public void setSubFacilities(java.lang.String[] names)
Deprecated. replaced by addSubFacilties(String[])

Sets subFacilities for this TraceManager/Facility.

Specified by:
setSubFacilities in interface TraceManager

addSubFacilities

public void addSubFacilities(java.lang.String[] names)
Adds subFacilities for this TraceManager/Facility.

Specified by:
addSubFacilities in interface TraceManager

setSubFacility

public void setSubFacility(java.lang.String name)
Deprecated. replaced by addSubFacility(String)

Adds a subFacility for this TraceManager/Facility.

Specified by:
setSubFacility in interface TraceManager

addSubFacility

public void addSubFacility(java.lang.String name)
Adds a subFacility for this TraceManager/Facility.

Specified by:
addSubFacility in interface TraceManager