Class SecurityStats

java.lang.Object
com.linkedin.venice.stats.AbstractVeniceStats
com.linkedin.venice.router.stats.SecurityStats

public class SecurityStats extends AbstractVeniceStats
  • Constructor Details

    • SecurityStats

      public SecurityStats(io.tehuti.metrics.MetricsRepository repository, String name)
  • Method Details

    • recordSslError

      public void recordSslError()
    • recordSslSuccess

      public void recordSslSuccess()
    • recordNonSslRequest

      public void recordNonSslRequest()
      Record all HTTP requests received in routers.
    • recordLiveConnectionCount

      public void recordLiveConnectionCount(int connectionCount)
      This function will be triggered in ConnectionControlHandler or ConnectionLimitHandler depending on the connection handle mode.
    • recordRejectedConnectionCount

      public void recordRejectedConnectionCount(int rejectedConnectionCount)
    • updateConnectionCountInCurrentMetricTimeWindow

      public void updateConnectionCountInCurrentMetricTimeWindow()
      Calling this function doesn't mean the active connection counter is updated; this function will only update the metric with the connection counter maintained above activeConnectionCount Since new connections or inactive connections events might not happen in each one-minute time window, a more active path like data request path will be leveraged to record avg/max connections in each time window.
    • registerSslHandshakeSensors

      public void registerSslHandshakeSensors(SslInitializer sslInitializer)