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 expected connections ended.static final AtomicLongNumber of expected connections 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 requests ended.static final AtomicLongNumber of requests started.static final AtomicLongResource cache hits.static final AtomicLongResource cache misses.static final AtomicLongResource cache size.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 map of response codes and counts for statisitcal purposes.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 expected connections started. -
CONNECTION_END_COUNT
Number of expected connections ended. -
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. -
WEB_SOCKET_FRAMES_OUT
WebSocket frames sent. -
WEB_SOCKET_FRAMES_IN
WebSocket frames received. -
INGRESS
Ingress bytes. -
EGRESS
Egress bytes. -
RESOURCE_CACHE_SIZE
Resource cache size. -
RESOURCE_CACHE_HITS
Resource cache hits. -
RESOURCE_CACHE_MISSES
Resource cache misses.
-
-
Method Details
-
logResponseCode
Logs a response code for statistical purposes.- Parameters:
code- The response code to log.
-
getResponseCodes
Returns a map of response codes and counts for statisitcal purposes.- Returns:
- response codes and counts in a map.
-