Package com.linkedin.davinci.stats
Class BlobTransferStats
- java.lang.Object
-
- com.linkedin.davinci.stats.BlobTransferStats
-
public class BlobTransferStats extends java.lang.Object
Class that exposes stats related to blob transfers
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String
BLOB_TRANSFER_FAILED_NUM_RESPONSES
protected static java.lang.String
BLOB_TRANSFER_SUCCESSFUL_NUM_RESPONSES
protected static java.lang.String
BLOB_TRANSFER_THROUGHPUT
protected static java.lang.String
BLOB_TRANSFER_TIME
protected static java.lang.String
BLOB_TRANSFER_TOTAL_NUM_RESPONSES
-
Constructor Summary
Constructors Constructor Description BlobTransferStats()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getBlobTransferFailedNumResponses()
double
getBlobTransferFileReceiveThroughput()
double
getBlobTransferSuccessNumResponses()
double
getBlobTransferTime()
double
getBlobTransferTotalNumResponses()
All get methods to get the sensor valuevoid
recordBlobTransferFileReceiveThroughput(double throughput)
Record the blob transfer file receive throughput.void
recordBlobTransferResponsesBasedOnBoostrapStatus(boolean isblobTransferSuccess)
When receiving a blob transfer response from other remote host, based on the blob transfer bootstrap status, bump the successful or failed responses amount.void
recordBlobTransferResponsesCount()
Update the blob transfer response stats regardless the response status.void
recordBlobTransferTimeInSec(double time)
Record the blob transfer time.
-
-
-
Field Detail
-
BLOB_TRANSFER_TOTAL_NUM_RESPONSES
protected static final java.lang.String BLOB_TRANSFER_TOTAL_NUM_RESPONSES
- See Also:
- Constant Field Values
-
BLOB_TRANSFER_SUCCESSFUL_NUM_RESPONSES
protected static final java.lang.String BLOB_TRANSFER_SUCCESSFUL_NUM_RESPONSES
- See Also:
- Constant Field Values
-
BLOB_TRANSFER_FAILED_NUM_RESPONSES
protected static final java.lang.String BLOB_TRANSFER_FAILED_NUM_RESPONSES
- See Also:
- Constant Field Values
-
BLOB_TRANSFER_THROUGHPUT
protected static final java.lang.String BLOB_TRANSFER_THROUGHPUT
- See Also:
- Constant Field Values
-
BLOB_TRANSFER_TIME
protected static final java.lang.String BLOB_TRANSFER_TIME
- See Also:
- Constant Field Values
-
-
Method Detail
-
recordBlobTransferResponsesCount
public void recordBlobTransferResponsesCount()
Update the blob transfer response stats regardless the response status.
-
recordBlobTransferResponsesBasedOnBoostrapStatus
public void recordBlobTransferResponsesBasedOnBoostrapStatus(boolean isblobTransferSuccess)
When receiving a blob transfer response from other remote host, based on the blob transfer bootstrap status, bump the successful or failed responses amount.- Parameters:
isblobTransferSuccess
- the status of the blob transfer response, true for success, false for failure
-
recordBlobTransferFileReceiveThroughput
public void recordBlobTransferFileReceiveThroughput(double throughput)
Record the blob transfer file receive throughput.- Parameters:
throughput
- in MB/sec
-
recordBlobTransferTimeInSec
public void recordBlobTransferTimeInSec(double time)
Record the blob transfer time.- Parameters:
time
- the time in second
-
getBlobTransferTotalNumResponses
public double getBlobTransferTotalNumResponses()
All get methods to get the sensor value- Returns:
- the sensor value
-
getBlobTransferSuccessNumResponses
public double getBlobTransferSuccessNumResponses()
-
getBlobTransferFailedNumResponses
public double getBlobTransferFailedNumResponses()
-
getBlobTransferFileReceiveThroughput
public double getBlobTransferFileReceiveThroughput()
-
getBlobTransferTime
public double getBlobTransferTime()
-
-