Interface SiddhiAppRuntime

  • All Known Implementing Classes:
    SiddhiAppRuntimeImpl

    public interface SiddhiAppRuntime
    Keep streamDefinitions, partitionRuntimes, queryRuntimes of an SiddhiApp and streamJunctions and inputHandlers used.
    • Method Detail

      • getSiddhiApp

        io.siddhi.query.api.SiddhiApp getSiddhiApp()
      • getStreamDefinitionMap

        Map<String,​io.siddhi.query.api.definition.StreamDefinition> getStreamDefinitionMap()
        Get the stream definition map.
        Returns:
        Map of StreamDefinitions.
      • getTableDefinitionMap

        Map<String,​io.siddhi.query.api.definition.TableDefinition> getTableDefinitionMap()
        Get the table definition map.
        Returns:
        Map of TableDefinitions.
      • getWindowDefinitionMap

        Map<String,​io.siddhi.query.api.definition.WindowDefinition> getWindowDefinitionMap()
        Get the window definition map.
        Returns:
        Map of WindowDefinitions.
      • getAggregationDefinitionMap

        Map<String,​io.siddhi.query.api.definition.AggregationDefinition> getAggregationDefinitionMap()
        Get the aggregation definition map.
        Returns:
        Map of AggregationDefinitions.
      • getQueryNames

        Set<String> getQueryNames()
        Get the names of the available queries.
        Returns:
        string set of query names.
      • getPartitionedInnerStreamDefinitionMap

        Map<String,​Map<String,​io.siddhi.query.api.definition.AbstractDefinition>> getPartitionedInnerStreamDefinitionMap()
      • removeCallback

        void removeCallback​(StreamCallback streamCallback)
      • removeCallback

        void removeCallback​(QueryCallback streamCallback)
      • query

        @Deprecated
        Event[] query​(io.siddhi.query.api.execution.query.StoreQuery storeQuery)
        Deprecated.
      • query

        Event[] query​(io.siddhi.query.api.execution.query.OnDemandQuery storeQuery)
      • getStoreQueryOutputAttributes

        @Deprecated
        io.siddhi.query.api.definition.Attribute[] getStoreQueryOutputAttributes​(String storeQuery)
        Deprecated.
      • getStoreQueryOutputAttributes

        @Deprecated
        io.siddhi.query.api.definition.Attribute[] getStoreQueryOutputAttributes​(io.siddhi.query.api.execution.query.StoreQuery storeQuery)
        Deprecated.
      • getOnDemandQueryOutputAttributes

        io.siddhi.query.api.definition.Attribute[] getOnDemandQueryOutputAttributes​(String onDemandQuery)
      • getOnDemandQueryOutputAttributes

        io.siddhi.query.api.definition.Attribute[] getOnDemandQueryOutputAttributes​(io.siddhi.query.api.execution.query.OnDemandQuery onDemandQuery)
      • setPurgingEnabled

        void setPurgingEnabled​(boolean purgingEnabled)
      • start

        void start()
      • startWithoutSources

        void startWithoutSources()
      • startSources

        void startSources()
      • shutdown

        void shutdown()
      • snapshot

        byte[] snapshot()
      • handleExceptionWith

        void handleExceptionWith​(com.lmax.disruptor.ExceptionHandler<Object> exceptionHandler)
      • handleRuntimeExceptionWith

        void handleRuntimeExceptionWith​(ExceptionListener exceptionListener)
      • getStatisticsLevel

        Level getStatisticsLevel()
        Method to check the Siddhi App statistics level enabled.
        Returns:
        Level value of Siddhi App statistics state
      • setStatisticsLevel

        void setStatisticsLevel​(Level level)
        To enable, disable and change Siddhi App statistics level on runtime.
        Parameters:
        level - whether statistics is OFF, BASIC or DETAIL
      • enablePlayBack

        void enablePlayBack​(boolean playBackEnabled,
                            Long idleTime,
                            Long incrementInMilliseconds)
        To enable and disable Siddhi App playback mode on runtime along with optional parameters.
        Parameters:
        playBackEnabled - whether playback is enabled or not
        idleTime -
        incrementInMilliseconds -
      • getWarnings

        Set<String> getWarnings()
        Method to get Siddhi App runtime warnings.
        Returns:
        list of recorded runtime warnings.