org.jminor.framework.server.monitor
Class ConnectionPoolMonitor

java.lang.Object
  extended by org.jminor.framework.server.monitor.ConnectionPoolMonitor

public final class ConnectionPoolMonitor
extends Object

A ConnectionPoolMonitor


Constructor Summary
ConnectionPoolMonitor(ConnectionPool pool)
           
 
Method Summary
 void addStatsListener(ActionListener listener)
           
 boolean datasetContainsData()
           
 org.jfree.data.xy.YIntervalSeriesCollection getCheckOutTimeCollection()
           
 EventObserver getCollectFineGrainedStatsObserver()
           
 ConnectionPoolStatistics getConnectionPoolStats()
           
 org.jfree.data.xy.XYDataset getInPoolDataSet()
           
 org.jfree.data.xy.XYDataset getInPoolDataSetMacro()
           
 int getMaximumCheckOutTime()
           
 int getMaximumPoolSize()
           
 int getMaximumRetryWaitPeriod()
           
 int getMinimumPoolSize()
           
 int getNewConnectionThreshold()
           
 int getPoolCleanupInterval()
           
 int getPooledConnectionTimeout()
           
 EventObserver getRefreshObserver()
           
 org.jfree.data.xy.XYDataset getRequestsPerSecondDataSet()
           
 EventObserver getStatsObserver()
           
 int getStatsUpdateInterval()
           
 EventObserver getStatsUpdateIntervalObserver()
           
 User getUser()
           
 boolean isCollectFineGrainedStats()
           
 void removeStatsListener(ActionListener listener)
           
 void resetInPoolStats()
           
 void resetStats()
           
 void setCollectFineGrainedStats(boolean value)
           
 void setMaximumCheckOutTime(int value)
           
 void setMaximumPoolSize(int value)
           
 void setMaximumRetryWaitPeriod(int value)
           
 void setMinimumPoolSize(int value)
           
 void setNewConnectionThreshold(int value)
           
 void setPoolCleanupInterval(int value)
           
 void setPooledConnectionTimeout(int value)
           
 void setStatsUpdateInterval(int value)
           
 void shutdown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionPoolMonitor

public ConnectionPoolMonitor(ConnectionPool pool)
                      throws RemoteException
Throws:
RemoteException
Method Detail

getUser

public User getUser()

getConnectionPoolStats

public ConnectionPoolStatistics getConnectionPoolStats()

getPooledConnectionTimeout

public int getPooledConnectionTimeout()
                               throws RemoteException
Throws:
RemoteException

setPooledConnectionTimeout

public void setPooledConnectionTimeout(int value)
                                throws RemoteException
Throws:
RemoteException

getPoolCleanupInterval

public int getPoolCleanupInterval()
                           throws RemoteException
Throws:
RemoteException

setPoolCleanupInterval

public void setPoolCleanupInterval(int value)
                            throws RemoteException
Throws:
RemoteException

getMinimumPoolSize

public int getMinimumPoolSize()

setMinimumPoolSize

public void setMinimumPoolSize(int value)
                        throws RemoteException
Throws:
RemoteException

getMaximumPoolSize

public int getMaximumPoolSize()

setMaximumPoolSize

public void setMaximumPoolSize(int value)
                        throws RemoteException
Throws:
RemoteException

getMaximumRetryWaitPeriod

public int getMaximumRetryWaitPeriod()

setMaximumRetryWaitPeriod

public void setMaximumRetryWaitPeriod(int value)
                               throws RemoteException
Throws:
RemoteException

getMaximumCheckOutTime

public int getMaximumCheckOutTime()

setMaximumCheckOutTime

public void setMaximumCheckOutTime(int value)
                            throws RemoteException
Throws:
RemoteException

getNewConnectionThreshold

public int getNewConnectionThreshold()

setNewConnectionThreshold

public void setNewConnectionThreshold(int value)
                               throws RemoteException
Throws:
RemoteException

datasetContainsData

public boolean datasetContainsData()

getInPoolDataSet

public org.jfree.data.xy.XYDataset getInPoolDataSet()

getInPoolDataSetMacro

public org.jfree.data.xy.XYDataset getInPoolDataSetMacro()

getRequestsPerSecondDataSet

public org.jfree.data.xy.XYDataset getRequestsPerSecondDataSet()

getCheckOutTimeCollection

public org.jfree.data.xy.YIntervalSeriesCollection getCheckOutTimeCollection()

resetStats

public void resetStats()
                throws RemoteException
Throws:
RemoteException

resetInPoolStats

public void resetInPoolStats()

setCollectFineGrainedStats

public void setCollectFineGrainedStats(boolean value)
                                throws RemoteException
Throws:
RemoteException

isCollectFineGrainedStats

public boolean isCollectFineGrainedStats()
                                  throws RemoteException
Throws:
RemoteException

setStatsUpdateInterval

public void setStatsUpdateInterval(int value)

getStatsUpdateInterval

public int getStatsUpdateInterval()

shutdown

public void shutdown()

addStatsListener

public void addStatsListener(ActionListener listener)

removeStatsListener

public void removeStatsListener(ActionListener listener)

getCollectFineGrainedStatsObserver

public EventObserver getCollectFineGrainedStatsObserver()

getRefreshObserver

public EventObserver getRefreshObserver()

getStatsObserver

public EventObserver getStatsObserver()

getStatsUpdateIntervalObserver

public EventObserver getStatsUpdateIntervalObserver()