Exemple #1
0
        public PipelineModule(IPipelineModuleConfiguration pipelineModuleConfiguration, IPEMBus pemBus, IPipelineModuleRuntime moduleHost)
        {
            _pemBus = pemBus;
            _pipelineModuleConfiguration = pipelineModuleConfiguration;
            ModuleHost = moduleHost;

            _pipelineMetrics = new UsageMetrics(pemBus.Instance.PrimaryHost.Id, pemBus.Instance.Id, Id);
            _pipelineMetrics.Reset();
        }
Exemple #2
0
        public ListenerModule(ListenerConfiguration listenerConfiguration, IPEMBus pemBus) : base(listenerConfiguration, pemBus)
        {
            _listenerConfiguration = listenerConfiguration;

            _outgoingMessageQueue = pemBus.Queues.Where(queue => queue.PipelineModuleId == listenerConfiguration.Id).FirstOrDefault();
            if (_outgoingMessageQueue == null)
            {
                throw new Exception($"Incoming queue for listener module {_listenerConfiguration.Id} - {_listenerConfiguration.Name} could not be found.");
            }
        }
Exemple #3
0
        public PipelineModule(IPipelineModuleConfiguration pipelineModuleConfiguration, IPEMBus pemBus, IPipelineModuleRuntime moduleHost, IPEMQueue listenerQueue, List <IPEMQueue> secondaryOutputQueues)
        {
            _listenerQueue = listenerQueue;
            _pemBus        = pemBus;
            _pipelineModuleConfiguration = pipelineModuleConfiguration;
            _secondaryOutputQueues       = secondaryOutputQueues;
            ModuleHost = moduleHost;

            _pipelineMetrics = new UsageMetrics(pemBus.Instance.PrimaryHost.Id, pemBus.Instance.Id, Id);
            _pipelineMetrics.Reset();
        }
Exemple #4
0
        public PipelineModule(IPipelineModuleConfiguration pipelineModuleConfiguration, string routeModuleId, IPEMBus pemBus)
        {
            _inputMessageQueue = pemBus.Queues.Where(queue => queue.PipelineModuleId == routeModuleId).FirstOrDefault();
            if (_inputMessageQueue == null)
            {
                throw new Exception($"Incoming queue for module {pipelineModuleConfiguration.Id} - {pipelineModuleConfiguration.Name} could not be found.");
            }

            ModuleType = _inputMessageQueue.ForModuleType;

            _pemBus = pemBus;
            _pipelineModuleConfiguration = pipelineModuleConfiguration;

            _pipelineMetrics = new UsageMetrics(pemBus.Instance.PrimaryHost.Id, pemBus.Instance.Id, pipelineModuleConfiguration.Id);
            _pipelineMetrics.Reset();
        }
        public TestPipelineModule(IPipelineModuleConfiguration pipelineModuleConfiguration, IPEMBus pemBus)
            : base(pipelineModuleConfiguration, pemBus)
        {
            Id             = "mypipelinemoduleid";
            ResultToReturn = new ProcessResult()
            {
            };

            ProcessHandler = null;
        }
Exemple #6
0
        public TestPipelineModule(IPipelineModuleConfiguration pipelineModuleConfiguration, IPEMBus pemBus, IPipelineModuleRuntime moduleHost,
                                  IPEMQueue listenerQueue, IPEMQueue outputQueue, List <IPEMQueue> secondaryOutputQueues) : base(pipelineModuleConfiguration, pemBus, moduleHost, listenerQueue, outputQueue, secondaryOutputQueues)
        {
            Id             = "mypipelinemoduleid";
            ResultToReturn = new ProcessResult()
            {
            };

            ProcessHandler = null;
        }
Exemple #7
0
 public GenericListener(ListenerConfiguration listenerConfiguration, IPEMBus pemBus) : base(listenerConfiguration, pemBus)
 {
 }
Exemple #8
0
 public ListenerModule(ListenerConfiguration listenerConfiguration, IPEMBus pemBus, IPipelineModuleRuntime moduleHost, IPEMQueue plannerQueue) : base(listenerConfiguration, pemBus, moduleHost)
 {
     _listenerConfiguration = listenerConfiguration;
     _plannerQueue          = plannerQueue;
 }