t

com.digitalasset.canton.health

CompositeHealthComponent

trait CompositeHealthComponent[ID, HE <: HealthElement] extends CompositeHealthElement[ID, HE] with HealthComponent

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CompositeHealthComponent
  2. HealthComponent
  3. HealthQuasiComponent
  4. CompositeHealthElement
  5. HealthElement
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. type State = ComponentHealthState

    The type of health states exposed by this component

    The type of health states exposed by this component

    Definition Classes
    HealthComponentHealthQuasiComponentHealthElement

Abstract Value Members

  1. abstract def associatedHasRunOnClosing: HasRunOnClosing

    The com.digitalasset.canton.lifecycle.HasRunOnClosing associated with this object.

    The com.digitalasset.canton.lifecycle.HasRunOnClosing associated with this object.

    When this com.digitalasset.canton.lifecycle.HasRunOnClosing closes, the health state permanently becomes closingState and all listeners are notified about this.

    Attributes
    protected
    Definition Classes
    HealthElement
  2. abstract def combineDependentStates: State

    Fetch the current states from the relevant dependencies and combine them into the new state to report for this element.

    Fetch the current states from the relevant dependencies and combine them into the new state to report for this element.

    Attributes
    protected
    Definition Classes
    CompositeHealthElement
  3. abstract def initialHealthState: State

    The initial state upon creation

    The initial state upon creation

    Attributes
    protected
    Definition Classes
    HealthElement
  4. abstract def logger: TracedLogger
    Attributes
    protected
    Definition Classes
    HealthElement
  5. abstract def name: String

    Name of the health element.

    Name of the health element. Used for logging.

    Definition Classes
    HealthElement

Concrete 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 alterDependencies(remove: Set[ID], add: Map[ID, HE]): Unit

    First removes all dependencies in remove, then adds all those in add.

    First removes all dependencies in remove, then adds all those in add. If an ID appears in remove and add, then the ID is replaced. Refreshes the state if any of the dependencies was changed.

    Updates of dependencies are not atomic: If this method is called concurrently multiple times, the resulting dependencies may not correspond to a serializable execution.

    If an dependency triggers a concurrent state refresh, then the state refresh may see an inconsistent set of dependencies and therefore derive an inconsistent state. This however is only temporary as in this case another state refresh will be triggered at the end.

    Attributes
    protected
    Definition Classes
    CompositeHealthElement
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  7. def closingState: ComponentHealthState

    The state set when the associatedHasRunOnClosing closes

    The state set when the associatedHasRunOnClosing closes

    Definition Classes
    HealthComponentHealthQuasiComponentHealthElement
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  11. def getDependencies: Map[ID, HE]
    Attributes
    protected
    Definition Classes
    CompositeHealthElement
  12. final def getState: State

    Returns the current state

    Returns the current state

    Definition Classes
    HealthElement
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  14. def isDegraded: Boolean
    Definition Classes
    HealthQuasiComponent
  15. def isFailed: Boolean
    Definition Classes
    HealthQuasiComponent
  16. def isFatal: Boolean
    Definition Classes
    HealthQuasiComponent
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. def isOk: Boolean
    Definition Classes
    HealthQuasiComponent
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  22. def prettyState: Pretty[State]
    Attributes
    protected
    Definition Classes
    HealthQuasiComponentHealthElement
  23. def refreshFromDependencies()(implicit traceContext: TraceContext): Unit
    Attributes
    protected
    Definition Classes
    CompositeHealthElement
  24. def refreshState(newState: Eval[State])(implicit traceContext: TraceContext): Unit

    Triggers a refresh of the component's state, using newState to determine the new state.

    Triggers a refresh of the component's state, using newState to determine the new state. May return before the newState has been evaluated and the listeners have been poked.

    Note that listeners need not be poked about every state change; it suffices that they are poked eventually after each state change. So if there are frequent updates to the state, possibly from concurrent calls, then the listeners may never see some intermediate states.

    Attributes
    protected
    Definition Classes
    HealthElement
  25. def registerHighPriorityOnHealthChange(listener: HealthListener): Boolean

    Registers a high priority listener that gets poked upon each change of this element's health state.

    Registers a high priority listener that gets poked upon each change of this element's health state. This listener will be run before listeners registered via registerOnHealthChange

    returns

    Whether the listener was not registered before

    Definition Classes
    HealthElement
  26. def registerOnHealthChange(listener: HealthListener, pokeIfNew: Boolean = true): Boolean

    Registers a listener that gets poked upon each change of this element's health state.

    Registers a listener that gets poked upon each change of this element's health state.

    pokeIfNew

    if true (default), poke the listener if it's new

    returns

    Whether the listener was not registered before

    Definition Classes
    HealthElement
  27. def removeDependency(id: ID): Unit
    Attributes
    protected
    Definition Classes
    CompositeHealthElement
  28. def setDependency(id: ID, dependency: HE): Unit
    Attributes
    protected
    Definition Classes
    CompositeHealthElement
  29. def stateLoggingLevel(state: ComponentHealthState): Level
    Attributes
    protected
    Definition Classes
    HealthComponentHealthElement
  30. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  31. def toComponentStatus: ComponentStatus
    Definition Classes
    HealthQuasiComponent
  32. def toString(): String
    Definition Classes
    AnyRef → Any
  33. def unregisterOnHealthChange(listener: HealthListener): Boolean

    Unregisters a listener.

    Unregisters a listener.

    returns

    Whether the listener was registered before.

    Definition Classes
    HealthElement
  34. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  35. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  36. 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

    (Since version 9)

Inherited from HealthComponent

Inherited from HealthQuasiComponent

Inherited from CompositeHealthElement[ID, HE]

Inherited from HealthElement

Inherited from AnyRef

Inherited from Any

Ungrouped