public synchronized long getProcessingTime() { long time = deadProcessingTime; for (int i = 0; i < processors.size(); i++) { RequestInfo rp = processors.get(i); time += rp.getProcessingTime(); } return time; }
public synchronized void removeRequestProcessor(RequestInfo rp) { if (rp != null) { if (deadMaxTime < rp.getMaxTime()) deadMaxTime = rp.getMaxTime(); deadProcessingTime += rp.getProcessingTime(); deadRequestCount += rp.getRequestCount(); deadErrorCount += rp.getErrorCount(); deadBytesReceived += rp.getBytesReceived(); deadBytesSent += rp.getBytesSent(); processors.remove(rp); } }