public Processor(IConfigBusiness configBusiness, ICounterBusiness counterBusiness, ISendBusiness sendBusiness, ITagLoader tagLoader) { _configBusiness = configBusiness; _counterBusiness = counterBusiness; _sendBusiness = sendBusiness; _tagLoader = tagLoader; }
public CounterCollectCommand(IConfigBusiness configBusiness, ICounterBusiness counterBusiness, ISendBusiness sendBusiness, ITagLoader tagLoader) : base("Collect", "Collect counter data and send to the database.") { _configBusiness = configBusiness; _counterBusiness = counterBusiness; _sendBusiness = sendBusiness; _tagLoader = tagLoader; }
public Processor(IConfigBusiness configBusiness, ICounterBusiness counterBusiness, IPublisherBusiness publisherBusiness, ISendBusiness sendBusiness, ITagLoader tagLoader) { _configBusiness = configBusiness; _counterBusiness = counterBusiness; _sendBusiness = sendBusiness; _tagLoader = tagLoader; _publisherBusiness = publisherBusiness; }
public CounterStartCommand(IConfigBusiness configBusiness, ICounterBusiness counterBusiness, ISendBusiness sendBusiness, ITagLoader tagLoader) : base("Start", "Start the counter and run the collector.") { _configBusiness = configBusiness; _counterBusiness = counterBusiness; _sendBusiness = sendBusiness; _tagLoader = tagLoader; }
public PublishStartCommand(IConfigBusiness configBusiness, ICounterBusiness counterBusiness, IPublisherBusiness publisherBusiness, ISendBusiness sendBusiness, ITagLoader tagLoader) : base("Start", "Start the publishing of counters.") { _configBusiness = configBusiness; _counterBusiness = counterBusiness; _publisherBusiness = publisherBusiness; _sendBusiness = sendBusiness; _tagLoader = tagLoader; }
public CounterStartCommand(IConfigBusiness configBusiness, ICounterBusiness counterBusiness, IPublisherBusiness publisherBusiness, ISendBusiness sendBusiness, ITagLoader tagLoader) : base("Start", "Start the counter and run the collector.") { _configBusiness = configBusiness; _counterBusiness = counterBusiness; _publisherBusiness = publisherBusiness; _sendBusiness = sendBusiness; _tagLoader = tagLoader; }
public CounterCollectCommand(IConfigBusiness configBusiness, ICounterBusiness counterBusiness, IPublisherBusiness publisherBusiness, ISendBusiness sendBusiness, ITagLoader tagLoader) : base("Collect", "Collect counter data and send to the database.") { _configBusiness = configBusiness; _counterBusiness = counterBusiness; _sendBusiness = sendBusiness; _tagLoader = tagLoader; _publisherBusiness = publisherBusiness; }
public PublishStartCommand(IConfigBusiness configBusiness, ICounterBusiness counterBusiness, IPublisherBusiness publisherBusiness, ISendBusiness sendBusiness, ITagLoader tagLoader) : base("Start", "Start the publishing of counters.") { _configBusiness = configBusiness; _counterBusiness = counterBusiness; _publisherBusiness = publisherBusiness; _sendBusiness = sendBusiness; _tagLoader = tagLoader; }
public SendController(ISendBusiness sendBusiness, ICommonBusiness commonBusiness, IConsumerBusiness consumerBusiness, ILookupBusiness lookupBusiness) { sendBusiness.ThrowIfNull(nameof(sendBusiness)); commonBusiness.ThrowIfNull(nameof(commonBusiness)); consumerBusiness.ThrowIfNull(nameof(consumerBusiness)); lookupBusiness.ThrowIfNull(nameof(lookupBusiness)); _sendBusiness = sendBusiness; _commonBusiness = commonBusiness; _consumerBusiness = consumerBusiness; _lookupBusiness = lookupBusiness; }
public CollectorEngine(IPerformanceCounterGroup performanceCounterGroup, ISendBusiness sendBusiness, ITagLoader tagLoader) { _performanceCounterGroup = performanceCounterGroup; _sendBusiness = sendBusiness; _tags = tagLoader.GetGlobalTags().Union(_performanceCounterGroup.Tags).ToArray(); if (performanceCounterGroup.SecondsInterval > 0) { _timer = new Timer(1000 * performanceCounterGroup.SecondsInterval); _timer.Elapsed += Elapsed; } _name = _performanceCounterGroup.Name; }
public PublisherEngine(ICounterPublisher counterPublisher, ISendBusiness sendBusiness, ITagLoader tagLoader) { _counterPublisher = counterPublisher; _sendBusiness = sendBusiness; _tags = tagLoader.GetGlobalTags(); //.Union(_performanceCounterGroup.Tags).ToArray(); if (counterPublisher.SecondsInterval > 0) { _timer = new Timer(1000 * counterPublisher.SecondsInterval); _timer.Elapsed += Elapsed; } _perfCounter = SetupCategory(); //_perfCounter = new PerformanceCounter(_counterPublisher.CategoryName, _counterPublisher.CounterName, false) { RawValue = _counterPublisher.GetValue() }; }
public PublisherEngine(ICounterPublisher counterPublisher, ISendBusiness sendBusiness, ITagLoader tagLoader) { _counterPublisher = counterPublisher; _sendBusiness = sendBusiness; _tags = tagLoader.GetGlobalTags(); //.Union(_performanceCounterGroup.Tags).ToArray(); if (counterPublisher.SecondsInterval > 0) { _timer = new Timer(1000 * counterPublisher.SecondsInterval); _timer.Elapsed += Elapsed; } _perfCounter = SetupCategory(); //_perfCounter = new PerformanceCounter(_counterPublisher.CategoryName, _counterPublisher.CounterName, false) { RawValue = _counterPublisher.GetValue() }; }
protected CollectorEngineBase(IPerformanceCounterGroup performanceCounterGroup, ISendBusiness sendBusiness, ITagLoader tagLoader, bool metadata) { _engineName = GetType().Name; _performanceCounterGroup = performanceCounterGroup; _name = _performanceCounterGroup.Name; _sendBusiness = sendBusiness; _tags = tagLoader.GetGlobalTags().Union(_performanceCounterGroup.Tags).ToArray(); if (performanceCounterGroup.SecondsInterval > 0) { _timer = new Timer(1000 * performanceCounterGroup.SecondsInterval); _timer.Elapsed += Elapsed; } _metadata = metadata; }
protected CollectorEngineBase(IPerformanceCounterGroup performanceCounterGroup, ISendBusiness sendBusiness, ITagLoader tagLoader, bool metadata) { _engineName = GetType().Name; _performanceCounterGroup = performanceCounterGroup; _name = _performanceCounterGroup.Name; _sendBusiness = sendBusiness; _tags = tagLoader.GetGlobalTags().Union(_performanceCounterGroup.Tags).ToArray(); if (performanceCounterGroup.SecondsInterval > 0) { _timer = new Timer(1000 * performanceCounterGroup.SecondsInterval); _timer.Elapsed += Elapsed; } _metadata = metadata; }
public SafeCollectorEngine(IPerformanceCounterGroup performanceCounterGroup, ISendBusiness sendBusiness, ITagLoader tagLoader, bool metadata) : base(performanceCounterGroup, sendBusiness, tagLoader, metadata) { }
public SafeCollectorEngine(IPerformanceCounterGroup performanceCounterGroup, ISendBusiness sendBusiness, ITagLoader tagLoader, bool metadata) : base(performanceCounterGroup, sendBusiness, tagLoader, metadata) { }
public ExactCollectorEngine(IPerformanceCounterGroup performanceCounterGroup, ISendBusiness sendBusiness, ITagLoader tagLoader, bool metadata) : base(performanceCounterGroup, sendBusiness, tagLoader, metadata) { _metaDataBusiness = new MetaDataBusiness(); }