|
xmlBlaster 1.6.2 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.xmlBlaster.test.classtest.TestPoolManager.TestPool
This class does the resource pooling for TestResource, with the help of PoolManager
| Field Summary | |
private int |
counter
|
(package private) PoolManager |
poolManager
|
| Constructor Summary | |
(package private) |
TestPoolManager.TestPool(int maxInstances,
long busyToIdle,
long idleToErase)
|
| Method Summary | |
void |
busyToIdle(java.lang.Object resource)
Is invoked on state transition from 'busy' to 'idle'. |
void |
idleToBusy(java.lang.Object resource)
Is invoked on state transition from 'idle' to 'busy'. |
(package private) void |
release(TestPoolManager.TestResource rr)
|
(package private) TestPoolManager.TestResource |
reserve()
|
(package private) TestPoolManager.TestResource |
reserve(java.lang.String instanceId)
|
java.lang.Object |
toCreate(java.lang.String instanceId)
Is invoked when a new resource is needed. |
void |
toErased(java.lang.Object resource)
Is invoked when a resource is destroyed explicitly or by timeout. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private int counter
PoolManager poolManager
| Constructor Detail |
TestPoolManager.TestPool(int maxInstances,
long busyToIdle,
long idleToErase)
| Method Detail |
public void idleToBusy(java.lang.Object resource)
I_PoolManager
idleToBusy in interface I_PoolManagerpublic void busyToIdle(java.lang.Object resource)
I_PoolManager
busyToIdle in interface I_PoolManager
public java.lang.Object toCreate(java.lang.String instanceId)
throws XmlBlasterException
I_PoolManager
toCreate in interface I_PoolManagerXmlBlasterExceptionpublic void toErased(java.lang.Object resource)
I_PoolManager
toErased in interface I_PoolManagerTestPoolManager.TestResource reserve()
TestPoolManager.TestResource reserve(java.lang.String instanceId)
void release(TestPoolManager.TestResource rr)
|
xmlBlaster 1.6.2 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||