Class KinesisVideoStreamMetrics
- java.lang.Object
-
- com.amazonaws.kinesisvideo.internal.producer.KinesisVideoStreamMetrics
-
public class KinesisVideoStreamMetrics extends Object
Kinesis Video stream 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 KinesisVideoStreamMetrics()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetCurrentFrameRate()Returns the current frame rate in frames per secondlonggetCurrentTransferRate()Returns the current transfer rate in bytes per secondlonggetCurrentViewDurationInMillis()Returns the duration in milliseconds from current to headlonggetCurrentViewDurationInTimeUnits()Returns the duration from current to head in 100nslonggetCurrentViewSize()Returns the byte size of all allocations from current to headlonggetOverallViewDurationInMillis()Returns the entire content view duration in millisecondslonggetOverallViewDurationInTimeUnits()Returns the entire content view duration in 100nslonggetOverallViewSize()Returns the byte size of all allocations in the content viewvoidsetMetrics(long overallViewSize, long currentViewSize, long overallViewDuration, long currentViewDuration, double currentFrameRate, long currentTransferRate)Sets the metrics - will be called from the native code
-
-
-
Method Detail
-
setMetrics
@CalledByNativeCode public void setMetrics(long overallViewSize, long currentViewSize, long overallViewDuration, long currentViewDuration, double currentFrameRate, long currentTransferRate)
Sets the metrics - will be called from the native code- Parameters:
overallViewSize- byte size of allocations in the entire content viewcurrentViewSize- byte size of allocations from current to headoverallViewDuration- duration of the entire vontent viewcurrentViewDuration- duration from the current to headcurrentFrameRate- current frame ratecurrentTransferRate- current transfer rate in bytes per second
-
getCurrentViewDurationInTimeUnits
public long getCurrentViewDurationInTimeUnits()
Returns the duration from current to head in 100ns- Returns:
- duration from current to head
-
getCurrentViewDurationInMillis
public long getCurrentViewDurationInMillis()
Returns the duration in milliseconds from current to head- Returns:
- duration from current to head
-
getOverallViewDurationInTimeUnits
public long getOverallViewDurationInTimeUnits()
Returns the entire content view duration in 100ns- Returns:
- content view duration
-
getOverallViewDurationInMillis
public long getOverallViewDurationInMillis()
Returns the entire content view duration in milliseconds- Returns:
- content view duration
-
getCurrentViewSize
public long getCurrentViewSize()
Returns the byte size of all allocations from current to head- Returns:
- allocated from current to head
-
getOverallViewSize
public long getOverallViewSize()
Returns the byte size of all allocations in the content view- Returns:
- allocated in the content view
-
getCurrentFrameRate
public double getCurrentFrameRate()
Returns the current frame rate in frames per second- Returns:
- current frame rate frames per second
-
getCurrentTransferRate
public long getCurrentTransferRate()
Returns the current transfer rate in bytes per second- Returns:
- current bytes per second transfer rate
-
-