Class DistributedTransport

    • Field Detail

      • streamDefinition

        protected io.siddhi.query.api.definition.StreamDefinition streamDefinition
    • Constructor Detail

      • DistributedTransport

        public DistributedTransport()
    • Method Detail

      • init

        protected StateFactory<State> init​(io.siddhi.query.api.definition.StreamDefinition outputStreamDefinition,
                                           OptionHolder optionHolder,
                                           ConfigReader sinkConfigReader,
                                           SiddhiAppContext siddhiAppContext)
        Will be called for initialing the Sink
        Specified by:
        init in class Sink
        Parameters:
        outputStreamDefinition - The stream definition this Output transport/sink is attached to
        optionHolder - Option holder containing static and dynamic options related to the Sink
        sinkConfigReader - this hold the Sink extensions configuration reader.
        siddhiAppContext - Context of the siddhi app which this output sink belongs to
      • init

        public void init​(io.siddhi.query.api.definition.StreamDefinition streamDefinition,
                         String type,
                         OptionHolder transportOptionHolder,
                         ConfigReader sinkConfigReader,
                         SinkMapper sinkMapper,
                         String mapType,
                         OptionHolder mapOptionHolder,
                         SinkHandler sinkHandler,
                         List<io.siddhi.query.api.annotation.Element> payloadElementList,
                         ConfigReader mapperConfigReader,
                         StreamJunction streamJunction,
                         SiddhiAppContext siddhiAppContext,
                         List<OptionHolder> destinationOptionHolders,
                         io.siddhi.query.api.annotation.Annotation sinkAnnotation,
                         DistributionStrategy strategy,
                         String[] supportedDynamicOptions,
                         Map<String,​String> deploymentProperties,
                         List<Map<String,​String>> destinationDeploymentProperties)
        This is method contains the additional parameters which require to initialize distributed transport
        Parameters:
        streamDefinition - Definition of the stream this sink instance is publishing to
        type - Type of the transport that (e.g., TCP, JMS)
        transportOptionHolder - Option holder for carrying options for the transport
        sinkConfigReader - This hold the Sink extensions configuration reader for the sink
        sinkMapper - Hold the mapper that's used in this sink
        mapType - Type of the mapper
        mapOptionHolder - Options of the mapper
        sinkHandler - Sink handler to do optional processing
        payloadElementList - The template list of the payload messages
        mapperConfigReader - This hold the Sink extensions configuration reader for the mapper
        streamJunction -
        siddhiAppContext - The siddhi app context
        destinationOptionHolders - List of option holders containing the options mentioned in @destination
        sinkAnnotation - The annotation of the Sink
        strategy - Publishing strategy to be used by the distributed transport
        supportedDynamicOptions - List of supported dynamic options
        deploymentProperties - Service deployment properties for distributed transport sink
        destinationDeploymentProperties - Service deployment properties
      • isConnected

        public boolean isConnected()
        Overrides:
        isConnected in class Sink
      • getSupportedDynamicOptions

        public String[] getSupportedDynamicOptions()
        Supported dynamic options by the transport
        Specified by:
        getSupportedDynamicOptions in class Sink
        Returns:
        the list of supported dynamic option keys