示例#1
0
        public Scheduler(Manager manager, Configuration cfg)
        {
            if (_mgr == null)
                _mgr = manager;

            _cfg = cfg;
        }
示例#2
0
        public Archiver(Manager manager, Configuration cfg)
        {
            if (_mgr == null)
                _mgr = manager;

            _cfg = cfg;

            _shouldStop = false;
        }
示例#3
0
        public Analyzer(Manager manager)
        {
            if (mgr == null)
                mgr = manager;

            cfg = mgr.GetConfiguration();

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

            _cfg = cfg;

            _dataQueue = new ConcurrentQueue<ProbeResultsDataMessage>();
        }
示例#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();
        }
示例#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");
 }
示例#9
0
 public WebService(Configuration config)
 {
     _cfg = config;
 }