Esempio n. 1
0
        public Scheduler(Manager manager, Configuration cfg)
        {
            if (_mgr == null)
                _mgr = manager;

            _cfg = cfg;
        }
Esempio n. 2
0
        public Archiver(Manager manager, Configuration cfg)
        {
            if (_mgr == null)
                _mgr = manager;

            _cfg = cfg;

            _shouldStop = false;
        }
Esempio n. 3
0
        public Analyzer(Manager manager)
        {
            if (mgr == null)
                mgr = manager;

            cfg = mgr.GetConfiguration();

            _dataQueue = new ConcurrentQueue<ProbeResultsDataMessage>();
        }
Esempio n. 4
0
        // constructor
        public Writer(Manager manager, Configuration cfg)
        {
            if (_mgr == null)
                _mgr = manager;

            _cfg = cfg;

            _dataQueue = new ConcurrentQueue<ProbeResultsDataMessage>();
        }
Esempio n. 5
0
        public void Initialize()
        {
            // Read side-by-side configuration file
            _logger.Debug("Reading configuration");
            _cfg = new Configuration(this);
            _cfg.ReadConfigFromFile();

            // Start watchdog if ReadConfig was successfull
            // It will start the rest of the threads
            _logger.Debug("Starting Watchdog thread");
            Thread _watchdogThread = new Thread(this.Watchdog);
            _watchdogThread.Name = "Watchdog";
            _threads.Add(_watchdogThread.Name, _watchdogThread);
            _watchdogThread.Start();
        }
Esempio n. 6
0
 public WebServer(Manager manager, Configuration cfg)
 {
     _mgr = manager;
     _cfg = cfg;
     _rootFolder = Path.GetFullPath(Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), Configuration.wsRootFolder));
 }
 public DashboardRequestProcessor(Configuration cfg)
     : base(cfg)
 {
     _logger = LogManager.GetLogger("DashboardRequestProcessor");
 }
 public ConfigurationRequestProcessor(Configuration cfg)
     : base(cfg)
 {
     _logger = LogManager.GetLogger("ConfigurationRequestProcessor");
 }
Esempio n. 9
0
 public WebService(Configuration config)
 {
     _cfg = config;
 }