Interface ISmartDataDistributionChannel

    • Method Detail

      • SetParameter

        void SetParameter​(java.lang.String paramName,
                          java.lang.String paramValue)
        Set parameter on channel
        Parameters:
        paramName - Parameter name to set
        paramValue - Parameter value to set
      • SetParameter

        void SetParameter​(DDM_GENERAL_PARAMETER paramId,
                          java.lang.String paramValue)
        Set parameter on channel
        Parameters:
        paramId - Parameter DDM_GENERAL_PARAMETER to set
        paramValue - Parameter value to set
      • GetParameter

        java.lang.String GetParameter​(java.lang.String paramName)
        Get parameter from channel
        Parameters:
        paramName - Parameter name to get
        Returns:
        Parameter value
      • SeekChannel

        OPERATION_RESULT SeekChannel​(long position)
        Seek the channel using absolute offset
        Parameters:
        position - Seek offset poisition
        Returns:
        OPERATION_RESULT
      • SeekChannel

        OPERATION_RESULT SeekChannel​(java.util.Date position)
        Seek the channel to an absolute timestamp
        Parameters:
        position - Seek timestamp to an absolute poisition
        Returns:
        OPERATION_RESULT
      • SeekChannel

        OPERATION_RESULT SeekChannel​(java.time.Duration position)
        Seek the channel by a relative time expressed as Duration starting from latest known timestamp
        Parameters:
        position - Seek timestamp relative poisition
        Returns:
        OPERATION_RESULT
      • WriteOnChannel

        OPERATION_RESULT WriteOnChannel​(java.lang.String value)
        Writes on the channel
        Parameters:
        value - The String to write in the channel
        Returns:
        OPERATION_RESULT
      • WriteOnChannel

        OPERATION_RESULT WriteOnChannel​(java.lang.String key,
                                        java.lang.String value)
        Writes on the channel
        Parameters:
        key - The key to use
        value - The String to write in the channel
        Returns:
        OPERATION_RESULT
      • WriteOnChannel

        OPERATION_RESULT WriteOnChannel​(java.lang.String key,
                                        java.lang.String value,
                                        boolean waitAll)
        Writes on the channel
        Parameters:
        key - The key to use
        value - The String to write in the channel
        waitAll - waits all write in the distributed environment
        Returns:
        OPERATION_RESULT
      • WriteOnChannel

        OPERATION_RESULT WriteOnChannel​(java.lang.String key,
                                        java.lang.String value,
                                        boolean waitAll,
                                        long timestamp)
        Writes on the channel
        Parameters:
        key - The key to use
        value - The String to write in the channel
        waitAll - waits all write in the distributed environment
        timestamp - timestamp to apply
        Returns:
        OPERATION_RESULT
      • WriteOnChannel

        OPERATION_RESULT WriteOnChannel​(byte[] buffer)
        Writes on the channel
        Parameters:
        buffer - The buffer to write in the channel
        Returns:
        OPERATION_RESULT
      • WriteOnChannel

        OPERATION_RESULT WriteOnChannel​(java.lang.String key,
                                        byte[] buffer)
        Writes on the channel
        Parameters:
        key - The key to use
        buffer - The buffer to write in the channel
        Returns:
        OPERATION_RESULT
      • WriteOnChannel

        OPERATION_RESULT WriteOnChannel​(java.lang.String key,
                                        byte[] buffer,
                                        boolean waitAll)
        Writes on the channel
        Parameters:
        key - The key to use
        buffer - The buffer to write in the channel
        waitAll - waits all write in the distributed environment
        Returns:
        OPERATION_RESULT
      • WriteOnChannel

        OPERATION_RESULT WriteOnChannel​(java.lang.String key,
                                        byte[] buffer,
                                        boolean waitAll,
                                        long timestamp)
        Writes on the channel
        Parameters:
        key - The key to use
        buffer - The buffer to write in the channel
        waitAll - waits all write in the distributed environment
        timestamp - timestamp to apply
        Returns:
        OPERATION_RESULT
      • ReadFromChannel

        byte[] ReadFromChannel​(long offset,
                               long length)
        Reads from the channel
        Parameters:
        offset - offset in the stream
        length - number of elements
        Returns:
        an array of byte