Example #1
0
 public void OnS0(string value)
 {
     var output = "S0-" + value;
     graphContext.SubmitPort(
         1,
         new object[] {output});
 }
Example #2
0
 public void SubmitPort(int portNumber, Object @object)
 {
     if (!_cpuStatistics)
     {
         _facility.SubmitPort(portNumber, @object);
         _statisticsProvider.CountSubmitPort(_producerOpNum, portNumber);
     }
     else
     {
         long nanoTime = PerformanceObserver.NanoTime;
         _facility.SubmitPort(portNumber, @object);
         long nanoTimDelta = PerformanceObserver.NanoTime - nanoTime;
         _statisticsProvider.CountSubmitPortWithTime(_producerOpNum, portNumber, nanoTimDelta);
     }
 }
Example #3
0
        public void OnInput(Object row)
        {
            if (Log.IsDebugEnabled)
            {
                Log.Debug("Received row for filtering: " + row.RenderAny());
            }

            if (!(row is EventBeanSPI))
            {
                _theEvent.Underlying = row;
            }
            else
            {
                _theEvent = (EventBeanSPI)row;
            }

            var pass = _evaluator.Evaluate(new EvaluateParams(_eventsPerStream, true, null));

            if (pass != null && true.Equals(pass))
            {
                if (Log.IsDebugEnabled)
                {
                    Log.Debug("Submitting row " + row.RenderAny());
                }

                if (_singleOutputPort)
                {
                    graphContext.Submit(row);
                }
                else
                {
                    graphContext.SubmitPort(0, row);
                }
            }
            else
            {
                if (!_singleOutputPort)
                {
                    graphContext.SubmitPort(1, row);
                }
            }
        }
Example #4
0
        public void OnInput(object row)
        {
            if (log.IsDebugEnabled)
            {
                log.Debug("Received row for filtering: " + row.RenderAny());
            }

            if (!(row is EventBeanSPI))
            {
                theEvent.UnderlyingSpi = row;
            }
            else
            {
                theEvent = (EventBeanSPI) row;
            }

            object pass = factory.Filter.Evaluate(eventsPerStream, true, agentInstanceContext);
            if (pass != null && true.Equals(pass))
            {
                if (log.IsDebugEnabled)
                {
                    log.Debug("Submitting row " + row.RenderAny());
                }

                if (factory.IsSingleOutputPort)
                {
                    graphContext.Submit(row);
                }
                else
                {
                    graphContext.SubmitPort(0, row);
                }
            }
            else
            {
                if (!factory.IsSingleOutputPort)
                {
                    graphContext.SubmitPort(1, row);
                }
            }
        }
Example #5
0
 public void Next()
 {
     var next = emittables.Pop();
     if (next is EPDataFlowSignal)
     {
         var signal = (EPDataFlowSignal) next;
         graphContext.SubmitSignal(signal);
     }
     else if (next is PortAndMessagePair)
     {
         var pair = (PortAndMessagePair) next;
         graphContext.SubmitPort(pair.Port, pair.Message);
     }
     else
     {
         graphContext.Submit(next);
     }
 }
Example #6
0
#pragma warning restore CS0649

            public void OnInput(int number)
            {
                graphContext.SubmitPort(0, new object[] { number, (long)number });
            }
Example #7
0
 public void SubmitPort(
     int portNumber,
     object @object)
 {
     dataFlowEmitter.SubmitPort(portNumber, @object);
 }
            public void OnS0(String value)
            {
                String output = "S0-" + value;

                graphContext.SubmitPort(1, new Object[] { output });
            }