Class HouseKeeperController


  • public class HouseKeeperController
    extends java.lang.Object
    Schedules when to run the house keeper
    Since:
    Proxool 0.8
    Version:
    $Revision: 1.6 $, $Date: 2006/01/18 14:40:01 $
    Author:
    bill, $Author: billhorsman $ (current maintainer)
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      protected static void cancel​(java.lang.String alias)
      cancel a house keeper for a pool.
      protected static org.logicalcobwebs.proxool.HouseKeeper getHouseKeeperToRun()
      Get the next house keeper that needs to be run
      protected static void register​(org.logicalcobwebs.proxool.ConnectionPool connectionPool)
      Schedule a regular triggerSweep
      protected static void shutdown()
      Stop all house keeper threads.
      protected static void sweepNow​(java.lang.String alias)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HouseKeeperController

        public HouseKeeperController()
    • Method Detail

      • getHouseKeeperToRun

        protected static org.logicalcobwebs.proxool.HouseKeeper getHouseKeeperToRun()
        Get the next house keeper that needs to be run
        Returns:
        the house keeper to run, or null if there is nothing to do.
      • sweepNow

        protected static void sweepNow​(java.lang.String alias)
      • register

        protected static void register​(org.logicalcobwebs.proxool.ConnectionPool connectionPool)
        Schedule a regular triggerSweep
        Parameters:
        connectionPool - identifies the pool
      • shutdown

        protected static void shutdown()
        Stop all house keeper threads.
      • cancel

        protected static void cancel​(java.lang.String alias)
                              throws ProxoolException
        cancel a house keeper for a pool. This doens't stop the house keeper thread.
        Parameters:
        alias - identifies the pool
        Throws:
        ProxoolException - if we couldn't find the house keeper (if it had already been cancelled for instance).