Exemple #1
0
        public GameServerMonitor()
        {
            _alertConditions      = ArrayList.Synchronized(new ArrayList());
            _lastCheckResults     = ArrayList.Synchronized(new ArrayList());
            _checkGameServerTimer = new Timer(new TimerCallback(CheckAllGameServers), null, Timeout.Infinite, Timeout.Infinite);

            //TODO For Debug
            AlertCondition condition = new CpuUsageAlertCondition(50);

            condition.Level = AlertLevel.Attention;
            _alertConditions.Add(condition);
            condition = new DiskUsageAlertCondition(DiskUsageAlertCondition.Mode.FreeDiskSize, 3000);
            _alertConditions.Add(condition);
        }
Exemple #2
0
		public GameServerMonitor()
		{
            _alertConditions = ArrayList.Synchronized(new ArrayList());
            _lastCheckResults = ArrayList.Synchronized(new ArrayList());
			_checkGameServerTimer = new Timer(new TimerCallback(CheckAllGameServers), null, Timeout.Infinite, Timeout.Infinite);

			//TODO For Debug
			AlertCondition condition = new CpuUsageAlertCondition(50);
			condition.Level = AlertLevel.Attention;
			_alertConditions.Add(condition);
			condition = new DiskUsageAlertCondition(DiskUsageAlertCondition.Mode.FreeDiskSize, 3000);
			_alertConditions.Add(condition);
		}