Package io.muserver
Interface MuStats
-
public interface MuStats
Various statistics about the current instance of a Mu Server. Accessible via theMuServer.stats()
method.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
activeConnections()
java.util.Set<MuRequest>
activeRequests()
long
bytesRead()
long
bytesSent()
long
completedConnections()
long
completedRequests()
long
failedToConnect()
long
invalidHttpRequests()
long
rejectedDueToOverload()
-
-
-
Method Detail
-
completedConnections
long completedConnections()
- Returns:
- The total number of connections that have been closed since the server started (excludes
activeConnections()
-
activeConnections
long activeConnections()
- Returns:
- The number of open TCP connections.
-
completedRequests
long completedRequests()
- Returns:
- The number of completed requests (excludes
activeRequests()
-
invalidHttpRequests
long invalidHttpRequests()
- Returns:
- The number of requests received that were not valid HTTP messages.
-
bytesSent
long bytesSent()
- Returns:
- The number of bytes sent by this server.
-
bytesRead
long bytesRead()
- Returns:
- The number of bytes received by this server.
-
rejectedDueToOverload
long rejectedDueToOverload()
- Returns:
- The number of requests rejected because the executor passed to
MuServerBuilder.withHandlerExecutor(ExecutorService)
rejected a new response.
-
failedToConnect
long failedToConnect()
- Returns:
- The number of requests that failed to connect, e.g. due to SSL protocols not matching, or handshakes failing.
-
activeRequests
java.util.Set<MuRequest> activeRequests()
- Returns:
- The requests that are currently in-flight
-
-