本文整理汇总了Java中com.espertech.esper.client.dataflow.EPDataFlowExceptionHandler类的典型用法代码示例。如果您正苦于以下问题:Java EPDataFlowExceptionHandler类的具体用法?Java EPDataFlowExceptionHandler怎么用?Java EPDataFlowExceptionHandler使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
EPDataFlowExceptionHandler类属于com.espertech.esper.client.dataflow包,在下文中一共展示了EPDataFlowExceptionHandler类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getSubmitHandler
import com.espertech.esper.client.dataflow.EPDataFlowExceptionHandler; //导入依赖的package包/类
private static SubmitHandler getSubmitHandler(String engineURI, String statementName, boolean audit, String dataflowName, int producerOpNum, String operatorPrettyPrint, DataFlowSignalManager dataFlowSignalManager, ObjectBindingPair target, EPDataFlowExceptionHandler optionalExceptionHandler, EngineImportService engineImportService) {
SignalHandler signalHandler = getSignalHandler(producerOpNum, target.getTarget(), target.getBinding().getConsumingSignalBindingDesc(), engineImportService);
int receivingOpNum = target.getBinding().getLogicalChannel().getConsumingOpNum();
String receivingOpPretty = target.getBinding().getLogicalChannel().getConsumingOpPrettyPrint();
String receivingOpName = target.getBinding().getLogicalChannel().getConsumingOpName();
EPDataFlowEmitterExceptionHandler exceptionHandler = new EPDataFlowEmitterExceptionHandler(engineURI, statementName, audit, dataflowName, receivingOpName, receivingOpNum, receivingOpPretty, optionalExceptionHandler);
LogicalChannelBindingType bindingType = target.getBinding().getConsumingBindingDesc().getBindingType();
if (bindingType instanceof LogicalChannelBindingTypePassAlong) {
return new EPDataFlowEmitter1Stream1TargetPassAlong(producerOpNum, dataFlowSignalManager, signalHandler, exceptionHandler, target, engineImportService);
} else if (bindingType instanceof LogicalChannelBindingTypePassAlongWStream) {
LogicalChannelBindingTypePassAlongWStream type = (LogicalChannelBindingTypePassAlongWStream) bindingType;
return new EPDataFlowEmitter1Stream1TargetPassAlongWStream(producerOpNum, dataFlowSignalManager, signalHandler, exceptionHandler, target, type.getStreamNum(), engineImportService);
} else if (bindingType instanceof LogicalChannelBindingTypeUnwind) {
return new EPDataFlowEmitter1Stream1TargetUnwind(producerOpNum, dataFlowSignalManager, signalHandler, exceptionHandler, target, engineImportService);
} else {
throw new UnsupportedOperationException("Unsupported binding type '" + bindingType + "'");
}
}
示例2: getSubmitHandler
import com.espertech.esper.client.dataflow.EPDataFlowExceptionHandler; //导入依赖的package包/类
private static SubmitHandler getSubmitHandler(String engineURI, String statementName, boolean audit, String dataflowName, int producerOpNum, String operatorPrettyPrint, DataFlowSignalManager dataFlowSignalManager, ObjectBindingPair target, EPDataFlowExceptionHandler optionalExceptionHandler) {
SignalHandler signalHandler = getSignalHandler(producerOpNum, target.getTarget(), target.getBinding().getConsumingSignalBindingDesc());
int receivingOpNum = target.getBinding().getLogicalChannel().getConsumingOpNum();
String receivingOpPretty = target.getBinding().getLogicalChannel().getConsumingOpPrettyPrint();
String receivingOpName = target.getBinding().getLogicalChannel().getConsumingOpName();
EPDataFlowEmitterExceptionHandler exceptionHandler = new EPDataFlowEmitterExceptionHandler(engineURI, statementName, audit, dataflowName, receivingOpName, receivingOpNum, receivingOpPretty, optionalExceptionHandler);
LogicalChannelBindingType bindingType = target.getBinding().getConsumingBindingDesc().getBindingType();
if (bindingType instanceof LogicalChannelBindingTypePassAlong) {
return new EPDataFlowEmitter1Stream1TargetPassAlong(producerOpNum, dataFlowSignalManager, signalHandler, exceptionHandler, target);
}
else if (bindingType instanceof LogicalChannelBindingTypePassAlongWStream) {
LogicalChannelBindingTypePassAlongWStream type = (LogicalChannelBindingTypePassAlongWStream) bindingType;
return new EPDataFlowEmitter1Stream1TargetPassAlongWStream(producerOpNum, dataFlowSignalManager, signalHandler, exceptionHandler, target, type.getStreamNum());
}
else if (bindingType instanceof LogicalChannelBindingTypeUnwind) {
return new EPDataFlowEmitter1Stream1TargetUnwind(producerOpNum, dataFlowSignalManager, signalHandler, exceptionHandler, target);
}
else {
throw new UnsupportedOperationException("TODO");
}
}
示例3: GraphSourceRunnable
import com.espertech.esper.client.dataflow.EPDataFlowExceptionHandler; //导入依赖的package包/类
public GraphSourceRunnable(String engineURI, String statementName, DataFlowSourceOperator graphSource, String dataFlowName, String operatorName, int operatorNumber, String operatorPrettyPrint, EPDataFlowExceptionHandler optionalExceptionHandler, boolean audit) {
this.engineURI = engineURI;
this.statementName = statementName;
this.graphSource = graphSource;
this.dataFlowName = dataFlowName;
this.operatorName = operatorName;
this.operatorNumber = operatorNumber;
this.operatorPrettyPrint = operatorPrettyPrint;
this.optionalExceptionHandler = optionalExceptionHandler;
this.audit = audit;
}
示例4: EPDataFlowEmitterExceptionHandler
import com.espertech.esper.client.dataflow.EPDataFlowExceptionHandler; //导入依赖的package包/类
public EPDataFlowEmitterExceptionHandler(String engineURI, String statementName, boolean audit, String dataFlowName, String operatorName, int operatorNumber, String operatorPrettyPrint, EPDataFlowExceptionHandler optionalExceptionHandler) {
this.engineURI = engineURI;
this.statementName = statementName;
this.audit = audit;
this.dataFlowName = dataFlowName;
this.operatorName = operatorName;
this.operatorNumber = operatorNumber;
this.operatorPrettyPrint = operatorPrettyPrint;
this.optionalExceptionHandler = optionalExceptionHandler;
}
示例5: getOptionalExceptionHandler
import com.espertech.esper.client.dataflow.EPDataFlowExceptionHandler; //导入依赖的package包/类
public EPDataFlowExceptionHandler getOptionalExceptionHandler() {
return optionalExceptionHandler;
}