Class AbstractSiddhiAppCreator

    • Constructor Detail

      • AbstractSiddhiAppCreator

        public AbstractSiddhiAppCreator()
    • Method Detail

      • createApps

        protected abstract List<SiddhiQuery> createApps​(String siddhiAppName,
                                                        SiddhiQueryGroup queryGroup,
                                                        MessagingSystem messagingSystem)
        This method should return valid concrete Siddhi App/s as Strings. No. of returned Siddhi Apps should equal the parallelism count for parse group.
        Parameters:
        queryGroup - Input parse group to produce Siddhi Apps.
        Returns:
        List of valid concrete Siddhi Apps as String.
      • getPartitionNumbers

        protected List<Integer> getPartitionNumbers​(int appParallelism,
                                                    int availablePartitionCount,
                                                    int currentAppNum)
      • generateQueryList

        protected List<SiddhiQuery> generateQueryList​(String queryTemplate,
                                                      String queryGroupName,
                                                      int parallelism)
      • getTopicName

        protected String getTopicName​(String siddhiAppName,
                                      String streamName,
                                      String groupingField)
        Parameters:
        siddhiAppName - Name of the userdefined siddhi app
        streamName - Currently processing stream name
        groupingField - Partition key field, if available otherwise null
        Returns:
        created topic name Creates the topic name from above parameters