Class CswContext

java.lang.Object
csw.framework.models.CswContext

public class CswContext extends Object
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 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

      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()