Interface StreamDataServerStartable


  • public interface StreamDataServerStartable
    StreamDataServerStartable is the interface for stream data sources. Each stream data connector should implement a mock/wrapper of the data server. E.g. KafkaDataServerStartable is a wrapper class of Kafka 0.9 broker.
    • Method Summary

      Modifier and Type Method Description
      void createTopic​(String topic, Properties topicProps)
      Create a data stream (e.g Kafka topic) in the server.
      int getPort()
      Get the port of the server.
      void init​(Properties props)
      Init the server.
      void start()
      Start the server
      void stop()
      Stop the server
    • Method Detail

      • init

        void init​(Properties props)
        Init the server.
        Parameters:
        props -
      • start

        void start()
        Start the server
      • stop

        void stop()
        Stop the server
      • createTopic

        void createTopic​(String topic,
                         Properties topicProps)
        Create a data stream (e.g Kafka topic) in the server.
        Parameters:
        topic -
        topicProps -
      • getPort

        int getPort()
        Get the port of the server.