Class SimpleSourceConfig<I,​E>

    • Constructor Detail

      • SimpleSourceConfig

        public SimpleSourceConfig​(com.qfs.source.IStoreMessageChannelFactory<I,​E> messageChannelFactory,
                                  com.activeviam.tools.dataloadcontroller.core.source.IFetchingDataSource<I,​E> source,
                                  Map<String,​SimpleSourceConfig.ITopicConfig<I>> topicConfigs)
        Create a new instance
        Parameters:
        messageChannelFactory - the message channel factory to create the base channels
        source - the source object
        topicConfigs - a map of topics to topic configs
    • Method Detail

      • getSource

        public com.activeviam.tools.dataloadcontroller.core.source.IFetchingDataSource<I,​E> getSource()
        Specified by:
        getSource in interface ISourceConfig<I,​E>
        Returns:
        the source object that can be registered with IDataLoadController
      • createChannel

        public com.qfs.msg.IMessageChannel<I,​E> createChannel​(String topic)
        Description copied from interface: ISourceConfig
        Create a message channel for the topic.
        Specified by:
        createChannel in interface ISourceConfig<I,​E>
        Parameters:
        topic - the topic to create the channel for
        Returns:
        the message channel
      • getTargetStores

        public Collection<String> getTargetStores​(String topic)
        Description copied from interface: ISourceConfig
        The stores that are targeted by the topic. These stores are passed to the IDataLoadController.registerChannel() when registering the topic's channel with the data load controller.
        Specified by:
        getTargetStores in interface ISourceConfig<I,​E>
        Parameters:
        topic - the topic whose target stores are
        Returns:
        the stores that may be written to when fetching the topic
        See Also:
        ITuplePublisher.getTargetStores()