Called by the processor before recycling the request. It'll collect statistic information.
()
| 234 | * Called by the processor before recycling the request. It'll collect statistic information. |
| 235 | */ |
| 236 | void updateCounters() { |
| 237 | bytesReceived += req.getBytesRead(); |
| 238 | bytesSent += req.getResponse().getContentWritten(); |
| 239 | |
| 240 | requestCount++; |
| 241 | if (req.getResponse().getStatus() >= 400) { |
| 242 | errorCount++; |
| 243 | } |
| 244 | long time = TimeUnit.NANOSECONDS.toMillis(System.nanoTime() - req.getStartTimeNanos()); |
| 245 | this.lastRequestProcessingTime = time; |
| 246 | processingTime += time; |
| 247 | if (maxTime < time) { |
| 248 | maxTime = time; |
| 249 | maxRequestUri = req.requestURI().toString(); |
| 250 | } |
| 251 | } |
| 252 | |
| 253 | /** |
| 254 | * Return the current processing stage. |
nothing calls this directly
no test coverage detected