public static class RestRequestMetricsTracker.ScalingMetricsTracker
extends java.lang.Object
NioServer
to BlobStorageService
.Constructor and Description |
---|
ScalingMetricsTracker() |
Modifier and Type | Method and Description |
---|---|
long |
addToRequestProcessingTime(long delta)
Adds to the time taken to process a request at the scaling layer.
|
long |
addToRequestProcessingWaitTime(long delta)
Adds to the scaling layer processing wait time for a request.
|
long |
addToResponseProcessingTime(long delta)
Adds to the time taken to process a response at the scaling layer.
|
long |
addToResponseProcessingWaitTime(long delta)
Adds to the scaling layer processing wait time of a response.
|
void |
markRequestCompleted()
Marks the time at which request was completed so that request RTT can be calculated.
|
void |
markRequestReceived()
Marks the time at which the request was received.
|
public long addToRequestProcessingTime(long delta)
delta
- the time taken in ms to do the current piece of processing at the scaling layer for the request.public long addToRequestProcessingWaitTime(long delta)
delta
- the time in ms a request has spent waiting to be processed at the scaling layer.public long addToResponseProcessingTime(long delta)
delta
- the time taken in ms to do the current piece of processing at the scaling layer for the response.public long addToResponseProcessingWaitTime(long delta)
delta
- the time in ms a response has spent waiting to be processed at the scaling layer.public void markRequestReceived()
public void markRequestCompleted()