Examples of EPStatementHandleCallback


Examples of com.espertech.esper.core.service.EPStatementHandleCallback

                    scheduleCallback();
                    if (InstrumentationHelper.ENABLED) { InstrumentationHelper.get().aViewScheduledEval();}
                }
            };
            scheduleSlot = agentInstanceContext.getStatementContext().getScheduleBucket().allocateSlot();
            scheduleHandle = new EPStatementHandleCallback(agentInstanceContext.getEpStatementAgentInstanceHandle(), callback);
            agentInstanceContext.addTerminationCallback(this);
        }
        else {
            scheduleSlot = null;
            scheduleHandle = null;
View Full Code Here

Examples of com.espertech.esper.core.service.EPStatementHandleCallback

                if (InstrumentationHelper.ENABLED) { InstrumentationHelper.get().qViewScheduledEval(TimeWindowView.this, TimeWindowView.this.timeWindowViewFactory.getViewName());}
                TimeWindowView.this.expire();
                if (InstrumentationHelper.ENABLED) { InstrumentationHelper.get().aViewScheduledEval();}
            }
        };
        this.handle = new EPStatementHandleCallback(agentInstanceContext.getEpStatementAgentInstanceHandle(), callback);

        agentInstanceContext.getStatementContext().getScheduleAdjustmentService().addCallback(this);
        agentInstanceContext.addTerminationCallback(this);
    }
View Full Code Here

Examples of com.espertech.esper.core.service.EPStatementHandleCallback

                if (InstrumentationHelper.ENABLED) { InstrumentationHelper.get().qViewScheduledEval(TimeBatchViewRStream.this, timeBatchViewFactory.getViewName());}
                TimeBatchViewRStream.this.sendBatch();
                if (InstrumentationHelper.ENABLED) { InstrumentationHelper.get().aViewScheduledEval();}
            }
        };
        handle = new EPStatementHandleCallback(agentInstanceContext.getEpStatementAgentInstanceHandle(), callback);
        agentInstanceContext.getStatementContext().getSchedulingService().add(afterMSec, handle, scheduleSlot);
    }
View Full Code Here

Examples of com.espertech.esper.core.service.EPStatementHandleCallback

                {
                    ExpressionWindowView.this.expire(null, null);
                }
            };
            scheduleSlot = agentInstanceContext.getStatementContext().getScheduleBucket().allocateSlot();
            scheduleHandle = new EPStatementHandleCallback(agentInstanceContext.getEpStatementAgentInstanceHandle(), callback);
            agentInstanceContext.getTerminationCallbacks().add(this);
        }
        else {
            scheduleSlot = null;
            scheduleHandle = null;
View Full Code Here

Examples of com.espertech.esper.core.service.EPStatementHandleCallback

                {
                    return isSubSelect;
                }
            };
        }
        EPStatementHandleCallback handle = new EPStatementHandleCallback(epStatementAgentInstanceHandle, filterCallback);

        // Store stream for reuse
        pair = new Pair<EventStream, EPStatementHandleCallback>(eventStream, handle);
        if (forceNewStream)
        {
View Full Code Here

Examples of com.espertech.esper.core.service.EPStatementHandleCallback

                OutputConditionExpression.this.isCallbackScheduled = false;
                OutputConditionExpression.this.outputCallback.continueOutputProcessing(true, true);
                resetBuiltinProperties();
            }
        };
        scheduleHandle = new EPStatementHandleCallback(agentInstanceContext.getEpStatementAgentInstanceHandle(), callback);
        agentInstanceContext.getStatementContext().getSchedulingService().add(0, scheduleHandle, scheduleSlot);
        agentInstanceContext.getTerminationCallbacks().add(this);

        // execute assignments
        if (parent.getVariableReadWritePackage() != null)
View Full Code Here

Examples of com.espertech.esper.core.service.EPStatementHandleCallback

                {
                    return isSubSelect;
                }
            };
        }
        EPStatementHandleCallback filterHandle = new EPStatementHandleCallback(agentInstanceContext.getEpStatementAgentInstanceHandle(), filterCallback);

        List<FilterValueSetParam> addendum = null;
        if (agentInstanceContext.getAgentInstanceFilterProxy() != null) {
            addendum = agentInstanceContext.getAgentInstanceFilterProxy().getAddendumFilters(filterSpec);
        }
View Full Code Here

Examples of com.espertech.esper.core.service.EPStatementHandleCallback

            // schedule a termination callback unless it is already scheduled
            if (scheduleAndContext.getContextScheduleCallbackHandle() == null) {
                ScheduleSlot scheduleSlot = createContextContext.getStatementContext().getScheduleBucket().allocateSlot();
                long timeOffset = servicesContext.getSchedulingService().getTime() - scheduleAndContext.getStartTime();
                EPStatementHandleCallback callback = scheduleCallback(agentInstanceId, scheduleSlot, timeOffset);
                scheduleAndContext.setContextScheduleCallbackHandle(callback, scheduleSlot);
            }
        }
    }
View Full Code Here

Examples of com.espertech.esper.core.service.EPStatementHandleCallback

                public boolean isSubSelect() {
                    return false;
                }
            };
            filterHandle = new EPStatementHandleCallback(createContextContext.getEpStatementAgentInstanceHandle(), filterCallback);
            FilterValueSet filterValueSet = overlapSpec.getInitiatedFilterCompiled().getValueSet(null, null, null);
            servicesContext.getFilterService().add(filterValueSet, filterHandle);
        }
    }
View Full Code Here

Examples of com.espertech.esper.core.service.EPStatementHandleCallback

        // save state if required
        contextStateService.addContext(contextName, agentInstanceId, scheduleAndContext, contextStateServiceBinding);

        // schedule callback, save for removal
        ScheduleSlot scheduleSlot = createContextContext.getStatementContext().getScheduleBucket().allocateSlot();
        EPStatementHandleCallback scheduleHandle = scheduleCallback(agentInstanceId, scheduleSlot, 0);
        scheduleAndContext.setContextScheduleCallbackHandle(scheduleHandle, scheduleSlot);

        // for all current statements, start an instance
        for (ContextManagedStatementBase statement : statements.values()) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.