final class ResourceMethodStatisticsImpl extends java.lang.Object implements ResourceMethodStatistics
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
ResourceMethodStatisticsImpl.Builder
Builder of resource method statistics.
|
(package private) static class |
ResourceMethodStatisticsImpl.Factory
Factory for creating and storing resource method statistics.
|
| Modifier and Type | Field and Description |
|---|---|
private ExecutionStatistics |
requestExecutionStatistics |
private ResourceMethod |
resourceMethod |
private ExecutionStatistics |
resourceMethodExecutionStatistics |
| Modifier | Constructor and Description |
|---|---|
private |
ResourceMethodStatisticsImpl(ResourceMethod resourceMethod,
ExecutionStatistics resourceMethodExecutionStatistics,
ExecutionStatistics requestExecutionStatistics) |
| Modifier and Type | Method and Description |
|---|---|
ExecutionStatistics |
getMethodStatistics()
Get
execution statistics that contain measurements of times only for
execution of resource method. |
ExecutionStatistics |
getRequestStatistics()
Get
execution statistics that contain measurements of times for
whole processing from time when request comes into the Jersey application until the response
is written to the underlying IO container. |
ResourceMethod |
getResourceMethod()
Get a
resource method for which this ResourceMethodStatistics are calculated. |
ResourceMethodStatistics |
snapshot()
Get the immutable and consistent snapshot of the monitoring statistics.
|
private final ExecutionStatistics resourceMethodExecutionStatistics
private final ExecutionStatistics requestExecutionStatistics
private final ResourceMethod resourceMethod
private ResourceMethodStatisticsImpl(ResourceMethod resourceMethod, ExecutionStatistics resourceMethodExecutionStatistics, ExecutionStatistics requestExecutionStatistics)
public ExecutionStatistics getRequestStatistics()
ResourceMethodStatisticsexecution statistics that contain measurements of times for
whole processing from time when request comes into the Jersey application until the response
is written to the underlying IO container. The statistics involves only requests that were matched
to resource method defined by ResourceMethodStatistics.getResourceMethod().getRequestStatistics in interface ResourceMethodStatisticspublic ExecutionStatistics getMethodStatistics()
ResourceMethodStatisticsexecution statistics that contain measurements of times only for
execution of resource method. Durations average time, minimum time and maximum time
measure only time of execution of resource method code. It does not involve other request processing
phases.getMethodStatistics in interface ResourceMethodStatisticspublic ResourceMethod getResourceMethod()
ResourceMethodStatisticsresource method for which this ResourceMethodStatistics are calculated.getResourceMethod in interface ResourceMethodStatisticspublic ResourceMethodStatistics snapshot()
ResourceMethodStatisticssnapshot in interface ResourceMethodStatistics