當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。