Example #1
0
        public EPDataFlowEmitter1Stream1TargetBase(
            int operatorNum,
            DataFlowSignalManager signalManager,
            SignalHandler signalHandler,
            EPDataFlowEmitterExceptionHandler exceptionHandler,
            ObjectBindingPair target,
            ImportService importService)
        {
            this.operatorNum = operatorNum;
            this.signalManager = signalManager;
            this.signalHandler = signalHandler;
            this.exceptionHandler = exceptionHandler;

            fastMethod = target.Binding.ConsumingBindingDesc.Method;
            targetObject = target.Target;
        }
 public EPDataFlowEmitter1Stream1TargetUnwind(
     int operatorNum,
     DataFlowSignalManager signalManager,
     SignalHandler signalHandler,
     EPDataFlowEmitterExceptionHandler exceptionHandler,
     ObjectBindingPair target,
     ImportService importService)
     : base(
         operatorNum,
         signalManager,
         signalHandler,
         exceptionHandler,
         target,
         importService)
 {
 }
 public EPDataFlowEmitter1Stream1TargetPassAlongWStream(
     int operatorNum,
     DataFlowSignalManager signalManager,
     SignalHandler signalHandler,
     EPDataFlowEmitterExceptionHandler exceptionHandler,
     ObjectBindingPair target,
     int streamNum,
     ImportService importService)
     : base(
         operatorNum,
         signalManager,
         signalHandler,
         exceptionHandler,
         target,
         importService)
 {
     this.streamNum = streamNum;
 }
        private static SubmitHandler GetSubmitHandler(
            AgentInstanceContext agentInstanceContext,
            string dataflowName,
            string instanceId,
            int producerOpNum,
            string operatorPrettyPrint,
            DataFlowSignalManager dataFlowSignalManager,
            ObjectBindingPair target,
            EPDataFlowExceptionHandler optionalExceptionHandler,
            ImportService importService)
        {
            var signalHandler = GetSignalHandler(
                producerOpNum,
                target.Target,
                target.Binding.ConsumingSignalBindingDesc,
                importService);

            var receivingOpNum = target.Binding.LogicalChannel.ConsumingOpNum;
            var receivingOpPretty = target.Binding.LogicalChannel.ConsumingOpPrettyPrint;
            var receivingOpName = target.Binding.LogicalChannel.ConsumingOpName;
            var exceptionHandler = new EPDataFlowEmitterExceptionHandler(
                agentInstanceContext,
                dataflowName,
                instanceId,
                receivingOpName,
                receivingOpNum,
                receivingOpPretty,
                optionalExceptionHandler);

            var bindingType = target.Binding.ConsumingBindingDesc.BindingType;
            if (bindingType is LogicalChannelBindingTypePassAlong) {
                return new EPDataFlowEmitter1Stream1TargetPassAlong(
                    producerOpNum,
                    dataFlowSignalManager,
                    signalHandler,
                    exceptionHandler,
                    target,
                    importService);
            }

            if (bindingType is LogicalChannelBindingTypePassAlongWStream) {
                var type = (LogicalChannelBindingTypePassAlongWStream) bindingType;
                return new EPDataFlowEmitter1Stream1TargetPassAlongWStream(
                    producerOpNum,
                    dataFlowSignalManager,
                    signalHandler,
                    exceptionHandler,
                    target,
                    type.StreamNum,
                    importService);
            }

            if (bindingType is LogicalChannelBindingTypeUnwind) {
                return new EPDataFlowEmitter1Stream1TargetUnwind(
                    producerOpNum,
                    dataFlowSignalManager,
                    signalHandler,
                    exceptionHandler,
                    target,
                    importService);
            }

            throw new UnsupportedOperationException("Unsupported binding type '" + bindingType + "'");
        }