Class WebSocketProvider

    • Constructor Detail

      • WebSocketProvider

        public WebSocketProvider()
    • Method Detail

      • init

        public DataProvider init​(String topic,
                                 String sessionId,
                                 com.google.gson.JsonElement jsonElement)
                          throws DataProviderException
        Description copied from interface: DataProvider
        Initialize the instance with the session id.
        Specified by:
        init in interface DataProvider
        Parameters:
        topic - to receive topic messages, data provider send event with this topic.
        sessionId - data provider send event for this session.
        jsonElement - provider configuration message in json format.
        Returns:
        data provider initialized with provider configuration.
        Throws:
        DataProviderException - if there any initialization failures.
      • start

        public void start()
        Description copied from interface: DataProvider
        Start pushing data to the client from the data sources.
        Specified by:
        start in interface DataProvider
      • stop

        public void stop()
        Description copied from interface: DataProvider
        Stop pushing data to the client and disconnect.
        Specified by:
        stop in interface DataProvider
      • providerName

        public String providerName()
        Description copied from interface: DataProvider
        Get the data provider name.
        Specified by:
        providerName in interface DataProvider
        Returns:
        name of the data provider.
      • providerConfig

        public String providerConfig()
        Description copied from interface: DataProvider
        Get the data provider configuration.
        Specified by:
        providerConfig in interface DataProvider
        Returns:
        configuration of the data provider.