Package com.linkedin.alpini.base.pool
Interface PoolStats
-
public interface PoolStats
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfacePoolStats.LifeCycleStats
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description doublegetCheckedOut15min()doublegetCheckedOut1min()Get the number of pool objects checked out at the time of the call to getStats().doublegetCheckedOut5min()doublegetCheckedOutTime50Pct()doublegetCheckedOutTime95Pct()doublegetCheckedOutTime99Pct()doublegetCheckedOutTimeAvg()intgetIdleCount()Get the number of objects that are idle(not checked out) in the pool.PoolStats.LifeCycleStatsgetLifecycleStats()Get stats collected fromAsyncPool.LifeCycleintgetMaxCheckedOut1min()intgetMaxPoolSize()Get the configured maximum pool size.intgetMinPoolSize()Get the configured minimum pool size.intgetPoolSize()Get the pool size at the time of the call to getStats().longgetTotalCreated()Get the total number of pool objects created between the starting of the Pool and the call to getStats().longgetTotalCreateErrors()Get the total number of lifecycle create errors between the starting of the Pool and the call to getStats().longgetTotalDestroyed()Get the total number of pool objects destroyed between the starting of the Pool and the call to getStats().longgetTotalDestroyErrors()Get the total number of lifecycle destroy errors between the starting of the Pool and the call to getStats().doublegetWaiters15min()doublegetWaiters1min()doublegetWaiters5min()doublegetWaitTime50Pct()Get the 50 percentage wait time to get a pooled object.doublegetWaitTime95Pct()Get the 95 percentage wait time to get a pooled object.doublegetWaitTime99Pct()Get the 99 percentage wait time to get a pooled object.doublegetWaitTimeAvg()Get the average wait time to get a pooled object.
-
-
-
Method Detail
-
getTotalCreated
long getTotalCreated()
Get the total number of pool objects created between the starting of the Pool and the call to getStats(). Does not include create errors.- Returns:
- The total number of pool objects created
-
getTotalDestroyed
long getTotalDestroyed()
Get the total number of pool objects destroyed between the starting of the Pool and the call to getStats(). Includes lifecycle validation failures, disposes, and timed-out objects, but does not include destroy errors.- Returns:
- The total number of pool objects destroyed
-
getTotalCreateErrors
long getTotalCreateErrors()
Get the total number of lifecycle create errors between the starting of the Pool and the call to getStats().- Returns:
- The total number of create errors
-
getTotalDestroyErrors
long getTotalDestroyErrors()
Get the total number of lifecycle destroy errors between the starting of the Pool and the call to getStats().- Returns:
- The total number of destroy errors
-
getCheckedOut1min
double getCheckedOut1min()
Get the number of pool objects checked out at the time of the call to getStats().- Returns:
- The number of checked out pool objects
-
getCheckedOut5min
double getCheckedOut5min()
-
getCheckedOut15min
double getCheckedOut15min()
-
getMaxCheckedOut1min
int getMaxCheckedOut1min()
-
getCheckedOutTimeAvg
double getCheckedOutTimeAvg()
-
getCheckedOutTime50Pct
double getCheckedOutTime50Pct()
-
getCheckedOutTime95Pct
double getCheckedOutTime95Pct()
-
getCheckedOutTime99Pct
double getCheckedOutTime99Pct()
-
getMaxPoolSize
int getMaxPoolSize()
Get the configured maximum pool size.- Returns:
- The maximum pool size
-
getMinPoolSize
int getMinPoolSize()
Get the configured minimum pool size.- Returns:
- The minimum pool size
-
getPoolSize
int getPoolSize()
Get the pool size at the time of the call to getStats().- Returns:
- The pool size
-
getIdleCount
int getIdleCount()
Get the number of objects that are idle(not checked out) in the pool.- Returns:
- The number of idle objects
-
getWaiters1min
double getWaiters1min()
-
getWaiters5min
double getWaiters5min()
-
getWaiters15min
double getWaiters15min()
-
getWaitTimeAvg
double getWaitTimeAvg()
Get the average wait time to get a pooled object.- Returns:
- The average wait time.
-
getWaitTime50Pct
double getWaitTime50Pct()
Get the 50 percentage wait time to get a pooled object.- Returns:
- 50 percentage wait time.
-
getWaitTime95Pct
double getWaitTime95Pct()
Get the 95 percentage wait time to get a pooled object.- Returns:
- 95 percentage wait time.
-
getWaitTime99Pct
double getWaitTime99Pct()
Get the 99 percentage wait time to get a pooled object.- Returns:
- 99 percentage wait time.
-
getLifecycleStats
PoolStats.LifeCycleStats getLifecycleStats()
Get stats collected fromAsyncPool.LifeCycle- Returns:
- Lifecycle stats
-
-