当前位置: 首页>>代码示例>>Java>>正文


Java EPDataFlowExceptionHandler类代码示例

本文整理汇总了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 + "'");
    }
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:21,代码来源:RealizationFactoryInterface.java

示例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");
    }
}
 
开发者ID:mobile-event-processing,项目名称:Asper,代码行数:24,代码来源:RealizationFactoryInterface.java

示例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;
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:12,代码来源:GraphSourceRunnable.java

示例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;
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:11,代码来源:EPDataFlowEmitterExceptionHandler.java

示例5: getOptionalExceptionHandler

import com.espertech.esper.client.dataflow.EPDataFlowExceptionHandler; //导入依赖的package包/类
public EPDataFlowExceptionHandler getOptionalExceptionHandler() {
    return optionalExceptionHandler;
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:4,代码来源:EPDataFlowEmitterExceptionHandler.java


注:本文中的com.espertech.esper.client.dataflow.EPDataFlowExceptionHandler类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。