Class ConnectionPool.Stats

java.lang.Object
org.attribyte.sql.pool.ConnectionPool.Stats
Enclosing class:
ConnectionPool

public static class ConnectionPool.Stats extends Object
Pool statistics.
  • Method Details

    • getName

      public String getName()
      Gets the name of the pool.
      Returns:
      The pool name.
    • getConnectionDescription

      public String getConnectionDescription()
      Gets a description of the database connections configured for the pool.
      Returns:
      The description.
    • getActiveConnectionUtilization

      public float getActiveConnectionUtilization()
      Gets the fraction of connections in active segments being used.
      Returns:
      The fraction.
    • getAvailableConnectionUtilization

      public float getAvailableConnectionUtilization()
      Gets the fraction of connections in all segments (active + reserve) being used.
      Returns:
      The percent.
    • getActiveConnections

      public int getActiveConnections()
      Gets the number of connections that are currently active.
      Returns:
      The number of active connections.
    • getAvailableConnections

      public int getAvailableConnections()
      Gets the number of connections that are currently available.
      Returns:
      The number of available.
    • getMaxConnections

      public int getMaxConnections()
      Gets the maximum number of connections.
      Returns:
      The maximum number of connections.
    • getTimestamp

      public long getTimestamp()
      Gets the timestamp when these stats were recorded.
      Returns:
      The timestamp.
    • getConnectionCount

      public long getConnectionCount()
      Gets the connection count.
      Returns:
      The connection count.
    • getFailedConnectionErrorCount

      public long getFailedConnectionErrorCount()
      Gets the count of failed connection errors.
      Returns:
      The connection error count.
    • getActiveTimeoutCount

      public long getActiveTimeoutCount()
      Gets the count of connections closed when active limit is reached.
      Returns:
      The active timeout count.
    • getFailedAcquisitionCount

      public long getFailedAcquisitionCount()
      Gets the count of failed acquisitions.
      Returns:
      The failed acquisition count.
    • getSegmentExpansionCount

      public long getSegmentExpansionCount()
      Gets the number of times the pool has expanded the number of active segments.
      Returns:
      The segment expansion count.
    • getActiveUnmanagedConnectionCount

      public long getActiveUnmanagedConnectionCount()
      Gets the number of active unmanaged connections.
      Returns:
      The unmanaged connection count.
    • getActiveSegments

      public int getActiveSegments()
      Gets the number of active segments.
      Returns:
      The number of active segments.
    • getAcquisitionRateUnit

      public TimeUnit getAcquisitionRateUnit()
      Gets the ("per") unit for acquisition rates.
      Returns:
      The rate.
    • getOneMinuteAcquisitionRate

      public double getOneMinuteAcquisitionRate()
      Gets the one minute connection acquisition rate.
      Returns:
      The rate.
    • getFiveMinuteAcquisitionRate

      public double getFiveMinuteAcquisitionRate()
      Gets the five minute connection acquisition rate.
      Returns:
      The rate.
    • getFifteenMinuteAcquisitionRate

      public double getFifteenMinuteAcquisitionRate()
      Gets the fifteen minute connection acquisition rate.
      Returns:
      The rate.
    • getOneMinuteFailedAcquisitionRate

      public double getOneMinuteFailedAcquisitionRate()
      Gets the one minute acquisition failure rate.
      Returns:
      The rate.
    • getFiveMinuteFailedAcquisitionRate

      public double getFiveMinuteFailedAcquisitionRate()
      Gets the five minute acquisition failure rate.
      Returns:
      The rate.
    • getFifteenMinuteFailedAcquisitionRate

      public double getFifteenMinuteFailedAcquisitionRate()
      Gets the fifteen minute acquisition failure rate.
      Returns:
      The rate.