Class MonitoringUtils
java.lang.Object
org.glassfish.jersey.server.internal.monitoring.MonitoringUtils
Monitoring helper class that contains utility methods used in
Monitoring.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final doubleRequest rate limit (per second) below which statistics can be considered as cacheable. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static StringBuilderappendPath(Resource resource, StringBuilder path) private static StringcreatePath(Resource resource) static StringgetMethodUniqueId(ResourceMethod method) Get the method unique string ID.(package private) static booleanisCacheable(ExecutionStatistics stats) Indicates whether the global, resource, resource method statistics containing the give execution statistics can be cached.
-
Field Details
-
CACHEABLE_REQUEST_RATE_LIMIT
private static final double CACHEABLE_REQUEST_RATE_LIMITRequest rate limit (per second) below which statistics can be considered as cacheable.- See Also:
-
-
Constructor Details
-
MonitoringUtils
private MonitoringUtils()Prevent instantiation.
-
-
Method Details
-
getMethodUniqueId
Get the method unique string ID. The ID is constructed from method attributes separated by pipe '|'. The attributes are used in the following order: method-produces|method-consumes|http-method|method-path|method-java-nameIf any of the attributes is not defined, "null" is used for such an attribute.
- Parameters:
method- Resource method.- Returns:
- String constructed from resource method parameters.
-
createPath
-
appendPath
-
isCacheable
Indicates whether the global, resource, resource method statistics containing the give execution statistics can be cached.- Parameters:
stats- execution statistics to be examined.- Returns:
trueif the statistics can be cached,falseotherwise.
-