FileDocCategorySizeDatePackage
EchoPoolListener.javaAPI DocGlassfish v2 API6236Fri May 04 22:32:16 BST 2007com.sun.enterprise.util.pool

EchoPoolListener

public class EchoPoolListener extends Object implements PoolListener
PoolListeners receive notification from the PoolHandler.

Fields Summary
static Logger
_logger
private boolean
debug
Constructors Summary
Methods Summary
public voidafterCreate(java.lang.Object object)
called after an object has been created.


                
        
        if ( com.sun.enterprise.util.logging.Debug.enabled )
//Bug 4677074     	System.out.println(this + ": afterCreate(" + object + ");");
//Bug 4677074 begin
		 _logger.log(Level.FINE,this + ": afterCreate(" + object + ");");
//Bug 4677074 end
    
public voidafterHold()
Called when the pool is out of hold.

        if ( com.sun.enterprise.util.logging.Debug.enabled )
//Bug 4677074    	System.out.println(this + ": pool out of hold......");
//Bug 4677074 begin
                _logger.log(Level.FINE,this + ": pool out of hold......");
//Bug 4677074 end
    
public voidafterNotify(java.lang.Object object)
Called by the thread that has been notified.

        if ( com.sun.enterprise.util.logging.Debug.enabled )
//Bug 4677074    	System.out.println(this + ": afterNotify(" + object + ");");
//Bug 4677074 begin
                 _logger.log(Level.FINE,this + ": afterNotify(" + object + ");");
//Bug 4677074 end
    
public voidbeforeDestroy(java.lang.Object object)
called before an object is to be destroyed.

        if ( com.sun.enterprise.util.logging.Debug.enabled )
//Bug 4677074    	System.out.println(this + ": beforeDestroy(" + object + ");");
//Bug 4677074 begin
		 _logger.log(Level.FINE,this + ": beforeDestroy(" + object + ");");
//Bug 4677074 end
    
public voidbeforeHold()
Called when the pool is on hold.

        if ( com.sun.enterprise.util.logging.Debug.enabled )
//Bug 4677074    	System.out.println(this + ": pool on hold......");
//Bug 4677074 begin
                _logger.log(Level.FINE,this + ": pool on hold......");
//Bug 4677074 end
    
public voidbeforeWait(java.lang.Object object)
Called by the thread that is about to wait.

        if ( com.sun.enterprise.util.logging.Debug.enabled )
//Bug 4677074    	System.out.println(this + ": beforeWait(" + object + ");");
//Bug 4677074 begin
                 _logger.log(Level.FINE,this + ": beforeWait(" + object + ");");
//Bug 4677074 end
    
public voidonClose()
Called when the pool is closed.

        if ( com.sun.enterprise.util.logging.Debug.enabled )
//Bug 4677074    	System.out.println(this + ": pool closed......");
//Bug 4677074 begin
                _logger.log(Level.FINE,this + ": pool closed......");
//Bug 4677074 end
    
public voidonRecycle()
Called when the pool is recycled.

        if ( com.sun.enterprise.util.logging.Debug.enabled )
//Bug 4677074    	System.out.println(this + ": pool recycled......");
//Bug 4677074 begin
		_logger.log(Level.FINE,this + ": pool recycled......");
//Bug 4677074 end