Ejemplo n.º 1
0
        public static Pipeline Create(string name, IElementProcessor elementProcessor, IBrowsableElementStore elementStore)
        {
            const int minimumPendingEvents = 10;
            const int batchSize            = 20;

            return(new Pipeline(name, elementProcessor, elementStore, new ThresholdedFetchPolicy(minimumPendingEvents, batchSize)));
        }
Ejemplo n.º 2
0
        public static Pipeline Create(string name, IElementProcessor elementProcessor,IBrowsableElementStore elementStore)
        {
            const int minimumPendingEvents = 10;
            const int batchSize = 20;

            return new Pipeline(name, elementProcessor, elementStore, new ThresholdedFetchPolicy(minimumPendingEvents, batchSize));
        }
Ejemplo n.º 3
0
 public Pipeline(string name, IElementProcessor elementProcessor, IBrowsableElementStore elementStore, IFetchPolicy fetchPolicy)
 {
     _name = name;
     _elementStore = elementStore;
     _demultiplexer = new Demultiplexer();
     _demultiplexer.EventDemultiplexed += OnDemultiplexed;
     _processor = new PipelineProcessor(elementProcessor);
     _processor.EventProcessed += OnEventProcessed;
     _fetcher = new ElementFetcher(fetchPolicy, _elementStore, name);
     _fetcher.ElementFetched += OnElementFetched;
     _fetchTimer = new Timer(x => EvaluateFetchPolicy(), null, TimeSpan.Zero, TimeSpan.FromSeconds(1));
 }
Ejemplo n.º 4
0
 public Pipeline(string name, IElementProcessor elementProcessor, IBrowsableElementStore elementStore, IFetchPolicy fetchPolicy)
 {
     _name          = name;
     _elementStore  = elementStore;
     _demultiplexer = new Demultiplexer();
     _demultiplexer.EventDemultiplexed += OnDemultiplexed;
     _processor = new PipelineProcessor(elementProcessor);
     _processor.EventProcessed += OnEventProcessed;
     _fetcher = new ElementFetcher(fetchPolicy, _elementStore, name);
     _fetcher.ElementFetched += OnElementFetched;
     _fetchTimer              = new Timer(x => EvaluateFetchPolicy(), null, TimeSpan.Zero, TimeSpan.FromSeconds(1));
 }
Ejemplo n.º 5
0
 public PipelineProcessor(
     IElementProcessor elementProcessor)
 {
     _elementProcessor = elementProcessor;
 }
Ejemplo n.º 6
0
		/// <summary>
		/// Initializes a new instance of the <see cref="IronPythonTemplateParser"/> class.
		/// </summary>
		/// <param name="processors">The processors.</param>
		public IronPythonTemplateParser(IElementProcessor[] processors)
		{
			this.processors = processors;
		}
 internal void _RegisterElementProcessor(IElementProcessor processor)
 {
     _processors[processor.TargetElementName] = processor;
 }
Ejemplo n.º 8
0
 public static Pipeline CreateWithLazyElementMarking(string name, IElementProcessor elementProcessor, IBrowsableElementStore elementStore)
 {
     return Create(name,elementProcessor, new LazyMarkingBrowsableElementStore(elementStore));
 }
Ejemplo n.º 9
0
 public static Pipeline CreateWithLazyElementMarking(string name, IElementProcessor elementProcessor, IBrowsableElementStore elementStore)
 {
     return(Create(name, elementProcessor, new LazyMarkingBrowsableElementStore(elementStore)));
 }
Ejemplo n.º 10
0
 internal void _RegisterElementProcessor(IElementProcessor processor)
 {
     _processors[ processor.TargetElementName ] = processor;
 }
Ejemplo n.º 11
0
 public PipelineProcessor(
     IElementProcessor elementProcessor)
 {
     _elementProcessor = elementProcessor;
 }