public final class ConnectionPoolMonitor
extends java.lang.Object
Constructor and Description |
---|
ConnectionPoolMonitor(ConnectionPool connectionPool)
Instantiates a new
ConnectionPoolMonitor |
public ConnectionPoolMonitor(ConnectionPool connectionPool)
ConnectionPoolMonitor
connectionPool
- the connection pool to monitorpublic User getUser()
public ConnectionPoolStatistics getConnectionPoolStatistics()
public int getPooledConnectionTimeout()
public void setPooledConnectionTimeout(int value)
value
- the pool connection timeout in secondspublic int getPoolCleanupInterval()
public void setPoolCleanupInterval(int value)
value
- the pool maintenance interval in secondspublic int getMinimumPoolSize()
public void setMinimumPoolSize(int value)
value
- the minimum pool size to maintainpublic int getMaximumPoolSize()
public void setMaximumPoolSize(int value)
value
- the maximum allowed pool sizepublic int getMaximumRetryWaitPeriod()
public void setMaximumRetryWaitPeriod(int value)
value
- the maximum period to wait before retrying to get a connectionpublic int getMaximumCheckOutTime()
public void setMaximumCheckOutTime(int value)
value
- the maximum wait time for a connectionpublic int getNewConnectionThreshold()
public void setNewConnectionThreshold(int value)
value
- the wait threshold before creating a new connectionpublic boolean datasetContainsData()
public org.jfree.data.xy.XYDataset getFineGrainedInPoolDataset()
public org.jfree.data.xy.XYDataset getInPoolDataset()
public org.jfree.data.xy.XYDataset getRequestsPerSecondDataset()
public org.jfree.data.xy.YIntervalSeriesCollection getCheckOutTimeCollection()
public void resetStatistics()
public void resetInPoolStatistics()
public void setCollectFineGrainedStatistics(boolean value)
value
- true if fine grained stats should be collectedpublic boolean isCollectFineGrainedStatistics()
public EventObserver<java.lang.Boolean> getCollectFineGrainedStatisticsObserver()
public EventObserver getStatisticsObserver()
public TaskScheduler getUpdateScheduler()
public void shutdown()