1 package uk.org.primrose.pool.jmx; 2 3 public class PoolShutdownHook extends Thread { 4 PoolController pc; 5 6 public PoolShutdownHook(PoolController pc) { 7 this.pc = pc; 8 } 9 10 public void run() { 11 ControllerLogger.log("[Primrose::PoolShutdownHook] JVM is exiting - checking pools are shut down."); 12 pc.stopAllPoolQueues(); 13 pc.destroy(); 14 } 15 } 16 | Popular Tags |