Class OpenSslSessionStats


  • public final class OpenSslSessionStats
    extends Object
    Stats exposed by an OpenSSL session context.
    See Also:
    SSL_CTX_sess_number
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long accept()
      Returns the number of started SSL/TLS handshakes in server mode.
      long acceptGood()
      Returns the number of successfully established SSL/TLS sessions in server mode.
      long acceptRenegotiate()
      Returns the number of start renegotiations in server mode.
      long cacheFull()
      Returns the number of sessions that were removed because the maximum session cache size was exceeded.
      long cbHits()
      Returns the number of successfully retrieved sessions from the external session cache in server mode.
      long connect()
      Returns the number of started SSL/TLS handshakes in client mode.
      long connectGood()
      Returns the number of successfully established SSL/TLS sessions in client mode.
      long connectRenegotiate()
      Returns the number of start renegotiations in client mode.
      long hits()
      Returns the number of successfully reused sessions.
      long misses()
      Returns the number of sessions proposed by clients that were not found in the internal session cache in server mode.
      long number()
      Returns the current number of sessions in the internal session cache.
      long ticketKeyFail()
      Returns the number of times a client presented a ticket that did not match any key in the list.
      long ticketKeyNew()
      Returns the number of times a client did not present a ticket and we issued a new one
      long ticketKeyRenew()
      Returns the number of times a client presented a ticket derived from an older key, and we upgraded to the primary key.
      long ticketKeyResume()
      Returns the number of times a client presented a ticket derived from the primary key.
      long timeouts()
      Returns the number of sessions proposed by clients and either found in the internal or external session cache in server mode, but that were invalid due to timeout.
    • Method Detail

      • number

        public long number()
        Returns the current number of sessions in the internal session cache.
      • connect

        public long connect()
        Returns the number of started SSL/TLS handshakes in client mode.
      • connectGood

        public long connectGood()
        Returns the number of successfully established SSL/TLS sessions in client mode.
      • connectRenegotiate

        public long connectRenegotiate()
        Returns the number of start renegotiations in client mode.
      • accept

        public long accept()
        Returns the number of started SSL/TLS handshakes in server mode.
      • acceptGood

        public long acceptGood()
        Returns the number of successfully established SSL/TLS sessions in server mode.
      • acceptRenegotiate

        public long acceptRenegotiate()
        Returns the number of start renegotiations in server mode.
      • hits

        public long hits()
        Returns the number of successfully reused sessions. In client mode, a session set with SSL_set_session successfully reused is counted as a hit. In server mode, a session successfully retrieved from internal or external cache is counted as a hit.
      • cbHits

        public long cbHits()
        Returns the number of successfully retrieved sessions from the external session cache in server mode.
      • misses

        public long misses()
        Returns the number of sessions proposed by clients that were not found in the internal session cache in server mode.
      • timeouts

        public long timeouts()
        Returns the number of sessions proposed by clients and either found in the internal or external session cache in server mode, but that were invalid due to timeout. These sessions are not included in the hits() count.
      • cacheFull

        public long cacheFull()
        Returns the number of sessions that were removed because the maximum session cache size was exceeded.
      • ticketKeyFail

        public long ticketKeyFail()
        Returns the number of times a client presented a ticket that did not match any key in the list.
      • ticketKeyNew

        public long ticketKeyNew()
        Returns the number of times a client did not present a ticket and we issued a new one
      • ticketKeyRenew

        public long ticketKeyRenew()
        Returns the number of times a client presented a ticket derived from an older key, and we upgraded to the primary key.
      • ticketKeyResume

        public long ticketKeyResume()
        Returns the number of times a client presented a ticket derived from the primary key.