public interface ResourceStatistics
MonitoringStatistics.getUriStatistics()
)
or the set of resource methods defined in one Class
(in case
of MonitoringStatistics.getResourceClassStatistics()
).
Statistics retrieved from Jersey runtime might be mutable and thanks to it might provide inconsistent data
as not all statistics are updated in the same time. To retrieve the immutable and consistent
statistics data the method snapshot()
should be used.
The principles of using statistics
is similar to principles of using MonitoringStatistics
.See monitoring statistics for general details about statistics.
Modifier and Type | Method and Description |
---|---|
ExecutionStatistics |
getRequestExecutionStatistics()
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. |
ExecutionStatistics |
getResourceMethodExecutionStatistics()
Get
execution statistics that contain measurements of times only for
execution of resource methods. |
Map<ResourceMethod,ResourceMethodStatistics> |
getResourceMethodStatistics()
Return the statistics for resource method.
|
ResourceStatistics |
snapshot()
Deprecated.
implementing class is immutable hence snapshot creation is not needed anymore
|
ExecutionStatistics getResourceMethodExecutionStatistics()
execution statistics
that contain measurements of times only for
execution of resource methods. Durations average time, minimum time and maximum time
measure only time of execution of resource methods code. It does not involve other request processing
phases.ExecutionStatistics getRequestExecutionStatistics()
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. The statistics involves only requests that were matched
to resource methods defined in getResourceMethodStatistics()
.Map<ResourceMethod,ResourceMethodStatistics> getResourceMethodStatistics()
resource methods
available in the resource and values are execution statistics of these resource methods.resource method
keys
and corresponding resource method statistics
.@Deprecated ResourceStatistics snapshot()
Copyright © 2007-2023, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.