Class NatsSiddhiAppCreator
- java.lang.Object
-
- org.wso2.siddhi.parser.core.appcreator.AbstractSiddhiAppCreator
-
- org.wso2.siddhi.parser.core.appcreator.NatsSiddhiAppCreator
-
- All Implemented Interfaces:
SiddhiAppCreator
public class NatsSiddhiAppCreator extends AbstractSiddhiAppCreator
Creates distributed siddhi application which can be distributed using Nats-streaming.
-
-
Field Summary
Fields Modifier and Type Field Description static StringAPP_NAMEstatic StringBOOTSTRAP_SERVER_URLstatic StringCLUSTER_IDstatic StringCONSUMER_GROUP_IDstatic StringDEFAULT_NATS_SINK_TEMPLATEstatic StringDEFAULT_NATS_SOURCE_TEMPLATEstatic StringDESTINATION_TOPICstatic StringDESTINATIONSstatic StringMAPPINGstatic StringNATS_SERVER_URLstatic StringPARTITION_KEYstatic StringPARTITION_LISTstatic StringPARTITION_NOstatic StringPARTITION_TOPICstatic StringPARTITIONED_NATS_SINK_TEMPLATEstatic StringQUEUE_GROUP_NAMEstatic StringRR_NATS_SOURCE_TEMPLATEstatic StringTOPIC_LIST
-
Constructor Summary
Constructors Constructor Description NatsSiddhiAppCreator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<SiddhiQuery>createApps(String siddhiAppName, SiddhiQueryGroup queryGroup, MessagingSystem messagingSystem)This method should return valid concrete Siddhi App/s as Strings.-
Methods inherited from class org.wso2.siddhi.parser.core.appcreator.AbstractSiddhiAppCreator
createApps, generateQueryList, getPartitionNumbers, getTopicName, getUpdatedQuery, updateQueryList
-
-
-
-
Field Detail
-
APP_NAME
public static final String APP_NAME
- See Also:
- Constant Field Values
-
TOPIC_LIST
public static final String TOPIC_LIST
- See Also:
- Constant Field Values
-
CONSUMER_GROUP_ID
public static final String CONSUMER_GROUP_ID
- See Also:
- Constant Field Values
-
BOOTSTRAP_SERVER_URL
public static final String BOOTSTRAP_SERVER_URL
- See Also:
- Constant Field Values
-
PARTITION_LIST
public static final String PARTITION_LIST
- See Also:
- Constant Field Values
-
PARTITION_KEY
public static final String PARTITION_KEY
- See Also:
- Constant Field Values
-
DESTINATIONS
public static final String DESTINATIONS
- See Also:
- Constant Field Values
-
PARTITION_NO
public static final String PARTITION_NO
- See Also:
- Constant Field Values
-
MAPPING
public static final String MAPPING
- See Also:
- Constant Field Values
-
PARTITION_TOPIC
public static final String PARTITION_TOPIC
- See Also:
- Constant Field Values
-
DESTINATION_TOPIC
public static final String DESTINATION_TOPIC
- See Also:
- Constant Field Values
-
CLUSTER_ID
public static final String CLUSTER_ID
- See Also:
- Constant Field Values
-
NATS_SERVER_URL
public static final String NATS_SERVER_URL
- See Also:
- Constant Field Values
-
PARTITIONED_NATS_SINK_TEMPLATE
public static final String PARTITIONED_NATS_SINK_TEMPLATE
- See Also:
- Constant Field Values
-
DEFAULT_NATS_SINK_TEMPLATE
public static final String DEFAULT_NATS_SINK_TEMPLATE
- See Also:
- Constant Field Values
-
DEFAULT_NATS_SOURCE_TEMPLATE
public static final String DEFAULT_NATS_SOURCE_TEMPLATE
- See Also:
- Constant Field Values
-
QUEUE_GROUP_NAME
public static final String QUEUE_GROUP_NAME
- See Also:
- Constant Field Values
-
RR_NATS_SOURCE_TEMPLATE
public static final String RR_NATS_SOURCE_TEMPLATE
- See Also:
- Constant Field Values
-
-
Method Detail
-
createApps
protected List<SiddhiQuery> createApps(String siddhiAppName, SiddhiQueryGroup queryGroup, MessagingSystem messagingSystem)
Description copied from class:AbstractSiddhiAppCreatorThis method should return valid concrete Siddhi App/s as Strings. No. of returned Siddhi Apps should equal the parallelism count for parse group.- Specified by:
createAppsin classAbstractSiddhiAppCreatorqueryGroup- Input parse group to produce Siddhi Apps.- Returns:
- List of valid concrete Siddhi Apps as String.
-
-