Package csw.alarm.client
Class AlarmServiceFactory
java.lang.Object
csw.alarm.client.AlarmServiceFactory
Factory to create AlarmService
-
Constructor Summary
ConstructorDescriptionA java helper to construct AlarmServiceFactoryAlarmServiceFactory
(io.lettuce.core.RedisClient redisClient) -
Method Summary
Modifier and TypeMethodDescriptionjMakeClientApi
(ILocationService locationService, akka.actor.typed.ActorSystem<?> system) CreatesIAlarmService
instance for non admin users usingILocationService
jMakeClientApi
(String host, int port, akka.actor.typed.ActorSystem<?> system) CreatesIAlarmService
instance for non admin users using host and port of alarm servercsw.alarm.api.scaladsl.AlarmAdminService
makeAdminApi
(csw.location.api.scaladsl.LocationService locationService, akka.actor.typed.ActorSystem<?> system) CreatesAlarmAdminService
instance for admin users usingLocationService
csw.alarm.api.scaladsl.AlarmAdminService
makeAdminApi
(String host, int port, akka.actor.typed.ActorSystem<?> system) CreatesAlarmAdminService
instance for admin users using host port of alarm servercsw.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) CreatesAlarmService
instance for non admin users usingLocationService
csw.alarm.api.scaladsl.AlarmService
makeClientApi
(String host, int port, akka.actor.typed.ActorSystem<?> system) CreatesAlarmService
instance for non admin users using host and port of alarm server
-
Constructor Details
-
AlarmServiceFactory
public AlarmServiceFactory(io.lettuce.core.RedisClient redisClient) -
AlarmServiceFactory
public AlarmServiceFactory()A java helper to construct AlarmServiceFactory
-
-
Method Details
-
makeAdminApi
public csw.alarm.api.scaladsl.AlarmAdminService makeAdminApi(csw.location.api.scaladsl.LocationService locationService, akka.actor.typed.ActorSystem<?> system) CreatesAlarmAdminService
instance for admin users usingLocationService
- Parameters:
locationService
- instance which will be used to resolve the location of alarm serversystem
- an actor system required for underlying actors- Returns:
- an instance of
AlarmAdminService
-
makeAdminApi
public csw.alarm.api.scaladsl.AlarmAdminService makeAdminApi(String host, int port, akka.actor.typed.ActorSystem<?> system) CreatesAlarmAdminService
instance for admin users using host port of alarm server- Parameters:
host
- of the alarm serverport
- on which alarm server is runningsystem
- 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) CreatesAlarmService
instance for non admin users usingLocationService
- Parameters:
locationService
- instance which will be used to resolve the location of alarm serversystem
- an actor system required for underlying actors- Returns:
- an instance of
AlarmService
-
makeClientApi
public csw.alarm.api.scaladsl.AlarmService makeClientApi(String host, int port, akka.actor.typed.ActorSystem<?> system) CreatesAlarmService
instance for non admin users using host and port of alarm server- Parameters:
host
- of the alarm serverport
- on which alarm server is runningsystem
- an actor system required for underlying actors- Returns:
- an instance of
AlarmService
-
jMakeClientApi
public IAlarmService jMakeClientApi(ILocationService locationService, akka.actor.typed.ActorSystem<?> system) CreatesIAlarmService
instance for non admin users usingILocationService
- Parameters:
locationService
- instance which will be used to resolve the location of alarm serversystem
- an actor system required for underlying actors- Returns:
- an instance of
IAlarmService
-
jMakeClientApi
CreatesIAlarmService
instance for non admin users using host and port of alarm server- Parameters:
host
- of the alarm serverport
- on which alarm server is runningsystem
- 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)
-