Package csw.framework.models
Class CswContext
- java.lang.Object
-
- csw.framework.models.CswContext
-
public class CswContext extends java.lang.ObjectBundles all the services provided by cswparam: 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
CurrentStatefor this component param: commandResponseManager manages state of a started Submit command param: componentInfo component related information as described in the configuration file
-
-
Constructor Summary
Constructors Constructor Description 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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description csw.alarm.api.scaladsl.AlarmServicealarmService()CommandResponseManagercommandResponseManager()ComponentInfocomponentInfo()csw.config.api.scaladsl.ConfigClientServiceconfigClientService()CurrentStatePublishercurrentStatePublisher()csw.event.api.scaladsl.EventServiceeventService()csw.location.api.scaladsl.LocationServicelocationService()csw.logging.client.scaladsl.LoggerFactoryloggerFactory()static scala.concurrent.Future<CswContext>make(csw.location.api.scaladsl.LocationService locationService, EventServiceFactory eventServiceFactory, AlarmServiceFactory alarmServiceFactory, ComponentInfo componentInfo, csw.framework.internal.wiring.CswFrameworkSystem richSystem)TimeServiceSchedulertimeServiceScheduler()
-
-
-
Constructor Detail
-
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 Detail
-
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
public TimeServiceScheduler timeServiceScheduler()
-
loggerFactory
public csw.logging.client.scaladsl.LoggerFactory loggerFactory()
-
configClientService
public csw.config.api.scaladsl.ConfigClientService configClientService()
-
currentStatePublisher
public CurrentStatePublisher currentStatePublisher()
-
commandResponseManager
public CommandResponseManager commandResponseManager()
-
componentInfo
public ComponentInfo componentInfo()
-
-