Package net.targetr.wtm3
Class Stats
java.lang.Object
net.targetr.wtm3.Stats
Statistics for monitoring web server network activity.
- Author:
- Dr Michael Gardiner
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AtomicLongNumber of connection handlers finished, including failures.static final AtomicLongNumber of accepted connection handlers started.static final AtomicLongEgress bytes.static final AtomicLongNumber of generators ended.static final AtomicLongNumber of generators started.static final AtomicLongIngress bytes.static final StringUnique instance ID for this server run.static final AtomicLongNumber of responses that were 403 Not modified.static final AtomicLongProxy cache hits.static final AtomicLongProxy cache misses.static final AtomicLongTotal cached proxy response-body bytes.static final AtomicLongNumber of requests ended.static final AtomicLongNumber of requests started.static final AtomicLongResource cache hits.static final AtomicLongResource cache misses.static final AtomicLongShared resource-cache byte counter.static final AtomicLongNumber of responses ended.static final AtomicLongNumber of responses started.static final AtomicLongNumber of websockets ended.static final AtomicLongWebSocket frames received.static final AtomicLongWebSocket frames sent.static final AtomicLongNumber of websockets started. -
Method Summary
Modifier and TypeMethodDescriptionReturns a snapshot of response codes and their counts.static voidlogResponseCode(Integer code) Logs a response code for statistical purposes.
-
Field Details
-
INSTANCE_ID
Unique instance ID for this server run. -
CONNECTION_START_COUNT
Number of accepted connection handlers started. -
CONNECTION_END_COUNT
Number of connection handlers finished, including failures. -
REQUEST_START_COUNT
Number of requests started. -
REQUEST_END_COUNT
Number of requests ended. -
GENERATOR_START_COUNT
Number of generators started. -
GENERATOR_END_COUNT
Number of generators ended. -
RESPONSE_START_COUNT
Number of responses started. -
RESPONSE_END_COUNT
Number of responses ended. -
WEB_SOCKET_START_COUNT
Number of websockets started. -
WEB_SOCKET_END_COUNT
Number of websockets ended. -
NOT_MODIFIED_RESPONSE_COUNT
Number of responses that were 403 Not modified. -
WEB_SOCKET_FRAMES_OUT
WebSocket frames sent. -
WEB_SOCKET_FRAMES_IN
WebSocket frames received. -
INGRESS
Ingress bytes. -
EGRESS
Egress bytes. -
RESOURCE_CACHE_SIZE
Shared resource-cache byte counter. -
RESOURCE_CACHE_HITS
Resource cache hits. -
RESOURCE_CACHE_MISSES
Resource cache misses. -
PROXY_CACHE_SIZE
Total cached proxy response-body bytes. -
PROXY_CACHE_HITS
Proxy cache hits. -
PROXY_CACHE_MISSES
Proxy cache misses.
-
-
Method Details
-
logResponseCode
Logs a response code for statistical purposes.- Parameters:
code- The response code to log.
-
getResponseCodes
Returns a snapshot of response codes and their counts.- Returns:
- response codes and counts in a map.
-