net.sourceforge.idrs.core
Class IDRSPool

java.lang.Object
  |
  +--net.sourceforge.idrs.utils.pool.ObjectPool
        |
        +--net.sourceforge.idrs.core.IDRSPool
All Implemented Interfaces:
java.io.Serializable

public class IDRSPool
extends ObjectPool

See Also:
Serialized Form

Field Summary
protected  java.lang.String scriptClass
           
 
Fields inherited from class net.sourceforge.idrs.utils.pool.ObjectPool
count, daysOpen, debug, DEFAULT_DAYS_OPEN, DEFAULT_EXPIRATION, DEFAULT_MIN_POOLSIZE, DEFAULT_PATH, DEFAULT_SLEEPTIME, DEFAULT_TIMEOUT, DEFAULT_TRYS, limit, logPath, MAX_POOLSIZE, maxTrys, minn, out, pool, sleepTime
 
Constructor Summary
IDRSPool(int objectMin, int objectLimit, long daysOpen, long sleepTime, java.lang.String path, int trys, java.lang.String scriptClass)
           
 
Method Summary
protected  PooledObject create()
           
protected  void expire(PooledObject o)
           
 void logHeader()
           
protected  void reset(int index)
           
protected  boolean validate(PooledObject o)
           
 
Methods inherited from class net.sourceforge.idrs.utils.pool.ObjectPool
checkIn, checkIn, checkOut, getConnID, isDebugging, setDebugging, shouldReset
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

scriptClass

protected java.lang.String scriptClass
Constructor Detail

IDRSPool

public IDRSPool(int objectMin,
                int objectLimit,
                long daysOpen,
                long sleepTime,
                java.lang.String path,
                int trys,
                java.lang.String scriptClass)
         throws java.lang.Exception
Method Detail

logHeader

public void logHeader()
               throws java.lang.Exception
Overrides:
logHeader in class ObjectPool

create

protected PooledObject create()
                       throws java.lang.Exception
Overrides:
create in class ObjectPool

validate

protected boolean validate(PooledObject o)
Overrides:
validate in class ObjectPool

expire

protected void expire(PooledObject o)
Overrides:
expire in class ObjectPool

reset

protected void reset(int index)
Overrides:
reset in class ObjectPool