public final class DefaultConnectionPoolStatistics extends java.lang.Object implements ConnectionPoolStatistics, java.io.Serializable
Constructor and Description |
---|
DefaultConnectionPoolStatistics(User user) |
Modifier and Type | Method and Description |
---|---|
int |
getAvailable() |
long |
getAverageGetTime() |
int |
getCreated() |
long |
getCreationDate() |
int |
getDelayedRequests() |
int |
getDelayedRequestsPerSecond() |
int |
getDestroyed() |
int |
getFailedRequests() |
int |
getFailedRequestsPerSecond() |
java.util.List<ConnectionPoolState> |
getFineGrainedStatistics()
Returns a list containing connection pool states spanning some interval,
the order of items in the list is not guaranteed.
|
int |
getInUse() |
long |
getMaximumCheckOutTime() |
long |
getMinimumCheckOutTime() |
int |
getRequests() |
int |
getRequestsPerSecond() |
long |
getResetTime() |
int |
getSize() |
long |
getTimestamp() |
User |
getUser() |
void |
setAvailableInPool(int availableInPool) |
void |
setAverageCheckOutTime(long averageCheckOutTime) |
void |
setConnectionRequests(int connectionRequests) |
void |
setConnectionRequestsDelayed(int connectionRequestsDelayed) |
void |
setConnectionRequestsFailed(int connectionRequestsFailed) |
void |
setConnectionsCreated(int connectionsCreated) |
void |
setConnectionsDestroyed(int connectionsDestroyed) |
void |
setConnectionsInUse(int connectionsInUse) |
void |
setCreationDate(long time) |
void |
setFineGrainedStatistics(java.util.List<ConnectionPoolState> statistics) |
void |
setMaximumCheckOutTime(long maximumCheckOutTime) |
void |
setMinimumCheckOutTime(long minimumCheckOutTime) |
void |
setPoolSize(int poolSize) |
void |
setRequestsDelayedPerSecond(int requestsDelayedPerSecond) |
void |
setRequestsFailedPerSecond(int requestsFailedPerSecond) |
void |
setRequestsPerSecond(int requestsPerSecond) |
void |
setResetDate(long resetDate) |
void |
setTimestamp(long timestamp) |
public DefaultConnectionPoolStatistics(User user)
user
- the database user the pool is based onpublic User getUser()
getUser
in interface ConnectionPoolStatistics
public java.util.List<ConnectionPoolState> getFineGrainedStatistics()
getFineGrainedStatistics
in interface ConnectionPoolStatistics
public int getAvailable()
getAvailable
in interface ConnectionPoolStatistics
public int getInUse()
getInUse
in interface ConnectionPoolStatistics
public long getTimestamp()
getTimestamp
in interface ConnectionPoolStatistics
public long getCreationDate()
getCreationDate
in interface ConnectionPoolStatistics
public int getCreated()
getCreated
in interface ConnectionPoolStatistics
public int getDestroyed()
getDestroyed
in interface ConnectionPoolStatistics
public int getDelayedRequests()
getDelayedRequests
in interface ConnectionPoolStatistics
public int getRequests()
getRequests
in interface ConnectionPoolStatistics
public int getDelayedRequestsPerSecond()
getDelayedRequestsPerSecond
in interface ConnectionPoolStatistics
public int getFailedRequests()
getFailedRequests
in interface ConnectionPoolStatistics
public int getFailedRequestsPerSecond()
getFailedRequestsPerSecond
in interface ConnectionPoolStatistics
public int getRequestsPerSecond()
getRequestsPerSecond
in interface ConnectionPoolStatistics
public long getAverageGetTime()
getAverageGetTime
in interface ConnectionPoolStatistics
public long getMinimumCheckOutTime()
getMinimumCheckOutTime
in interface ConnectionPoolStatistics
public long getMaximumCheckOutTime()
getMaximumCheckOutTime
in interface ConnectionPoolStatistics
public int getSize()
getSize
in interface ConnectionPoolStatistics
public long getResetTime()
getResetTime
in interface ConnectionPoolStatistics
public void setFineGrainedStatistics(java.util.List<ConnectionPoolState> statistics)
public void setAvailableInPool(int availableInPool)
public void setConnectionsInUse(int connectionsInUse)
public void setTimestamp(long timestamp)
public void setCreationDate(long time)
public void setConnectionsCreated(int connectionsCreated)
public void setConnectionsDestroyed(int connectionsDestroyed)
public void setConnectionRequestsDelayed(int connectionRequestsDelayed)
public void setConnectionRequests(int connectionRequests)
public void setRequestsDelayedPerSecond(int requestsDelayedPerSecond)
public void setRequestsPerSecond(int requestsPerSecond)
public void setAverageCheckOutTime(long averageCheckOutTime)
public void setMinimumCheckOutTime(long minimumCheckOutTime)
public void setMaximumCheckOutTime(long maximumCheckOutTime)
public void setPoolSize(int poolSize)
public void setResetDate(long resetDate)
public void setConnectionRequestsFailed(int connectionRequestsFailed)
public void setRequestsFailedPerSecond(int requestsFailedPerSecond)