|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.huihoo.jfox.system.ComponentSupport
org.jfox.ejb.StatefulSessionBeanObjectPool
| Field Summary |
| Fields inherited from class org.huihoo.jfox.system.ComponentSupport |
logger, name, proxyInstance, sequence, state |
| Constructor Summary | |
StatefulSessionBeanObjectPool(StatefulSessionBucket bucket,
ObjectFactory factory)
|
|
| Method Summary | |
void |
clear()
Clears any objects sitting idle in the pool, releasing any associated resources |
PoolableObject |
createObject()
|
protected void |
doDestroy()
do actually destory action |
protected void |
doInit()
do actually create action |
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 |
void |
lifecycleCheck()
对缓存的对象进行生命周期检查 |
EJBPoolableObject |
loadObject(java.lang.Object key)
|
static void |
main(java.lang.String[] args)
|
boolean |
passivateObject(java.lang.Object key)
|
boolean |
removeObject(java.lang.Object key)
remove a poolable object from the pool |
boolean |
restoreObject(java.lang.Object key,
PoolableObject obj)
如果池中已经有该 key 存在,返回 false,没有则返回 true |
PoolableObject |
retrieveObject(java.lang.Object key)
retrieve Object from object pool with the key 如果这个 key 还不存在,就新建该 key ,并返回和该 key 关联的对象 |
| 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 |
| Constructor Detail |
public StatefulSessionBeanObjectPool(StatefulSessionBucket bucket,
ObjectFactory factory)
| Method Detail |
public PoolableObject createObject()
throws java.lang.Exception
java.lang.Exception
public PoolableObject retrieveObject(java.lang.Object key)
throws java.lang.Exception
IndexedObjectPool
retrieveObject in interface IndexedObjectPooljava.lang.Exception
public boolean restoreObject(java.lang.Object key,
PoolableObject obj)
restoreObject in interface IndexedObjectPoolkey - obj -
public boolean removeObject(java.lang.Object key)
IndexedObjectPool
removeObject in interface IndexedObjectPoolkey -
public void clear()
IndexedObjectPool
clear in interface IndexedObjectPoolpublic ObjectFactory getObjectFactory()
IndexedObjectPool
getObjectFactory in interface IndexedObjectPoolpublic int getWorking()
IndexedObjectPool
getWorking in interface IndexedObjectPoolpublic int getRest()
IndexedObjectPool
getRest in interface IndexedObjectPool
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 boolean passivateObject(java.lang.Object key)
public EJBPoolableObject loadObject(java.lang.Object key)
throws java.lang.Exception
java.lang.Exceptionpublic void lifecycleCheck()
public static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||