com.ibm.ejs.ras

Class RawTraceList.PatternLevel

  • java.lang.Object
    • com.ibm.ejs.ras.RawTraceList.PatternLevel
  • Direct Known Subclasses:
    RawTraceList.PatternLevel
    Enclosing class:
    RawTraceList


    public static class RawTraceList.PatternLevel
    extends java.lang.Object
    internal class that contains the logger name pattern and the minimum allowable logging level. Some special logic to avoid constructing or modifying an entry to become less restrictive
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String SPLIT_STRING 
      static java.lang.String WILDCARD_STRING 
    • Constructor Summary

      Constructors 
      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

      Methods 
      Modifier and Type Method and Description
      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
      java.util.logging.Level getLevel() 
      java.lang.String getLoggerName() 
      java.lang.String toString() 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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) if pl sorts higher, +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
IBM WebSphere Application ServerTM
Release 8.5