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
c

csw.alarm.client

AlarmServiceFactory

class AlarmServiceFactory extends AnyRef

Factory to create AlarmService

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

Instance Constructors

  1. new AlarmServiceFactory()

    A java helper to construct AlarmServiceFactory

  2. new AlarmServiceFactory(redisClient: RedisClient = RedisClient.create())

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() @HotSpotIntrinsicCandidate()
  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() @HotSpotIntrinsicCandidate()
  9. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. def jMakeClientApi(host: String, port: Int, system: ActorSystem[_]): IAlarmService

    Creates csw.alarm.api.javadsl.IAlarmService instance for non admin users using host and port of alarm server

    Creates csw.alarm.api.javadsl.IAlarmService instance for non admin users using host and port of alarm server

    host

    of the alarm server

    port

    on which alarm server is running

    system

    an actor system required for underlying actors

    returns

    an instance of csw.alarm.api.javadsl.IAlarmService

  12. def jMakeClientApi(locationService: ILocationService, system: ActorSystem[_]): IAlarmService

    Creates csw.alarm.api.javadsl.IAlarmService instance for non admin users using csw.location.api.javadsl.ILocationService

    locationService

    instance which will be used to resolve the location of alarm server

    system

    an actor system required for underlying actors

    returns

    an instance of csw.alarm.api.javadsl.IAlarmService

  13. def makeAdminApi(host: String, port: Int)(implicit system: ActorSystem[_]): AlarmAdminService

    Creates csw.alarm.api.scaladsl.AlarmAdminService instance for admin users using host port of alarm server

    Creates csw.alarm.api.scaladsl.AlarmAdminService instance for admin users using host port of alarm server

    host

    of the alarm server

    port

    on which alarm server is running

    system

    an actor system required for underlying actors

    returns

    an instance of csw.alarm.api.scaladsl.AlarmAdminService

  14. def makeAdminApi(locationService: LocationService)(implicit system: ActorSystem[_]): AlarmAdminService

    Creates csw.alarm.api.scaladsl.AlarmAdminService instance for admin users using csw.location.api.scaladsl.LocationService

    locationService

    instance which will be used to resolve the location of alarm server

    system

    an actor system required for underlying actors

    returns

    an instance of csw.alarm.api.scaladsl.AlarmAdminService

  15. def makeClientApi(host: String, port: Int)(implicit system: ActorSystem[_]): AlarmService

    Creates csw.alarm.api.scaladsl.AlarmService instance for non admin users using host and port of alarm server

    Creates csw.alarm.api.scaladsl.AlarmService instance for non admin users using host and port of alarm server

    host

    of the alarm server

    port

    on which alarm server is running

    system

    an actor system required for underlying actors

    returns

    an instance of csw.alarm.api.scaladsl.AlarmService

  16. def makeClientApi(locationService: LocationService)(implicit system: ActorSystem[_]): AlarmService

    Creates csw.alarm.api.scaladsl.AlarmService instance for non admin users using csw.location.api.scaladsl.LocationService

    locationService

    instance which will be used to resolve the location of alarm server

    system

    an actor system required for underlying actors

    returns

    an instance of csw.alarm.api.scaladsl.AlarmService

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