Packages

  • package root
    Definition Classes
    root
  • package csw
    Definition Classes
    root
  • package alarm
    Definition Classes
    csw
  • package api
    Definition Classes
    alarm
  • 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
  • AlarmRefreshActorFactory
  • AlarmServiceFactory
  • package models
    Definition Classes
    alarm
p

csw.alarm

client

package client

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

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

Package Members

  1. package internal

Type Members

  1. class AlarmServiceFactory extends AnyRef

    Factory to create AlarmService

Value Members

  1. object AlarmRefreshActorFactory

Inherited from AnyRef

Inherited from Any

Ungrouped