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


Java EPDataFlowSignal类代码示例

本文整理汇总了Java中com.espertech.esper.client.dataflow.EPDataFlowSignal的典型用法代码示例。如果您正苦于以下问题:Java EPDataFlowSignal类的具体用法?Java EPDataFlowSignal怎么用?Java EPDataFlowSignal使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


EPDataFlowSignal类属于com.espertech.esper.client.dataflow包,在下文中一共展示了EPDataFlowSignal类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: onSignal

import com.espertech.esper.client.dataflow.EPDataFlowSignal; //导入依赖的package包/类
public void onSignal(EPDataFlowSignal signal) {
    if (iterate && signal instanceof EPDataFlowSignalFinalMarker) {
        Iterator<EventBean> it = selectResult.getFinalView().iterator();
        if (it != null) {
            for (;it.hasNext();) {
                EventBean event = it.next();
                if (submitEventBean) {
                    graphContext.submit(event);
                }
                else {
                    graphContext.submit(event.getUnderlying());
                }
            }
        }
    }
}
 
开发者ID:mobile-event-processing,项目名称:Asper,代码行数:17,代码来源:Select.java

示例2: onSignal

import com.espertech.esper.client.dataflow.EPDataFlowSignal; //导入依赖的package包/类
public void onSignal(EPDataFlowSignal signal) {
    if (iterate && signal instanceof EPDataFlowSignalFinalMarker) {
        Iterator<EventBean> it = selectResult.getFinalView().iterator();
        if (it != null) {
            for (; it.hasNext(); ) {
                EventBean event = it.next();
                if (submitEventBean) {
                    graphContext.submit(event);
                } else {
                    graphContext.submit(event.getUnderlying());
                }
            }
        }
    }
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:16,代码来源:Select.java

示例3: processSignal

import com.espertech.esper.client.dataflow.EPDataFlowSignal; //导入依赖的package包/类
public void processSignal(EPDataFlowSignal signal) {
    if (signal instanceof EPDataFlowSignalFinalMarker) {
        if (runnable != null) {
            runnable.shutdown();
        }
    }
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:8,代码来源:PunctuationEventListenerImpl.java

示例4: processSignal

import com.espertech.esper.client.dataflow.EPDataFlowSignal; //导入依赖的package包/类
public void processSignal(int operatorNum, EPDataFlowSignal signal) {
    List<DataFlowSignalListener> listeners = listenersPerOp.get(operatorNum);
    if (listeners == null || listeners.isEmpty()) {
        return;
    }
    for (DataFlowSignalListener listener : listeners) {
        listener.processSignal(signal);
    }
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:10,代码来源:DataFlowSignalManager.java

示例5: handleSignal

import com.espertech.esper.client.dataflow.EPDataFlowSignal; //导入依赖的package包/类
@Override
public void handleSignal(EPDataFlowSignal signal) {
    try {
        handleSignalInternal(signal);
    } catch (InvocationTargetException ex) {
        log.error("Failed to invoke signal handler: " + ex.getMessage(), ex);
    }
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:9,代码来源:SignalHandlerDefaultWInvoke.java

示例6: submitSignal

import com.espertech.esper.client.dataflow.EPDataFlowSignal; //导入依赖的package包/类
public void submitSignal(EPDataFlowSignal signal) {
    signalManager.processSignal(operatorNum, signal);
    for (SubmitHandler[] handlerArr : handlersPerStream) {
        for (SubmitHandler handler : handlerArr) {
            handler.handleSignal(signal);
        }
    }
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:9,代码来源:EPDataFlowEmitterNStreamNTarget.java

示例7: handleSignal

import com.espertech.esper.client.dataflow.EPDataFlowSignal; //导入依赖的package包/类
@Override
public void handleSignal(EPDataFlowSignal signal) {
    try {
        handleSignalInternal(signal);
    }
    catch (InvocationTargetException ex) {
        log.error("Failed to invoke signal handler: " + ex.getMessage(), ex);
    }
}
 
开发者ID:mobile-event-processing,项目名称:Asper,代码行数:10,代码来源:SignalHandlerDefaultWInvoke.java

示例8: onSignal

import com.espertech.esper.client.dataflow.EPDataFlowSignal; //导入依赖的package包/类
public void onSignal(EPDataFlowSignal signal) {
    if (signal instanceof EPDataFlowSignalFinalMarker) {
        destroy();
    }
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:6,代码来源:FileSinkCSV.java

示例9: onSignal

import com.espertech.esper.client.dataflow.EPDataFlowSignal; //导入依赖的package包/类
public void onSignal(EPDataFlowSignal signal) {
    log.debug("Received punctuation, submitting totals: " + aggregate);
    graphContext.submit(aggregate);
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:5,代码来源:MyWordCountAggregator.java

示例10: submitSignal

import com.espertech.esper.client.dataflow.EPDataFlowSignal; //导入依赖的package包/类
public void submitSignal(EPDataFlowSignal signal) {
    dataFlowEmitter.submitSignal(signal);
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:4,代码来源:Emitter.java

示例11: submitSignal

import com.espertech.esper.client.dataflow.EPDataFlowSignal; //导入依赖的package包/类
public void submitSignal(EPDataFlowSignal signal) {
    queue.add(signal);
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:4,代码来源:EPStatementSource.java

示例12: processSignal

import com.espertech.esper.client.dataflow.EPDataFlowSignal; //导入依赖的package包/类
public void processSignal(EPDataFlowSignal signal) {
    if (signal instanceof EPDataFlowSignalFinalMarker) {
        shutdown = true;
    }
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:6,代码来源:GraphSourceRunnable.java

示例13: onSignal

import com.espertech.esper.client.dataflow.EPDataFlowSignal; //导入依赖的package包/类
public void onSignal(EPDataFlowSignal signal) {
    received.add(current);
    current = new ArrayList<T>();
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:5,代码来源:DefaultSupportCaptureOp.java

示例14: onSignal

import com.espertech.esper.client.dataflow.EPDataFlowSignal; //导入依赖的package包/类
public void onSignal(EPDataFlowSignal signal) {
    current.add(signal);
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:4,代码来源:DefaultSupportCaptureOpStatic.java

示例15: submitSignal

import com.espertech.esper.client.dataflow.EPDataFlowSignal; //导入依赖的package包/类
public void submitSignal(EPDataFlowSignal signal) {
    signalManager.processSignal(operatorNum, signal);
    for (SubmitHandler handler : targets) {
        handler.handleSignal(signal);
    }
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:7,代码来源:EPDataFlowEmitter1StreamNTarget.java


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