Package com.ibm.websphere.ras
Class TraceComponent
- java.lang.Object
- 
- com.ibm.websphere.ras.TraceComponent
 
- 
- All Implemented Interfaces:
- FFDCSelfIntrospectable
 
 public class TraceComponent extends java.lang.Object implements FFDCSelfIntrospectable ATraceComponentrepresents 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 TraceComponentshould 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 SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.logging.LoggergetLogger()java.util.logging.LevelgetLoggerLevel()java.lang.StringgetName()java.lang.StringgetResourceBundleName()java.lang.Class<?>getTraceClass()java.lang.String[]introspectSelf()Returns an array of Strings representing the object's state.static booleanisAnyTracingEnabled()booleanisAuditEnabled()booleanisConfigEnabled()booleanisDebugEnabled()booleanisDetailEnabled()booleanisDumpEnabled()booleanisEntryEnabled()booleanisErrorEnabled()booleanisEventEnabled()booleanisFatalEnabled()booleanisInfoEnabled()booleanisServiceEnabled()booleanisWarningEnabled()voidsetLoggerForCallback(TraceStateChangeListener listener)java.lang.StringtoString()
 
- 
- 
- 
Method Detail- 
isAnyTracingEnabledpublic static boolean isAnyTracingEnabled() 
 - 
getTraceClasspublic java.lang.Class<?> getTraceClass() 
 - 
getLoggerpublic java.util.logging.Logger getLogger() 
 - 
getResourceBundleNamepublic final java.lang.String getResourceBundleName() 
 - 
setLoggerForCallbackpublic final void setLoggerForCallback(TraceStateChangeListener listener) 
 - 
getNamepublic final java.lang.String getName() 
 - 
isDumpEnabledpublic final boolean isDumpEnabled() 
 - 
isDebugEnabledpublic final boolean isDebugEnabled() 
 - 
isEntryEnabledpublic final boolean isEntryEnabled() 
 - 
isEventEnabledpublic final boolean isEventEnabled() 
 - 
isDetailEnabledpublic final boolean isDetailEnabled() 
 - 
isConfigEnabledpublic final boolean isConfigEnabled() 
 - 
isInfoEnabledpublic final boolean isInfoEnabled() 
 - 
isAuditEnabledpublic final boolean isAuditEnabled() 
 - 
isWarningEnabledpublic final boolean isWarningEnabled() 
 - 
isErrorEnabledpublic final boolean isErrorEnabled() 
 - 
isFatalEnabledpublic final boolean isFatalEnabled() 
 - 
isServiceEnabledpublic final boolean isServiceEnabled() 
 - 
getLoggerLevelpublic final java.util.logging.Level getLoggerLevel() 
 - 
introspectSelfpublic java.lang.String[] introspectSelf() Description copied from interface:FFDCSelfIntrospectableReturns an array of Strings representing the object's state.Do not return any sensitive information in the FFDC dump If the object implements this interface, normal introspection dump will be skipped. Ensure that all information that you want captured in the FFDC is included in the return of this method. The Strings can take the following format: - name=value
- name=
- value
- null
 Example implementation: 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:
- introspectSelfin interface- FFDCSelfIntrospectable
- Returns:
- an array of Strings representing the instance variables of this object that do not contain sensitive data.
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-