Package com.espertech.esper.client.dataflow

Examples of com.espertech.esper.client.dataflow.EPDataFlowSignalFinalMarker


        if (iterationNumber == 0 && initialDelayMSec > 0) {
            try {
                Thread.sleep(initialDelayMSec, 0);
            }
            catch (InterruptedException e) {
                graphContext.submitSignal(new EPDataFlowSignalFinalMarker() {});
            }
        }

        if (iterationNumber > 0 && periodDelayMSec > 0) {
            long nsecDelta = lastSendTime - System.nanoTime();
            long sleepTime = periodDelayMSec - nsecDelta / 1000000;
            if (sleepTime > 0) {
                try {
                    Thread.sleep(sleepTime);
                }
                catch (InterruptedException e) {
                    graphContext.submitSignal(new EPDataFlowSignalFinalMarker() {});
                }
            }
        }

        if (iterations > 0 && iterationNumber >= iterations) {
            graphContext.submitSignal(new EPDataFlowSignalFinalMarker() {});
        }
        else {
            iterationNumber++;
            if (evaluators != null) {
                Object[] row = new Object[evaluators.length];
View Full Code Here


        if (iterationNumber == 0 && initialDelayMSec > 0) {
            try {
                Thread.sleep(initialDelayMSec, 0);
            }
            catch (InterruptedException e) {
                graphContext.submitSignal(new EPDataFlowSignalFinalMarker() {});
            }
        }

        if (iterationNumber > 0 && periodDelayMSec > 0) {
            long nsecDelta = lastSendTime - System.nanoTime();
            long sleepTime = periodDelayMSec - nsecDelta / 1000000;
            if (sleepTime > 0) {
                try {
                    Thread.sleep(sleepTime);
                }
                catch (InterruptedException e) {
                    graphContext.submitSignal(new EPDataFlowSignalFinalMarker() {});
                }
            }
        }

        if (iterations > 0 && iterationNumber >= iterations) {
            graphContext.submitSignal(new EPDataFlowSignalFinalMarker() {});
        }
        else {
            iterationNumber++;
            if (evaluators != null) {
                Object[] row = new Object[evaluators.length];
View Full Code Here

            }
            if (eofProcessor != null) {
                int port = bofProcessor != null ? 2 : 1;
                graphContext.submitPort(port, eofProcessor.processXOF(filenameOrUri));
            }
            graphContext.submitSignal(new EPDataFlowSignalFinalMarker() {
            });
        }
    }
View Full Code Here

        }
        catch (EOFException e) {
            if (numLoops != null) {
                loopCount++;
                if (loopCount >= numLoops) {
                    graphContext.submitSignal(new EPDataFlowSignalFinalMarker() {});
                }
                else {
                    // reset
                    graphContext.submitSignal(new EPDataFlowSignalWindowMarker() {});
                    firstRow = true;
                    if (reader.isResettable()) {
                        reader.reset();
                    }
                    else {
                        reader = new CSVReader(adapterInputSource);
                    }
                }
            }
            else {
                graphContext.submitSignal(new EPDataFlowSignalFinalMarker() {});
            }
        }
    }
View Full Code Here

        if (iterationNumber == 0 && initialDelayMSec > 0) {
            try {
                Thread.sleep(initialDelayMSec, 0);
            }
            catch (InterruptedException e) {
                graphContext.submitSignal(new EPDataFlowSignalFinalMarker() {});
            }
        }

        if (iterationNumber > 0 && periodDelayMSec > 0) {
            long nsecDelta = lastSendTime - System.nanoTime();
            long sleepTime = periodDelayMSec - nsecDelta / 1000000;
            if (sleepTime > 0) {
                try {
                    Thread.sleep(sleepTime);
                }
                catch (InterruptedException e) {
                    graphContext.submitSignal(new EPDataFlowSignalFinalMarker() {});
                }
            }
        }

        if (iterations > 0 && iterationNumber >= iterations) {
            graphContext.submitSignal(new EPDataFlowSignalFinalMarker() {});
        }
        else {
            iterationNumber++;
            if (evaluators != null) {
                Object[] row = new Object[evaluators.length];
View Full Code Here

            }
            if (eofProcessor != null) {
                int port = bofProcessor != null ? 2 : 1;
                graphContext.submitPort(port, eofProcessor.processXOF(filenameOrUri));
            }
            graphContext.submitSignal(new EPDataFlowSignalFinalMarker() {
            });
        }
    }
View Full Code Here

        }
        catch (EOFException e) {
            if (numLoops != null) {
                loopCount++;
                if (loopCount >= numLoops) {
                    graphContext.submitSignal(new EPDataFlowSignalFinalMarker() {});
                }
                else {
                    // reset
                    graphContext.submitSignal(new EPDataFlowSignalWindowMarker() {});
                    firstRow = true;
                    if (reader.isResettable()) {
                        reader.reset();
                    }
                    else {
                        reader = new CSVReader(adapterInputSource);
                    }
                }
            }
            else {
                graphContext.submitSignal(new EPDataFlowSignalFinalMarker() {});
            }
        }
    }
View Full Code Here

        if (iterationNumber == 0 && initialDelayMSec > 0) {
            try {
                Thread.sleep(initialDelayMSec, 0);
            }
            catch (InterruptedException e) {
                graphContext.submitSignal(new EPDataFlowSignalFinalMarker() {});
            }
        }

        if (iterationNumber > 0 && periodDelayMSec > 0) {
            long nsecDelta = lastSendTime - System.nanoTime();
            long sleepTime = periodDelayMSec - nsecDelta / 1000000;
            if (sleepTime > 0) {
                try {
                    Thread.sleep(sleepTime);
                }
                catch (InterruptedException e) {
                    graphContext.submitSignal(new EPDataFlowSignalFinalMarker() {});
                }
            }
        }

        if (iterations > 0 && iterationNumber >= iterations) {
            graphContext.submitSignal(new EPDataFlowSignalFinalMarker() {});
        }
        else {
            iterationNumber++;
            if (evaluators != null) {
                Object[] row = new Object[evaluators.length];
View Full Code Here

    }

    public void next() throws InterruptedException {
        currentCount++;
        if (instructions.length <= currentCount) {
            graphContext.submitSignal(new EPDataFlowSignalFinalMarker() {});
            return;
        }

        Object next = instructions[currentCount];
        if (next instanceof CountDownLatch) {
View Full Code Here

        }
        else {
            if (log.isDebugEnabled()) {
                log.debug("Submitting punctuation");
            }
            graphContext.submitSignal(new EPDataFlowSignalFinalMarker() {});
        }
    }
View Full Code Here

TOP

Related Classes of com.espertech.esper.client.dataflow.EPDataFlowSignalFinalMarker

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.