Class KinesisVideoMetrics
- java.lang.Object
-
- com.amazonaws.kinesisvideo.internal.producer.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 Summary
Constructors Constructor Description KinesisVideoMetrics()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetContentStoreAllocatedSize()Returns the allocated sizelonggetContentStoreAvailableSize()Returns the available sizelonggetContentStoreSize()Returns the overall content store sizelonggetTotalContentViewSize()Returns the total allocated memory size for the content view objects for all streamslonggetTotalFrameRate()Returns the total frame rate for all streams being streamedlonggetTotalTransferRate()Returns the total transfer rate in bytes per second for all the streamsvoidsetMetrics(long contentStoreSize, long contentStoreAllocatedSize, long contentStoreAvailableSize, long totalContentViewSize, long totalFrameRate, long totalTransferRate)Sets the metrics - will be called from the native code
-
-
-
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 sizecontentStoreAllocatedSize- allocated sizecontentStoreAvailableSize- available sizetotalContentViewSize- total size of the content views for all streamstotalFrameRate- total frame rate for all streamstotalTransferRate- 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
-
-