public EPDataFlowEmitterExceptionHandler( AgentInstanceContext agentInstanceContext, string dataFlowName, string instanceId, string operatorName, int operatorNumber, string operatorPrettyPrint, EPDataFlowExceptionHandler optionalExceptionHandler) { this.agentInstanceContext = agentInstanceContext; DataFlowName = dataFlowName; this.instanceId = instanceId; OperatorName = operatorName; OperatorNumber = operatorNumber; OperatorPrettyPrint = operatorPrettyPrint; OptionalExceptionHandler = optionalExceptionHandler; }
private static SubmitHandler GetSubmitHandler( string engineURI, string statementName, bool audit, string dataflowName, int producerOpNum, string operatorPrettyPrint, DataFlowSignalManager dataFlowSignalManager, ObjectBindingPair target, EPDataFlowExceptionHandler optionalExceptionHandler, EngineImportService engineImportService) { var signalHandler = GetSignalHandler( producerOpNum, target.Target, target.Binding.ConsumingSignalBindingDesc, engineImportService); var receivingOpNum = target.Binding.LogicalChannel.ConsumingOpNum; var receivingOpPretty = target.Binding.LogicalChannel.ConsumingOpPrettyPrint; var receivingOpName = target.Binding.LogicalChannel.ConsumingOpName; var exceptionHandler = new EPDataFlowEmitterExceptionHandler( engineURI, statementName, audit, dataflowName, receivingOpName, receivingOpNum, receivingOpPretty, optionalExceptionHandler); var bindingType = target.Binding.ConsumingBindingDesc.BindingType; if (bindingType is LogicalChannelBindingTypePassAlong) { return(new EPDataFlowEmitter1Stream1TargetPassAlong( producerOpNum, dataFlowSignalManager, signalHandler, exceptionHandler, target, engineImportService)); } else if (bindingType is LogicalChannelBindingTypePassAlongWStream) { var type = (LogicalChannelBindingTypePassAlongWStream)bindingType; return(new EPDataFlowEmitter1Stream1TargetPassAlongWStream( producerOpNum, dataFlowSignalManager, signalHandler, exceptionHandler, target, type.StreamNum, engineImportService)); } else if (bindingType is LogicalChannelBindingTypeUnwind) { return(new EPDataFlowEmitter1Stream1TargetUnwind( producerOpNum, dataFlowSignalManager, signalHandler, exceptionHandler, target, engineImportService)); } else { throw new UnsupportedOperationException("Unsupported binding type '" + bindingType + "'"); } }
public EPDataFlowEmitterExceptionHandler(String engineURI, String statementName, bool audit, String dataFlowName, String operatorName, int operatorNumber, String operatorPrettyPrint, EPDataFlowExceptionHandler optionalExceptionHandler) { EngineURI = engineURI; StatementName = statementName; Audit = audit; DataFlowName = dataFlowName; OperatorName = operatorName; OperatorNumber = operatorNumber; OperatorPrettyPrint = operatorPrettyPrint; OptionalExceptionHandler = optionalExceptionHandler; }
public GraphSourceRunnable( AgentInstanceContext agentInstanceContext, DataFlowSourceOperator graphSource, string dataFlowName, string instanceId, string operatorName, int operatorNumber, string operatorPrettyPrint, EPDataFlowExceptionHandler optionalExceptionHandler, bool audit) { _agentInstanceContext = agentInstanceContext; _graphSource = graphSource; _dataFlowName = dataFlowName; _instanceId = instanceId; _operatorName = operatorName; _operatorNumber = operatorNumber; _operatorPrettyPrint = operatorPrettyPrint; _optionalExceptionHandler = optionalExceptionHandler; _audit = audit; }
public GraphSourceRunnable( String engineURI, String statementName, DataFlowSourceOperator graphSource, String dataFlowName, String operatorName, int operatorNumber, String operatorPrettyPrint, EPDataFlowExceptionHandler optionalExceptionHandler, bool audit) { _engineUri = engineURI; _statementName = statementName; _graphSource = graphSource; _dataFlowName = dataFlowName; _operatorName = operatorName; _operatorNumber = operatorNumber; _operatorPrettyPrint = operatorPrettyPrint; _optionalExceptionHandler = optionalExceptionHandler; _audit = audit; }
/// <summary>Sets the exception handler. </summary> /// <param name="exceptionHandler">exception handler.</param> public void SetExceptionHandler(EPDataFlowExceptionHandler exceptionHandler) { _exceptionHandler = exceptionHandler; }
/// <summary>Sets the exception handler. </summary> /// <param name="exceptionHandler">exception handler.</param> /// <returns>this options object</returns> public EPDataFlowInstantiationOptions ExceptionHandler(EPDataFlowExceptionHandler exceptionHandler) { _exceptionHandler = exceptionHandler; return(this); }