Package com.espertech.esper.dataflow.interfaces

Examples of com.espertech.esper.dataflow.interfaces.DataFlowOpLifecycle


    private void callOperatorClose() {
        for (Integer opNum : operatorBuildOrder) {
            Object operator = operators.get(opNum);
            if (operator instanceof DataFlowOpLifecycle) {
                try {
                    DataFlowOpLifecycle lf = (DataFlowOpLifecycle) operator;
                    lf.close(new DataFlowOpCloseContext());
                }
                catch (RuntimeException ex) {
                    log.error("Exception encountered closing data flow '" + dataFlowName + "': " + ex.getMessage(), ex);
                }
            }
View Full Code Here


    private void callOperatorOpen() {
        for (Integer opNum : operatorBuildOrder) {
            Object operator = operators.get(opNum);
            if (operator instanceof DataFlowOpLifecycle) {
                try {
                    DataFlowOpLifecycle lf = (DataFlowOpLifecycle) operator;
                    lf.open(new DataFlowOpOpenContext());
                }
                catch (RuntimeException ex) {
                    throw new EPDataFlowExecutionException("Exception encountered opening data flow 'FlowOne' in operator " + operator.getClass().getSimpleName() + ": " + ex.getMessage(), ex, dataFlowName);
                }
            }
View Full Code Here

    private synchronized void callOperatorClose() {
        for (Integer opNum : operatorBuildOrder) {
            Pair<Object, Boolean> operatorStatePair = operators.get(opNum);
            if (operatorStatePair.getFirst() instanceof DataFlowOpLifecycle && !operatorStatePair.getSecond()) {
                try {
                    DataFlowOpLifecycle lf = (DataFlowOpLifecycle) operatorStatePair.getFirst();
                    lf.close(new DataFlowOpCloseContext());
                }
                catch (RuntimeException ex) {
                    log.error("Exception encountered closing data flow '" + dataFlowName + "': " + ex.getMessage(), ex);
                }
                operatorStatePair.setSecond(true);
View Full Code Here

    private void callOperatorOpen() {
        for (Integer opNum : operatorBuildOrder) {
            Pair<Object, Boolean> operatorStatePair = operators.get(opNum);
            if (operatorStatePair.getFirst() instanceof DataFlowOpLifecycle) {
                try {
                    DataFlowOpLifecycle lf = (DataFlowOpLifecycle) operatorStatePair.getFirst();
                    lf.open(new DataFlowOpOpenContext());
                }
                catch (RuntimeException ex) {
                    throw new EPDataFlowExecutionException("Exception encountered opening data flow 'FlowOne' in operator " + operatorStatePair.getFirst().getClass().getSimpleName() + ": " + ex.getMessage(), ex, dataFlowName);
                }
            }
View Full Code Here

    private void callOperatorClose() {
        for (Integer opNum : operatorBuildOrder) {
            Object operator = operators.get(opNum);
            if (operator instanceof DataFlowOpLifecycle) {
                try {
                    DataFlowOpLifecycle lf = (DataFlowOpLifecycle) operator;
                    lf.close(new DataFlowOpCloseContext());
                }
                catch (RuntimeException ex) {
                    log.error("Exception encountered closing data flow '" + dataFlowName + "': " + ex.getMessage(), ex);
                }
            }
View Full Code Here

    private void callOperatorOpen() {
        for (Integer opNum : operatorBuildOrder) {
            Object operator = operators.get(opNum);
            if (operator instanceof DataFlowOpLifecycle) {
                try {
                    DataFlowOpLifecycle lf = (DataFlowOpLifecycle) operator;
                    lf.open(new DataFlowOpOpenContext());
                }
                catch (RuntimeException ex) {
                    throw new EPDataFlowExecutionException("Exception encountered opening data flow 'FlowOne' in operator " + operator.getClass().getSimpleName() + ": " + ex.getMessage(), ex, dataFlowName);
                }
            }
View Full Code Here

TOP

Related Classes of com.espertech.esper.dataflow.interfaces.DataFlowOpLifecycle

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.