|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttoolbox.pooling.ResourcePoolImpl
toolbox.oracle.siebel.session.ResourcePoolTokenImpl
public class ResourcePoolTokenImpl
ResourcePool implementation to pool Oracle Siebel stateless session tokens.
Field Summary |
---|
Fields inherited from class toolbox.pooling.ResourcePoolImpl |
---|
m_customProps |
Constructor Summary | |
---|---|
ResourcePoolTokenImpl()
Default constructor. |
Method Summary | |
---|---|
protected java.lang.Object |
createResource(toolbox.allegato.XMLProperties xmlProps,
int count)
Create and return a session token instance. |
protected void |
destroyResource(java.lang.Object resource)
Destroy the given Token. |
protected boolean |
isResourceValid(java.lang.Object resource)
Validates the given Token and returns the validation state. |
protected void |
preInit(toolbox.allegato.XMLProperties xmlProps)
Initialises the SessionTokenConfig object required by this pool to perform resource creation. |
Methods inherited from class toolbox.pooling.ResourcePoolImpl |
---|
destroy, getName, getResource, getStatus, getStatusString, init, releaseResource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResourcePoolTokenImpl()
Method Detail |
---|
protected void preInit(toolbox.allegato.XMLProperties xmlProps) throws toolbox.pooling.ResourcePoolException
preInit
in class toolbox.pooling.ResourcePoolImpl
xmlProps
- XMLProperties instance.
toolbox.pooling.ResourcePoolException
- if the configuration cannot be initialised.protected java.lang.Object createResource(toolbox.allegato.XMLProperties xmlProps, int count) throws toolbox.pooling.ResourcePoolException
createResource
in class toolbox.pooling.ResourcePoolImpl
xmlProps
- XMLProperties instance.count
- int indicating how many times this operation has been
invoked.
toolbox.pooling.ResourcePoolException
- if the token cannot be created.protected void destroyResource(java.lang.Object resource)
destroyResource
in class toolbox.pooling.ResourcePoolImpl
resource
- Token resource to destroy.
toolbox.pooling.ResourcePoolException
protected boolean isResourceValid(java.lang.Object resource) throws toolbox.pooling.ResourcePoolException
isResourceValid
in class toolbox.pooling.ResourcePoolImpl
resource
- Token instance to validate.
toolbox.pooling.ResourcePoolException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |