|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.btt.base.Service
com.ibm.btt.services.BTTServiceRequester
com.ibm.btt.services.PooledServiceRequester
PooledServiceRequester is the basic class for the service requester which want to provide the pool feature. It wraps the pool handling process for the sub-class. The sub-class will just need to override the method if there is extra pool handling.
Field Summary | |
---|---|
protected boolean |
poolable
|
protected java.lang.String |
poolId
|
Fields inherited from class com.ibm.btt.services.BTTServiceRequester |
---|
COMPID |
Fields inherited from class com.ibm.btt.base.Service |
---|
externalizer, name |
Constructor Summary | |
---|---|
PooledServiceRequester()
|
Method Summary | |
---|---|
java.lang.String |
getGrantTime()
|
void |
getPoolable()
Method getPoolable is to get a available pool from the generic pool of the service holder. |
void |
getPoolable(int pid)
Method getPoolable is to acquire the pool by a given pool id. |
java.lang.String |
getPoolId()
Method getPoolId. |
java.lang.String |
getServiceID()
Returns the service ID |
void |
grantServiceID()
Send a request to the service holder to grant a service id |
void |
initializeFrom(java.util.ResourceBundle config)
Method initializeFrom. |
java.lang.Object |
initializeFrom(Tag aTag)
Initializes the Service reading its attributes values from aTag. |
protected java.lang.Object |
processRequest(java.lang.String opName,
java.util.Hashtable parts)
Commend intereface that the request and execute the corresponding method, it is being implemented by the developers |
void |
releaseOrphan()
Release the orphan instance. |
void |
releaseOrphan(int orphanTime)
Release the orphan instance. |
void |
releasePoolable()
Request a command to the generic pool to releases the held pool object. |
void |
releaseServiceRequester()
Release the service requester and the service object |
void |
setGrantTime(java.lang.String string)
|
void |
setPoolId(java.lang.String pid)
|
Methods inherited from class com.ibm.btt.services.BTTServiceRequester |
---|
getCachingEnabled, getInactiveTimeout, getLastAccess, getServiceInvocation, getServiceType, HashMapToHashtable, newInstance, setCachingEnabled, setInactiveTimeout, setLastAccess, setServiceID, setServiceInvocation, setServiceType |
Methods inherited from class com.ibm.btt.base.Service |
---|
externalizer, getExternalizer, getName, getTagName, readExternal, readExternal, readObject, removeExternal, setExternalizer, setName, terminate, toString, toStrings, toTags, writeExternal, writeExternal |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.lang.String poolId
protected boolean poolable
Constructor Detail |
public PooledServiceRequester()
Method Detail |
public java.lang.String getPoolId()
public void setPoolId(java.lang.String pid)
public void getPoolable() throws java.lang.Exception
java.lang.Exception
public void getPoolable(int pid) throws java.lang.Exception
pid
-
java.lang.Exception
public java.lang.Object initializeFrom(Tag aTag) throws java.io.IOException, DSEException
Service
initializeFrom
in interface Externalizable
initializeFrom
in class BTTServiceRequester
java.io.IOException
DSEException
The method will get an available pool from the service holder.
public void initializeFrom(java.util.ResourceBundle config) throws java.lang.Exception
initializeFrom
in class BTTServiceRequester
config
- A resource bundle class.
java.lang.Exception
public void grantServiceID() throws java.lang.Exception
grantServiceID
in class BTTServiceRequester
java.lang.Exception
protected java.lang.Object processRequest(java.lang.String opName, java.util.Hashtable parts) throws java.lang.Exception
processRequest
in class BTTServiceRequester
opName
- Operation nameparts
- Operation parameters
java.lang.Exception
public void releaseServiceRequester() throws java.lang.Exception
releaseServiceRequester
in class BTTServiceRequester
java.lang.Exception
public void releasePoolable() throws java.lang.Exception
java.lang.Exception
public void releaseOrphan() throws java.lang.Exception
java.lang.Exception
public void releaseOrphan(int orphanTime) throws java.lang.Exception
orphanTime
- - The orphan timeout value in second
java.lang.Exception
public java.lang.String getServiceID() throws java.lang.Exception
getServiceID
in class BTTServiceRequester
java.lang.Exception
public java.lang.String getGrantTime()
public void setGrantTime(java.lang.String string)
string
-
|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |