1 23 24 29 42 43 48 49 package com.sun.enterprise.util.pool; 50 51 import java.rmi.RemoteException ; 52 import java.util.logging.Logger ; 54 import java.util.logging.Level ; 55 import com.sun.logging.LogDomains; 56 58 61 public class EchoPoolListener 62 implements PoolListener 63 { 64 static Logger _logger=LogDomains.getLogger(LogDomains.UTIL_LOGGER); 66 private boolean debug = false; 68 69 72 public void afterCreate(Object object) { 73 if ( com.sun.enterprise.util.logging.Debug.enabled ) 74 _logger.log(Level.FINE,this + ": afterCreate(" + object + ");"); 77 } 79 80 83 public void beforeDestroy(Object object) { 84 if ( com.sun.enterprise.util.logging.Debug.enabled ) 85 _logger.log(Level.FINE,this + ": beforeDestroy(" + object + ");"); 88 } 90 91 94 public void beforeWait(Object object) { 95 if ( com.sun.enterprise.util.logging.Debug.enabled ) 96 _logger.log(Level.FINE,this + ": beforeWait(" + object + ");"); 99 } 101 102 105 public void afterNotify(Object object) { 106 if ( com.sun.enterprise.util.logging.Debug.enabled ) 107 _logger.log(Level.FINE,this + ": afterNotify(" + object + ");"); 110 } 112 113 114 115 118 public void onRecycle() { 119 if ( com.sun.enterprise.util.logging.Debug.enabled ) 120 _logger.log(Level.FINE,this + ": pool recycled......"); 123 } 125 126 129 public void beforeHold() { 130 if ( com.sun.enterprise.util.logging.Debug.enabled ) 131 _logger.log(Level.FINE,this + ": pool on hold......"); 134 } 136 137 140 public void afterHold() { 141 if ( com.sun.enterprise.util.logging.Debug.enabled ) 142 _logger.log(Level.FINE,this + ": pool out of hold......"); 145 } 147 148 151 public void onClose() { 152 if ( com.sun.enterprise.util.logging.Debug.enabled ) 153 _logger.log(Level.FINE,this + ": pool closed......"); 156 } 158 159 } 160 | Popular Tags |