Packages

  • package root
    Definition Classes
    root
  • package csw
    Definition Classes
    root
  • package alarm
    Definition Classes
    csw
  • package client

    This module implements an Alarm Service responsible for updating and managing alarms for a component.

    Alarm Service

    This module implements an Alarm Service responsible for updating and managing alarms for a component. Alarm service comes in two flavours. One provides admin level management like reset alarm, subscribe to alarm, etc. And other provides component level api e.g. set the severity of an alarm.

    An alarm is uniquely identified within the component with csw.alarm.models.Key.AlarmKey. The alarm key is composed of a csw.prefix.models.Subsystem, component name, alarm name.

    Example: Alarm Service
    val alarmServiceFactory                    = new AlarmServiceFactory()
    val alarmService: AlarmService             = alarmServiceFactory.makeClientApi(locationService)
    val alarmAdminService: AlarmAdminService   = alarmServiceFactory.makeAdminApi(locationService)

    Using above code, you can create instance of csw.alarm.api.scaladsl.AlarmService or csw.alarm.api.scaladsl.AlarmAdminService.

    Example: Alarm Service

    Alarm Service provides asynchronous API to set the severity of an alarm

    val alarmKey = AlarmKey(NFIRAOS, "trombone", "tromboneAxisLowLimitAlarm")
    
    val foo: Future[Done] = async {
       await(clientAPI.setSeverity(alarmKey, Okay))
    }

    Complete guide of usage of different API's provided by AlarmService is available at: https://tmtsoftware.github.io/csw/services/alarm.html

    Definition Classes
    alarm
  • package internal
    Definition Classes
    client
  • AlarmRefreshActorFactory
  • AlarmServiceFactory
o

csw.alarm.client

AlarmRefreshActorFactory

object AlarmRefreshActorFactory

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AlarmRefreshActorFactory
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  9. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. def jMake(setSeverity: BiFunction[AlarmKey, AlarmSeverity, CompletableFuture[Done]], refreshInterval: Duration, actorSystem: ActorSystem[Command]): ActorRef[AutoRefreshSeverityMessage]

    Java API - factory to create AlarmRefreshActor for auto-refreshing alarm severity

    Java API - factory to create AlarmRefreshActor for auto-refreshing alarm severity

    setSeverity

    function responsible for setting severity of alarm

    refreshInterval

    interval after which alarm will be refreshed

    actorSystem

    actorSystem used for creating actor

    returns

    akka.actor.typed.ActorRef which accepts csw.alarm.models.AutoRefreshSeverityMessage

  12. def jMake(alarmService: IAlarmService, refreshInterval: Duration, actorSystem: ActorSystem[Command]): ActorRef[AutoRefreshSeverityMessage]

    Java API - factory to create AlarmRefreshActor for auto-refreshing alarm severity

    Java API - factory to create AlarmRefreshActor for auto-refreshing alarm severity

    alarmService

    instance of alarm service or custom implementation of csw.alarm.api.scaladsl.AlarmService, you can use lambda expression here

    refreshInterval

    interval after which alarm will be refreshed

    actorSystem

    actorSystem used for creating actor

    returns

    akka.actor.typed.ActorRef which accepts csw.alarm.models.AutoRefreshSeverityMessage

  13. def make(alarmService: AlarmService, refreshInterval: FiniteDuration)(implicit actorSystem: ActorSystem[Command]): ActorRef[AutoRefreshSeverityMessage]

    Scala API - factory to create AlarmRefreshActor for auto-refreshing alarm severity

    Scala API - factory to create AlarmRefreshActor for auto-refreshing alarm severity

    alarmService

    instance of alarm service or custom implementation of csw.alarm.api.scaladsl.AlarmService, you can use lambda expression here

    refreshInterval

    interval after which alarm will be refreshed

    actorSystem

    actorSystem used for creating actor

    returns

    akka.actor.typed.ActorRef which accepts csw.alarm.models.AutoRefreshSeverityMessage

  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  17. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  18. def toString(): String
    Definition Classes
    AnyRef → Any
  19. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  20. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  21. 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 AnyRef

Inherited from Any

Ungrouped