com.cisco.services.tracing.implementation
Class TraceImpl

java.lang.Object
  extended by com.cisco.services.tracing.implementation.TraceImpl
All Implemented Interfaces:
Trace
Direct Known Subclasses:
ConditionalTraceImpl, UnconditionalTraceImpl

public abstract class TraceImpl
extends java.lang.Object
implements Trace


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
 java.lang.String getName()
          Returns the name of this Trace object.
 java.lang.String getSubFacility()
          Returns the subFacility of trace
 int getType()
          Returns the type of trace.
 void println(java.lang.Object object)
          Prints the string returned by the Object.toString() method and terminates the line as defined by the system.
 void println(java.lang.String message)
          Prints a message in the same format as Trace.print() and terminates the line as defined by the system.
 void println(java.lang.String mnemonic, java.lang.Object object)
          Prints the string returned by the Object.toString() method and terminates the line as defined by the system.
 void println(java.lang.String mnemonic, java.lang.String message)
          Prints a message in the same format as Trace.print() and terminates the line as defined by the system.
 void setDefaultMnemonic(java.lang.String mnemonic)
          Sets a default mnemonic for all messages printed out to this trace.
 
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
isEnabled
 

Method Detail

println

public final void println(java.lang.String message)
Description copied from interface: Trace
Prints a message in the same format as Trace.print() and terminates the line as defined by the system.

Specified by:
println in interface Trace
Parameters:
message - the message to be printed

println

public final void println(java.lang.String mnemonic,
                          java.lang.String message)
Description copied from interface: Trace
Prints a message in the same format as Trace.print() and terminates the line as defined by the system.

Specified by:
println in interface Trace
Parameters:
mnemonic - the mnemonic mapped to message to be printed
message - the message to be printed

println

public final void println(java.lang.Object object)
Description copied from interface: Trace
Prints the string returned by the Object.toString() method and terminates the line as defined by the system.

Specified by:
println in interface Trace
Parameters:
object - the object to be printed

println

public final void println(java.lang.String mnemonic,
                          java.lang.Object object)
Description copied from interface: Trace
Prints the string returned by the Object.toString() method and terminates the line as defined by the system.

Specified by:
println in interface Trace
Parameters:
mnemonic - the mnemonic mapped to message to be printed
object - the object to be printed

getName

public final java.lang.String getName()
Description copied from interface: Trace
Returns the name of this Trace object.

Specified by:
getName in interface Trace
Returns:
the name of this Trace object

setDefaultMnemonic

public final void setDefaultMnemonic(java.lang.String mnemonic)
Description copied from interface: Trace
Sets a default mnemonic for all messages printed out to this trace.

Specified by:
setDefaultMnemonic in interface Trace
Parameters:
mnemonic - a mnemonic string

getType

public int getType()
Description copied from interface: Trace
Returns the type of trace.

Specified by:
getType in interface Trace
Returns:
the trace severity as specified in Syslog. DEBUGGING, INFORMATIONAL, WARNING, etc.

getSubFacility

public java.lang.String getSubFacility()
Description copied from interface: Trace
Returns the subFacility of trace

Specified by:
getSubFacility in interface Trace
Returns:
the trace subFacility type