|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.huihoo.jfox.system.ComponentSupport
org.huihoo.jfox.pool.ObjectPoolSupport
the supper class of all object pool
| Field Summary | |
protected ObjectFactory |
factory
|
| Fields inherited from class org.huihoo.jfox.system.ComponentSupport |
logger, name, proxyInstance, sequence, state |
| Constructor Summary | |
ObjectPoolSupport(ObjectFactory factory)
|
|
ObjectPoolSupport(java.lang.String objectFactoryClassName,
java.lang.String poolableClassName)
|
|
| Method Summary | |
void |
clear()
Clears any objects sitting idle in the pool, releasing any associated resources |
protected void |
doDestroy()
do actually destory action |
protected void |
doInit()
do actually create action |
java.lang.String |
getObjectClass()
get the pooled object's class type, it return by object pool's factory |
ObjectFactory |
getObjectFactory()
get the factory use to create new instances |
int |
getRest()
get the count of rest object |
int |
getWorking()
get the count of working object |
| Methods inherited from class org.huihoo.jfox.system.ComponentSupport |
destroy, getLogger, getName, getState, init, parseName, setLogger, setName |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.huihoo.jfox.pool.ObjectPool |
removeObject, restoreObject, retrieveObject |
| Field Detail |
protected ObjectFactory factory
| Constructor Detail |
public ObjectPoolSupport(ObjectFactory factory)
public ObjectPoolSupport(java.lang.String objectFactoryClassName,
java.lang.String poolableClassName)
| Method Detail |
public ObjectFactory getObjectFactory()
ObjectPool
getObjectFactory in interface ObjectPoolpublic java.lang.String getObjectClass()
getObjectClass in interface ObjectPoolpublic void clear()
clear in interface ObjectPool
protected void doInit()
throws java.lang.Exception
ComponentSupport
doInit in class ComponentSupportjava.lang.Exception
protected void doDestroy()
throws java.lang.Exception
ComponentSupport
doDestroy in class ComponentSupportjava.lang.Exceptionpublic int getWorking()
getWorking in interface ObjectPoolpublic int getRest()
getRest in interface ObjectPool
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||