Class InitialActiveMonitorConfig


  • @Configuration
    @Conditional(InitialMonitorLoadingCondition.class)
    public class InitialActiveMonitorConfig
    extends Object
    Initial ActiveMonitor configuration

    This is the base file configuring ActiveMonitor on startup.
    This contains both general configuration, required by ActiveMonitor, as well as ready to use elements demonstrating ActiveMonitor capabilities.
    Optional elements will be explicitly marked as so.

    Author:
    ActiveViam
    • Field Detail

      • env

        @Autowired
        protected org.springframework.core.env.Environment env
      • serviceConfig

        @Autowired
        public com.qfs.snl.cfg.impl.ActiveMonitorServiceConfiguration serviceConfig
    • Constructor Detail

      • InitialActiveMonitorConfig

        public InitialActiveMonitorConfig()
    • Method Detail

      • monitors

        @Bean
        public List<com.qfs.snl.monitors.IMonitor> monitors()
                                                     throws com.quartetfs.fwk.serialization.SerializerException
        [Optional] Generates some monitor objects to start the application with existing monitors.
        Returns:
        the list of monitors
        Throws:
        com.quartetfs.fwk.serialization.SerializerException - if serialization exception occurs
      • addMonitors

        @Bean
        @DependsOn("registerWorkflowSchemes")
        public Void addMonitors()
                         throws com.qfs.fwk.services.ServiceException,
                                com.quartetfs.fwk.serialization.SerializerException
        [Optional] Registers a list of monitors within the monitor service.
        Returns:
        Void
        Throws:
        com.qfs.fwk.services.ServiceException - if the creation fails
        com.quartetfs.fwk.serialization.SerializerException - if the monitor can not be generated
      • setParameterWorkflows

        @Bean
        @DependsOn("registerWorkflows")
        public Void setParameterWorkflows()
                                   throws com.qfs.fwk.services.ServiceException
        [Optional] This step associates workflow schemes to parameters.
        Returns:
        Void
        Throws:
        com.qfs.fwk.services.ServiceException - if the parameter can not be generated