Package io.muserver

Interface MuStats


  • public interface MuStats
    Various statistics about the current instance of a Mu Server. Accessible via the MuServer.stats() method.
    • 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.
      • 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