Package org.attribyte.sql.pool
Class ConnectionPool.Stats
java.lang.Object
org.attribyte.sql.pool.ConnectionPool.Stats
- Enclosing class:
ConnectionPool
Pool statistics.
-
Method Summary
Modifier and TypeMethodDescriptionGets the ("per") unit for acquisition rates.intGets the number of connections that are currently active.floatGets the fraction of connections in active segments being used.intGets the number of active segments.longGets the count of connections closed when active limit is reached.longGets the number of active unmanaged connections.intGets the number of connections that are currently available.floatGets the fraction of connections in all segments (active + reserve) being used.longGets the connection count.Gets a description of the database connections configured for the pool.longGets the count of failed acquisitions.longGets the count of failed connection errors.doubleGets the fifteen minute connection acquisition rate.doubleGets the fifteen minute acquisition failure rate.doubleGets the five minute connection acquisition rate.doubleGets the five minute acquisition failure rate.intGets the maximum number of connections.getName()Gets the name of the pool.doubleGets the one minute connection acquisition rate.doubleGets the one minute acquisition failure rate.longGets the number of times the pool has expanded the number of active segments.longGets the timestamp when these stats were recorded.
-
Method Details
-
getName
Gets the name of the pool.- Returns:
- The pool name.
-
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
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.
-