Class CronWindowProcessor

    • Constructor Detail

      • CronWindowProcessor

        public CronWindowProcessor()
    • Method Detail

      • init

        protected StateFactory<io.siddhi.core.query.processor.stream.window.CronWindowProcessor.WindowState> init​(ExpressionExecutor[] attributeExpressionExecutors,
                                                                                                                  ConfigReader configReader,
                                                                                                                  StreamEventClonerHolder streamEventClonerHolder,
                                                                                                                  boolean outputExpectsExpiredEvents,
                                                                                                                  boolean findToBeExecuted,
                                                                                                                  SiddhiQueryContext siddhiQueryContext)
        Description copied from class: BatchingWindowProcessor
        The init method of the WindowProcessor, this method will be called before other methods
        Specified by:
        init in class BatchingWindowProcessor<io.siddhi.core.query.processor.stream.window.CronWindowProcessor.WindowState>
        Parameters:
        attributeExpressionExecutors - the executors of each function parameters
        configReader - the config reader of window
        streamEventClonerHolder - stream event cloner holder
        outputExpectsExpiredEvents - is expired events sent as output
        findToBeExecuted - find operation will be performed
        siddhiQueryContext - the context of the siddhi query
      • process

        protected void process​(ComplexEventChunk<StreamEvent> streamEventChunk,
                               Processor nextProcessor,
                               StreamEventCloner streamEventCloner,
                               io.siddhi.core.query.processor.stream.window.CronWindowProcessor.WindowState state)
        Description copied from class: BatchingWindowProcessor
        The main processing method that will be called upon event arrival
        Specified by:
        process in class BatchingWindowProcessor<io.siddhi.core.query.processor.stream.window.CronWindowProcessor.WindowState>
        Parameters:
        streamEventChunk - the stream event chunk that need to be processed
        nextProcessor - the next processor to which the success events need to be passed
        streamEventCloner - helps to clone the incoming event for local storage or modification
        state - current state of the processor
      • start

        public void start()
        Description copied from interface: ExternalReferencedHolder
        This will be called only once and this can be used to acquire required resources for the processing element. This will be called after initializing the system and before starting to process the events.
        Specified by:
        start in interface ExternalReferencedHolder
      • stop

        public void stop()
        Description copied from interface: ExternalReferencedHolder
        This will be called only once and this can be used to release the acquired resources for processing. This will be called before shutting down the system.
        Specified by:
        stop in interface ExternalReferencedHolder
      • dispatchEvents

        public void dispatchEvents()
      • execute

        public void execute​(org.quartz.JobExecutionContext jobExecutionContext)
                     throws org.quartz.JobExecutionException
        Specified by:
        execute in interface org.quartz.Job
        Throws:
        org.quartz.JobExecutionException