| java.lang.Object org.enhydra.jdbc.pool.GenericPool
GenericPool | public class GenericPool (Code) | | GenericPool is the main class of the Pool. It works with any kind of object
that's implement PoolHelper (must provide specific operation on the specific
object) Objects stored in hashtables are GenerationObject object. These
objects allow to store multiples things in them, in particular, the
generation number to identify the generation of an object.
|
DEFAULT_DEADLOCKMAXWAIT | final public static int DEFAULT_DEADLOCKMAXWAIT(Code) | | |
DEFAULT_DEADLOCKRETRYWAIT | final public static int DEFAULT_DEADLOCKRETRYWAIT(Code) | | |
DEFAULT_EXPIRATION | final public static long DEFAULT_EXPIRATION(Code) | | |
DEFAULT_MAXLIFETIME | final public static long DEFAULT_MAXLIFETIME(Code) | | |
DEFAULT_MAXSIZE | final public static int DEFAULT_MAXSIZE(Code) | | |
DEFAULT_MINSIZE | final public static int DEFAULT_MINSIZE(Code) | | |
DEFAULT_SLEEPTIME | final public static long DEFAULT_SLEEPTIME(Code) | | |
generation | protected int generation(Code) | | Generation number. When an error occurs, all objects of the same
generation or earlier are dropped.
|
GenericPool | public GenericPool(PoolHelper helper)(Code) | | Creates an GenericPool with the default params.
|
GenericPool | public GenericPool(PoolHelper helper, int minSize, int maxSize, long lifeTime, long sleepTime, long maxLifeTime)(Code) | | Constructor, set the two hashtables and set by default the other values
|
checkIn | public synchronized void checkIn(Object o)(Code) | | remove object from locked pool
|
cleanUp | protected void cleanUp()(Code) | | Remove unusable objects from the pool, called by PoolKeeper Check the
unlocked objects for expired members.
|
expireAll | void expireAll()(Code) | | close all object in the unlocked and locked structures
|
fullRemoveLockedObject | public synchronized void fullRemoveLockedObject(Object obj)(Code) | | removes an object for the locked pool, when an error has occurred
|
getCheckLevelObject | public int getCheckLevelObject()(Code) | | |
getCount | public int getCount()(Code) | | |
getDeadLockMaxWait | public long getDeadLockMaxWait()(Code) | | |
getDeadLockRetryWait | public long getDeadLockRetryWait()(Code) | | |
getGeneration | public int getGeneration()(Code) | | |
getLifeTime | public long getLifeTime()(Code) | | |
getLockedObjectCount | public int getLockedObjectCount()(Code) | | returns the current number of objects that are locked
|
getMaxLifeTime | public long getMaxLifeTime()(Code) | | |
getMaxSize | public int getMaxSize()(Code) | | |
getMinSize | public int getMinSize()(Code) | | |
getSleepTime | public long getSleepTime()(Code) | | |
getUnlockedObjectCount | public int getUnlockedObjectCount()(Code) | | returns the current number of objects that are unlocked
|
isDebug | public boolean isDebug()(Code) | | |
isGC | public boolean isGC()(Code) | | |
minimumObject | public synchronized void minimumObject()(Code) | | |
nextGeneration | public void nextGeneration(Object obj)(Code) | | Allows to verify if objects from the pool - for the o generation - are
valid or not. (only for the unlocked pool, to avoid to allocate non-valid
object
|
removeLockedObject | public synchronized void removeLockedObject(Object obj)(Code) | | removes an object for the locked pool, when an error has occurred
|
setCheckLevelObject | public void setCheckLevelObject(int level)(Code) | | level are accepted between 0 and 4
|
setDeadLockMaxWait | public void setDeadLockMaxWait(long deadLock)(Code) | | |
setDeadLockRetryWait | public void setDeadLockRetryWait(long deadLockRetryWait)(Code) | | |
setDebug | public void setDebug(boolean debug)(Code) | | |
setGC | public void setGC(boolean gc)(Code) | | |
setGeneration | public void setGeneration(int generation)(Code) | | |
setLifeTime | public void setLifeTime(long lifeTime)(Code) | | |
setLogger | public void setLogger(Logger alog)(Code) | | Outputs a log message to the log writer.
|
setMaxLifeTime | public void setMaxLifeTime(long maxlifeTime)(Code) | | |
setMaxSize | public synchronized void setMaxSize(int max) throws Exception(Code) | | |
setMinSize | public synchronized void setMinSize(int min) throws Exception(Code) | | |
setSleepTime | public void setSleepTime(long sleepTime)(Code) | | |
start | public synchronized void start()(Code) | | Start method, to initialize independant values of the pool
|
stop | public void stop()(Code) | | switch off the pool
|
toString | public String toString()(Code) | | returns information from the pool
|
|
|