Class CountingInstrumenter

java.lang.Object
io.fusionauth.http.server.CountingInstrumenter
All Implemented Interfaces:
Instrumenter

public class CountingInstrumenter extends Object implements Instrumenter
A simple counting instrumenter for the HTTPServer.
Author:
Brian Pontarelli
  • Constructor Details

    • CountingInstrumenter

      public CountingInstrumenter()
  • Method Details

    • acceptedConnection

      public void acceptedConnection()
      Description copied from interface: Instrumenter
      Called when a new client connection is accepted.
      Specified by:
      acceptedConnection in interface Instrumenter
    • badRequest

      public void badRequest()
      Description copied from interface: Instrumenter
      Called when a client sends in a bad HTTP request.
      Specified by:
      badRequest in interface Instrumenter
    • chunkedRequest

      public void chunkedRequest()
      Description copied from interface: Instrumenter
      Called when a client sends in chunked request data.
      Specified by:
      chunkedRequest in interface Instrumenter
    • chunkedResponse

      public void chunkedResponse()
      Description copied from interface: Instrumenter
      Called when a client sends in chunked request data.
      Specified by:
      chunkedResponse in interface Instrumenter
    • connectionClosed

      public void connectionClosed()
      Description copied from interface: Instrumenter
      Called when a connection is closed due to an issue or a timeout.
      Specified by:
      connectionClosed in interface Instrumenter
    • getBadRequests

      public long getBadRequests()
    • getBytesRead

      public long getBytesRead()
    • getBytesWritten

      public long getBytesWritten()
    • getChunkedRequests

      public long getChunkedRequests()
    • getChunkedResponses

      public long getChunkedResponses()
    • getClosedConnections

      public long getClosedConnections()
    • getConnections

      public long getConnections()
    • getStartedCount

      public long getStartedCount()
    • readFromClient

      public void readFromClient(long bytes)
      Description copied from interface: Instrumenter
      Called when bytes are read from a client.
      Specified by:
      readFromClient in interface Instrumenter
      Parameters:
      bytes - The number of bytes read.
    • serverStarted

      public void serverStarted()
      Description copied from interface: Instrumenter
      Called when the server is started.
      Specified by:
      serverStarted in interface Instrumenter
    • wroteToClient

      public void wroteToClient(long bytes)
      Description copied from interface: Instrumenter
      Called when bytes are written to a client.
      Specified by:
      wroteToClient in interface Instrumenter
      Parameters:
      bytes - The number of bytes written.