com.ibm.ejs.ras
Class RawTraceList.PatternLevel
- java.lang.Object
com.ibm.ejs.ras.RawTraceList.PatternLevel
Direct known subclasses:
Enclosing class:
- public static class RawTraceList.PatternLevel
- extends java.lang.Object
Field Summary
Modifier and Type | Field and Description |
---|---|
|
SPLIT_STRING
|
|
WILDCARD_STRING
|
Constructor Summary
Constructor and Description |
---|
RawTraceList.PatternLevel(java.lang.String patternString)
constructor that takes a properties/like string with an equals sign
|
RawTraceList.PatternLevel(java.lang.String pattern,java.util.logging.Level level)
constructor with the typical logger name pattern and level
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
compareTo(RawTraceList.PatternLevel pl)
overRide of basic function which makes it simpler to add entries in sort order with logger name being in ascending order
followed by level in descending order
|
|
getLevel()
|
|
getLoggerName()
|
|
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail
WILDCARD_STRING
- public static final java.lang.String WILDCARD_STRING
See Also:
SPLIT_STRING
- public static final java.lang.String SPLIT_STRING
See Also:
Constructor Detail
RawTraceList.PatternLevel
- public RawTraceList.PatternLevel( java.lang.String pattern,
- java.util.logging.Level level)
- throws com.ibm.ejs.ras.DuplicateKeyException
- java.lang.IllegalArgumentException
constructor with the typical logger name pattern and level
Parameters:
pattern
- logger name pattern. Can end with * level
- Minimum level that this logger can be set to. Throws:
com.ibm.ejs.ras.DuplicateKeyException
java.lang.IllegalArgumentException
RawTraceList.PatternLevel
- public RawTraceList.PatternLevel( java.lang.String patternString)
- throws com.ibm.ejs.ras.DuplicateKeyException
- java.lang.IllegalArgumentException
constructor that takes a properties/like string with an equals sign
Parameters:
patternString
- properties-like string containing a loggerName pattern an equals sign and a level name Throws:
com.ibm.ejs.ras.DuplicateKeyException
java.lang.IllegalArgumentException
Method Detail
compareTo
- public int compareTo(RawTraceList.PatternLevel pl)
overRide of basic function which makes it simpler to add entries in sort order with logger name being in ascending order
followed by level in descending order
Parameters:
pl
- entry to compare to Returns:
0 if entries are =, -1 (<0) ifplsortshigher,+1(> 0) if pl sorts lower
getLevel
- public java.util.logging.Level getLevel( )
getLoggerName
- public java.lang.String getLoggerName( )
toString
- public java.lang.String toString( )
Overrides:
toString
in class java.lang.Object