Package csw.framework.models
Class CswContext
java.lang.Object
csw.framework.models.CswContext
Bundles all the services provided by csw
param: locationService the single instance of location service
param: eventService the single instance of event service with default publishers and subscribers as well as the capability to create new ones
param: alarmService the single instance of alarm service that allows setting severity for an alarm
param: loggerFactory factory to create suitable logger instance
param: currentStatePublisher the pub sub actor to publish state represented by CurrentState
for this component
param: commandResponseManager manages state of a started Submit command
param: componentInfo component related information as described in the configuration file
-
Constructor Summary
ConstructorsConstructorDescriptionCswContext
(csw.location.api.scaladsl.LocationService locationService, csw.event.api.scaladsl.EventService eventService, csw.alarm.api.scaladsl.AlarmService alarmService, TimeServiceScheduler timeServiceScheduler, csw.logging.client.scaladsl.LoggerFactory loggerFactory, csw.config.api.scaladsl.ConfigClientService configClientService, CurrentStatePublisher currentStatePublisher, CommandResponseManager commandResponseManager, ComponentInfo componentInfo) -
Method Summary
Modifier and TypeMethodDescriptioncsw.alarm.api.scaladsl.AlarmService
csw.config.api.scaladsl.ConfigClientService
csw.event.api.scaladsl.EventService
csw.location.api.scaladsl.LocationService
csw.logging.client.scaladsl.LoggerFactory
static scala.concurrent.Future<CswContext>
make
(csw.location.api.scaladsl.LocationService locationService, EventServiceFactory eventServiceFactory, AlarmServiceFactory alarmServiceFactory, ComponentInfo componentInfo, csw.framework.internal.wiring.CswFrameworkSystem richSystem)
-
Constructor Details
-
CswContext
public CswContext(csw.location.api.scaladsl.LocationService locationService, csw.event.api.scaladsl.EventService eventService, csw.alarm.api.scaladsl.AlarmService alarmService, TimeServiceScheduler timeServiceScheduler, csw.logging.client.scaladsl.LoggerFactory loggerFactory, csw.config.api.scaladsl.ConfigClientService configClientService, CurrentStatePublisher currentStatePublisher, CommandResponseManager commandResponseManager, ComponentInfo componentInfo)
-
-
Method Details
-
make
public static scala.concurrent.Future<CswContext> make(csw.location.api.scaladsl.LocationService locationService, EventServiceFactory eventServiceFactory, AlarmServiceFactory alarmServiceFactory, ComponentInfo componentInfo, csw.framework.internal.wiring.CswFrameworkSystem richSystem) -
locationService
public csw.location.api.scaladsl.LocationService locationService() -
eventService
public csw.event.api.scaladsl.EventService eventService() -
alarmService
public csw.alarm.api.scaladsl.AlarmService alarmService() -
timeServiceScheduler
-
loggerFactory
public csw.logging.client.scaladsl.LoggerFactory loggerFactory() -
configClientService
public csw.config.api.scaladsl.ConfigClientService configClientService() -
currentStatePublisher
-
commandResponseManager
-
componentInfo
-