/*
 * JBoss, Home of Professional Open Source.
 * Copyright 2014 Red Hat, Inc., and individual contributors
 * as indicated by the @author tags.
 *
 * Licensed 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 io.undertow.server;

Connector level statistics
Author:Stuart Douglas
/** * Connector level statistics * * * @author Stuart Douglas */
public interface ConnectorStatistics {
Returns:The number of requests processed by this connector
/** * * @return The number of requests processed by this connector */
long getRequestCount();
Returns:The number of bytes sent on this connector
/** * * @return The number of bytes sent on this connector */
long getBytesSent();
Returns:The number of bytes that have been received by this connector
/** * * @return The number of bytes that have been received by this connector */
long getBytesReceived();
Returns:The number of requests that triggered an error (i.e. 500) response.
/** * * @return The number of requests that triggered an error (i.e. 500) response. */
long getErrorCount();
Returns:The total amount of time spent processing all requests on this connector (nanoseconds)
/** * * @return The total amount of time spent processing all requests on this connector * (nanoseconds) */
long getProcessingTime();
Returns:The time taken by the slowest request (nanoseconds)
/** * * @return The time taken by the slowest request * (nanoseconds) */
long getMaxProcessingTime();
Resets all values to zero
/** * Resets all values to zero */
void reset();
Returns:The current number of active connections
/** * * @return The current number of active connections */
long getActiveConnections();
Returns:The maximum number of active connections that have every been active on this connector
/** * * @return The maximum number of active connections that have every been active on this connector */
long getMaxActiveConnections();
Returns:The current number of active requests
/** * * @return The current number of active requests */
long getActiveRequests();
Returns:The maximum number of active requests
/** * * @return The maximum number of active requests */
long getMaxActiveRequests(); }