Class AlarmServiceFactory


  • public class AlarmServiceFactory
    extends java.lang.Object
    Factory to create AlarmService
    • Constructor Summary

      Constructors 
      Constructor Description
      AlarmServiceFactory()
      A java helper to construct AlarmServiceFactory
      AlarmServiceFactory​(io.lettuce.core.RedisClient redisClient)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      IAlarmService jMakeClientApi​(ILocationService locationService, akka.actor.typed.ActorSystem<?> system)
      Creates IAlarmService instance for non admin users using ILocationService
      IAlarmService jMakeClientApi​(java.lang.String host, int port, akka.actor.typed.ActorSystem<?> system)
      Creates IAlarmService instance for non admin users using host and port of alarm server
      csw.alarm.api.scaladsl.AlarmAdminService makeAdminApi​(csw.location.api.scaladsl.LocationService locationService, akka.actor.typed.ActorSystem<?> system)
      Creates AlarmAdminService instance for admin users using LocationService
      csw.alarm.api.scaladsl.AlarmAdminService makeAdminApi​(java.lang.String host, int port, akka.actor.typed.ActorSystem<?> system)
      Creates AlarmAdminService instance for admin users using host port of alarm server
      csw.alarm.client.internal.AlarmServiceImpl makeAlarmImpl​(csw.location.api.scaladsl.LocationService locationService, akka.actor.typed.ActorSystem<?> system)  
      csw.alarm.api.scaladsl.AlarmService makeClientApi​(csw.location.api.scaladsl.LocationService locationService, akka.actor.typed.ActorSystem<?> system)
      Creates AlarmService instance for non admin users using LocationService
      csw.alarm.api.scaladsl.AlarmService makeClientApi​(java.lang.String host, int port, akka.actor.typed.ActorSystem<?> system)
      Creates AlarmService instance for non admin users using host and port of alarm server
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AlarmServiceFactory

        public AlarmServiceFactory​(io.lettuce.core.RedisClient redisClient)
      • AlarmServiceFactory

        public AlarmServiceFactory()
        A java helper to construct AlarmServiceFactory

    • Method Detail

      • makeAdminApi

        public csw.alarm.api.scaladsl.AlarmAdminService makeAdminApi​(csw.location.api.scaladsl.LocationService locationService,
                                                                     akka.actor.typed.ActorSystem<?> system)
        Creates AlarmAdminService instance for admin users using LocationService

        Parameters:
        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 AlarmAdminService
      • makeAdminApi

        public csw.alarm.api.scaladsl.AlarmAdminService makeAdminApi​(java.lang.String host,
                                                                     int port,
                                                                     akka.actor.typed.ActorSystem<?> system)
        Creates AlarmAdminService instance for admin users using host port of alarm server

        Parameters:
        host - of the alarm server
        port - on which alarm server is running
        system - an actor system required for underlying actors
        Returns:
        an instance of AlarmAdminService
      • makeClientApi

        public csw.alarm.api.scaladsl.AlarmService makeClientApi​(csw.location.api.scaladsl.LocationService locationService,
                                                                 akka.actor.typed.ActorSystem<?> system)
        Creates AlarmService instance for non admin users using LocationService

        Parameters:
        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 AlarmService
      • makeClientApi

        public csw.alarm.api.scaladsl.AlarmService makeClientApi​(java.lang.String host,
                                                                 int port,
                                                                 akka.actor.typed.ActorSystem<?> system)
        Creates AlarmService instance for non admin users using host and port of alarm server

        Parameters:
        host - of the alarm server
        port - on which alarm server is running
        system - an actor system required for underlying actors
        Returns:
        an instance of AlarmService
      • jMakeClientApi

        public IAlarmService jMakeClientApi​(ILocationService locationService,
                                            akka.actor.typed.ActorSystem<?> system)
        Creates IAlarmService instance for non admin users using ILocationService

        Parameters:
        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 IAlarmService
      • jMakeClientApi

        public IAlarmService jMakeClientApi​(java.lang.String host,
                                            int port,
                                            akka.actor.typed.ActorSystem<?> system)
        Creates IAlarmService instance for non admin users using host and port of alarm server

        Parameters:
        host - of the alarm server
        port - on which alarm server is running
        system - an actor system required for underlying actors
        Returns:
        an instance of IAlarmService
      • makeAlarmImpl

        public csw.alarm.client.internal.AlarmServiceImpl makeAlarmImpl​(csw.location.api.scaladsl.LocationService locationService,
                                                                        akka.actor.typed.ActorSystem<?> system)