com.ibm.websphere.ras
Class TraceComponent

java.lang.Object
  extended by com.ibm.websphere.ras.TraceComponent
All Implemented Interfaces:
FFDCSelfIntrospectable

public class TraceComponent
extends java.lang.Object
implements FFDCSelfIntrospectable

A TraceComponent represents a single component registered for logging. The scoping of the component is arbitrary in that it may represent a single class or it could be shared by several classes.

A TraceComponent should be registered with Tr using a class to assist in finding the associated ResourceBundle for messages. It may have an additional name and one or more groups. The log level for any given component is controlled by a match in the trace specification for the class (including package), name, or trace group.


Method Summary
 java.util.logging.Logger getLogger()
           
 java.util.logging.Level getLoggerLevel()
           
 java.lang.String getName()
           
 java.lang.String getResourceBundleName()
           
 java.lang.Class<?> getTraceClass()
           
 java.lang.String[] introspectSelf()
          Returns String representation(s) of the object's state.
static boolean isAnyTracingEnabled()
           
 boolean isAuditEnabled()
           
 boolean isConfigEnabled()
           
 boolean isDebugEnabled()
           
 boolean isDetailEnabled()
           
 boolean isDumpEnabled()
           
 boolean isEntryEnabled()
           
 boolean isErrorEnabled()
           
 boolean isEventEnabled()
           
 boolean isFatalEnabled()
           
 boolean isInfoEnabled()
           
 boolean isServiceEnabled()
           
 boolean isWarningEnabled()
           
 void setLoggerForCallback(TraceStateChangeListener listener)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

isAnyTracingEnabled

public static boolean isAnyTracingEnabled()

getTraceClass

public java.lang.Class<?> getTraceClass()

getLogger

public java.util.logging.Logger getLogger()

isDumpEnabled

public final boolean isDumpEnabled()

getResourceBundleName

public final java.lang.String getResourceBundleName()

setLoggerForCallback

public final void setLoggerForCallback(TraceStateChangeListener listener)

getName

public final java.lang.String getName()

isDebugEnabled

public final boolean isDebugEnabled()

isEntryEnabled

public final boolean isEntryEnabled()

isEventEnabled

public final boolean isEventEnabled()

isDetailEnabled

public final boolean isDetailEnabled()

isConfigEnabled

public final boolean isConfigEnabled()

isInfoEnabled

public final boolean isInfoEnabled()

isAuditEnabled

public final boolean isAuditEnabled()

isWarningEnabled

public final boolean isWarningEnabled()

isErrorEnabled

public final boolean isErrorEnabled()

isFatalEnabled

public final boolean isFatalEnabled()

isServiceEnabled

public final boolean isServiceEnabled()

getLoggerLevel

public final java.util.logging.Level getLoggerLevel()

introspectSelf

public java.lang.String[] introspectSelf()
Description copied from interface: FFDCSelfIntrospectable
Returns String representation(s) of the object's state.

Implementation of this method should return a String[]. For example:

public String[] introspectSelf() { StringBuffer introspectBuffer = new StringBuffer(); String[] returnValue = new String[2]; introspectBuffer.append("variableName1 = "); introspectBuffer.append(variableName1); returnValue[0] = new String(introspectBuffer); introspectBuffer.setLength(0); introspectBuffer.append("variableName2 = "); introspectBuffer.append(variableName2); returnValue[1] = new String(introspectBuffer); return returnValue; }

Specified by:
introspectSelf in interface FFDCSelfIntrospectable
Returns:
an array of Strings representing the instance variables of this object that do not contain sensitive data.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object