trait HealthComponent extends BaseHealthComponent
Implements health component Base using ComponentHealthState as a state. Suitable for most components unless there is a need for a custom State type.
- Self Type
- HealthComponent with NamedLogging with FlagCloseable
- Alphabetic
- By Inheritance
- HealthComponent
- BaseHealthComponent
- HealthElement
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- type HealthListener = (HealthComponent.this, (HealthComponent.this)#State, TraceContext) => Unit
- Definition Classes
- HealthElement
- type State = ComponentHealthState
- Definition Classes
- HealthComponent → BaseHealthComponent → HealthElement
Abstract Value Members
- abstract def initialHealthState: (HealthComponent.this)#State
- Attributes
- protected
- Definition Classes
- BaseHealthComponent
- abstract def name: String
Name of the health element.
Name of the health element. Used for logging.
- Definition Classes
- HealthElement
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- val closingState: ComponentHealthState
- Definition Classes
- HealthComponent → BaseHealthComponent
- def degradationOccurred(error: String)(implicit tc: TraceContext): Unit
Report that the component is now degraded.
Report that the component is now degraded. Note that this will override the component state, even if it is currently failed!
- def degradationOccurred(error: CantonError)(implicit tc: TraceContext): Unit
Report that the component is now degraded.
Report that the component is now degraded. Note that this will override the component state, even if it is currently failed!
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def failureOccurred(error: String)(implicit tc: TraceContext): Unit
Report that the component is now failed
- def failureOccurred(error: CantonError)(implicit tc: TraceContext): Unit
Report that the component is now failed
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def getState: (HealthComponent.this)#State
Current state
Current state
- Definition Classes
- BaseHealthComponent → HealthElement
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def isFailed: Boolean
- Definition Classes
- BaseHealthComponent
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val listeners: AtomicReference[List[(HealthComponent.this)#HealthListener]]
- Attributes
- protected
- Definition Classes
- HealthElement
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def registerOnHealthChange(listener: (HealthComponent.this)#HealthListener): Unit
- Definition Classes
- BaseHealthComponent → HealthElement
- def reportHealthState(state: (HealthComponent.this)#State)(implicit tc: TraceContext): Boolean
- Definition Classes
- BaseHealthComponent
- def reportHealthState_(state: (HealthComponent.this)#State)(implicit tc: TraceContext): Unit
- Definition Classes
- BaseHealthComponent
- def resolveUnhealthy(implicit traceContext: TraceContext): Boolean
Set the health state to Ok and if the previous state was unhealthy, log a message to inform about the resolution of the ongoing issue.
- def resolveUnhealthy_(implicit traceContext: TraceContext): Unit
- lazy val stateRef: AtomicReference[(HealthComponent.this)#State]
- Attributes
- protected
- Definition Classes
- BaseHealthComponent
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toComponentStatus: ComponentStatus
- Definition Classes
- BaseHealthComponent
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])