Class KinesisVideoMetrics


  • public class KinesisVideoMetrics
    extends Object
    Kinesis Video client object metrics provided by the native codebase. NOTE: The interesting aspect of this class is that it has a setter method to set all the values instead of individual ones or a constructor. This is done for the performance optimization reasons.
    • Constructor Detail

      • KinesisVideoMetrics

        public KinesisVideoMetrics()
    • Method Detail

      • setMetrics

        @CalledByNativeCode
        public void setMetrics​(long contentStoreSize,
                               long contentStoreAllocatedSize,
                               long contentStoreAvailableSize,
                               long totalContentViewSize,
                               long totalFrameRate,
                               long totalTransferRate)
        Sets the metrics - will be called from the native code
        Parameters:
        contentStoreSize - content store size
        contentStoreAllocatedSize - allocated size
        contentStoreAvailableSize - available size
        totalContentViewSize - total size of the content views for all streams
        totalFrameRate - total frame rate for all streams
        totalTransferRate - total transfer rate for all streams in bytes per second
      • getContentStoreSize

        public long getContentStoreSize()
        Returns the overall content store size
        Returns:
        content store size
      • getContentStoreAvailableSize

        public long getContentStoreAvailableSize()
        Returns the available size
        Returns:
        available size
      • getContentStoreAllocatedSize

        public long getContentStoreAllocatedSize()
        Returns the allocated size
        Returns:
        allocated size
      • getTotalContentViewSize

        public long getTotalContentViewSize()
        Returns the total allocated memory size for the content view objects for all streams
        Returns:
        total content view size
      • getTotalFrameRate

        public long getTotalFrameRate()
        Returns the total frame rate for all streams being streamed
        Returns:
        total frame rate
      • getTotalTransferRate

        public long getTotalTransferRate()
        Returns the total transfer rate in bytes per second for all the streams
        Returns:
        total bytes per second transfer rate