Packages

c

com.digitalasset.canton.logging

ThrottleFilterEvaluator

class ThrottleFilterEvaluator extends EvaluatorFilter[ILoggingEvent]

Throttles logging events, so that no more than maxLoggedOverPeriod unique events are logged over expiryPeriod. De-duplicates logging events over expiryPeriod. Used to ensure that the interactive console remains usable even when the system is in a bad state and logging many errors. Inspired by https://github.com/RotterdamLogisticsLab/logback-throttle/blob/master/src/main/kotlin/com/portofrotterdam/dbs/public/logback/throttle/Throttle.kt

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ThrottleFilterEvaluator
  2. EvaluatorFilter
  3. AbstractMatcherFilter
  4. Filter
  5. LifeCycle
  6. ContextAwareBase
  7. ContextAware
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ThrottleFilterEvaluator()

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addError(arg0: String, arg1: Throwable): Unit
    Definition Classes
    ContextAwareBase → ContextAware
  5. def addError(arg0: String): Unit
    Definition Classes
    ContextAwareBase → ContextAware
  6. def addInfo(arg0: String, arg1: Throwable): Unit
    Definition Classes
    ContextAwareBase → ContextAware
  7. def addInfo(arg0: String): Unit
    Definition Classes
    ContextAwareBase → ContextAware
  8. def addStatus(arg0: Status): Unit
    Definition Classes
    ContextAwareBase → ContextAware
  9. def addWarn(arg0: String, arg1: Throwable): Unit
    Definition Classes
    ContextAwareBase → ContextAware
  10. def addWarn(arg0: String): Unit
    Definition Classes
    ContextAwareBase → ContextAware
  11. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  12. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  13. def decide(arg0: ILoggingEvent): FilterReply
    Definition Classes
    EvaluatorFilter → Filter
  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  16. val expiryPeriod: AtomicLong
  17. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. def getContext(): Context
    Definition Classes
    ContextAwareBase → ContextAware
  19. def getDeclaredOrigin(): AnyRef
    Attributes
    protected[spi]
    Definition Classes
    ContextAwareBase
  20. def getEvaluator(): EventEvaluator[ILoggingEvent]
    Definition Classes
    EvaluatorFilter
  21. def getName(): String
    Definition Classes
    Filter
  22. final def getOnMatch(): FilterReply
    Definition Classes
    AbstractMatcherFilter
  23. final def getOnMismatch(): FilterReply
    Definition Classes
    AbstractMatcherFilter
  24. def getStatusManager(): StatusManager
    Definition Classes
    ContextAwareBase
  25. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  26. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  27. def isStarted(): Boolean
    Definition Classes
    Filter → LifeCycle
  28. val maxLoggedOverPeriod: AtomicLong
  29. val messageCache: TrieMap[String, Long]
  30. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  31. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  32. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  33. def setContext(arg0: Context): Unit
    Definition Classes
    ContextAwareBase → ContextAware
  34. def setEvaluator(arg0: EventEvaluator[ILoggingEvent]): Unit
    Definition Classes
    EvaluatorFilter
  35. def setExpiryPeriod(newValue: Long): Unit
  36. def setMaxLoggedOverPeriod(newValue: Long): Unit
  37. def setName(arg0: String): Unit
    Definition Classes
    Filter
  38. final def setOnMatch(arg0: FilterReply): Unit
    Definition Classes
    AbstractMatcherFilter
  39. final def setOnMismatch(arg0: FilterReply): Unit
    Definition Classes
    AbstractMatcherFilter
  40. def start(): Unit
    Definition Classes
    ThrottleFilterEvaluator → EvaluatorFilter → Filter → LifeCycle
  41. def stop(): Unit
    Definition Classes
    Filter → LifeCycle
  42. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  43. def toString(): String
    Definition Classes
    AnyRef → Any
  44. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  45. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  46. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Filter[ILoggingEvent]

Inherited from LifeCycle

Inherited from ContextAwareBase

Inherited from ContextAware

Inherited from AnyRef

Inherited from Any

Ungrouped