/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.
*/ package org.apache.coyote;
publicsynchronizedlong getMaxTime() { long maxTime = deadMaxTime; for (RequestInfo rp : processors) { if (maxTime < rp.getMaxTime()) {
maxTime = rp.getMaxTime();
}
} return maxTime;
}
// Used to reset the times publicsynchronizedvoid setMaxTime(long maxTime) {
deadMaxTime = maxTime; for (RequestInfo rp : processors) {
rp.setMaxTime(maxTime);
}
}
publicsynchronizedlong getProcessingTime() { long time = deadProcessingTime; for (RequestInfo rp : processors) {
time += rp.getProcessingTime();
} return time;
}
publicsynchronizedvoid setProcessingTime(long totalTime) {
deadProcessingTime = totalTime; for (RequestInfo rp : processors) {
rp.setProcessingTime(totalTime);
}
}
publicsynchronizedint getRequestCount() { int requestCount = deadRequestCount; for (RequestInfo rp : processors) {
requestCount += rp.getRequestCount();
} return requestCount;
}
publicsynchronizedvoid setRequestCount(int requestCount) {
deadRequestCount = requestCount; for (RequestInfo rp : processors) {
rp.setRequestCount(requestCount);
}
}
publicsynchronizedint getErrorCount() { int requestCount = deadErrorCount; for (RequestInfo rp : processors) {
requestCount += rp.getErrorCount();
} return requestCount;
}
publicsynchronizedvoid setErrorCount(int errorCount) {
deadErrorCount = errorCount; for (RequestInfo rp : processors) {
rp.setErrorCount(errorCount);
}
}
publicsynchronizedlong getBytesReceived() { long bytes = deadBytesReceived; for (RequestInfo rp : processors) {
bytes += rp.getBytesReceived();
} return bytes;
}
publicsynchronizedvoid setBytesReceived(long bytesReceived) {
deadBytesReceived = bytesReceived; for (RequestInfo rp : processors) {
rp.setBytesReceived(bytesReceived);
}
}
publicsynchronizedlong getBytesSent() { long bytes = deadBytesSent; for (RequestInfo rp : processors) {
bytes += rp.getBytesSent();
} return bytes;
}
publicsynchronizedvoid setBytesSent(long bytesSent) {
deadBytesSent = bytesSent; for (RequestInfo rp : processors) {
rp.setBytesSent(bytesSent);
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.