public final class MonitoringUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static double |
CACHEABLE_REQUEST_RATE_LIMIT
Request rate limit (per second) below which statistics can be considered as cacheable.
|
Modifier | Constructor and Description |
---|---|
private |
MonitoringUtils()
Prevent instantiation.
|
Modifier and Type | Method and Description |
---|---|
private static java.lang.StringBuilder |
appendPath(Resource resource,
java.lang.StringBuilder path) |
private static java.lang.String |
createPath(Resource resource) |
static java.lang.String |
getMethodUniqueId(ResourceMethod method)
Get the method unique string ID.
|
(package private) static boolean |
isCacheable(ExecutionStatistics stats)
Indicates whether the global, resource, resource method statistics containing the give execution statistics can
be cached.
|
private static final double CACHEABLE_REQUEST_RATE_LIMIT
public static java.lang.String getMethodUniqueId(ResourceMethod method)
If any of the attributes is not defined, "null" is used for such an attribute.
method
- Resource method.private static java.lang.String createPath(Resource resource)
private static java.lang.StringBuilder appendPath(Resource resource, java.lang.StringBuilder path)
static boolean isCacheable(ExecutionStatistics stats)
stats
- execution statistics to be examined.true
if the statistics can be cached, false
otherwise.