|
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
The BTTServiceRequester class is the super class of all requester. It extends Service to provide backward compatibibty. Furthermore, it wraps the basic processes, like default attributes setting(e.g. ServiceID, CachingEnabled, ServiceInvocation), and re-directing the processRequester to the proper invocation class.
Field Summary | |
---|---|
static java.lang.String |
COMPID
|
Fields inherited from class com.ibm.btt.base.Service |
---|
externalizer, name |
Constructor Summary | |
---|---|
BTTServiceRequester()
|
Method Summary | |
---|---|
boolean |
getCachingEnabled()
Method getCachingEnabled. |
long |
getInactiveTimeout()
|
long |
getLastAccess()
Get the last access time of the requester instance |
java.lang.String |
getServiceID()
Returns the service ID |
ServiceInvocation |
getServiceInvocation()
Method getServiceInvocation. |
java.lang.String |
getServiceType()
Returns the serviceType. |
void |
grantServiceID()
Send a request to the service holder to grant a service id |
java.util.Hashtable |
HashMapToHashtable(java.util.HashMap aHashMap)
Convert HashMap to Hashtable |
void |
initializeFrom(java.util.ResourceBundle config)
Method initializeFrom. |
java.lang.Object |
initializeFrom(Tag aTag)
Initializes the Service reading its attributes values from aTag. |
BTTServiceRequester |
newInstance()
Method newInstance. |
protected java.lang.Object |
processRequest(java.lang.String opName,
java.util.Hashtable parts)
Commend intereface which will be invoked by the operation method of the requester. |
void |
releaseServiceRequester()
Release the service requester and the service object |
void |
setCachingEnabled(boolean cached)
Method setCachingEnabled. |
void |
setInactiveTimeout(long time)
|
void |
setLastAccess(long time)
Set the last access time of the requester instance |
void |
setServiceID(java.lang.String serviceID)
Set the service ID in the service requester |
void |
setServiceInvocation(ServiceInvocation ServiceInvocation)
Sets the service invocation object for the requester. |
void |
setServiceType(java.lang.String serviceType)
Sets the serviceType. |
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 |
public static final java.lang.String COMPID
Constructor Detail |
public BTTServiceRequester()
Method Detail |
protected java.lang.Object processRequest(java.lang.String opName, java.util.Hashtable parts) throws java.lang.Exception
opName
- Operation nameparts
- Operation parameters
java.lang.Exception
public java.lang.Object initializeFrom(Tag aTag) throws java.io.IOException, DSEException
Service
initializeFrom
in interface Externalizable
initializeFrom
in class Service
aTag
- com.ibm.dse.base.Tag
java.io.IOException
DSEException
Handles the basic definition, e.g. Service ID, Caching or not, Service invocation way.
public void initializeFrom(java.util.ResourceBundle config) throws java.lang.Exception
config
- A resource bundle class.
java.lang.Exception
public void grantServiceID() throws java.lang.Exception
java.lang.Exception
public void releaseServiceRequester() throws java.lang.Exception
java.lang.Exception
public void setServiceInvocation(ServiceInvocation ServiceInvocation)
ServiceInvocation
- public ServiceInvocation getServiceInvocation()
public void setServiceID(java.lang.String serviceID)
serviceID
- public java.lang.String getServiceID() throws java.lang.Exception
java.lang.Exception
public void setCachingEnabled(boolean cached)
cached
- true - caching in the requester factory.public boolean getCachingEnabled()
public BTTServiceRequester newInstance() throws java.lang.Exception
java.lang.Exception
public java.lang.String getServiceType()
public void setServiceType(java.lang.String serviceType)
serviceType
- The serviceType to setpublic java.util.Hashtable HashMapToHashtable(java.util.HashMap aHashMap)
aHashMap
- a HashMap object
public long getLastAccess()
public void setLastAccess(long time)
time
- Last access timepublic long getInactiveTimeout()
public void setInactiveTimeout(long time)
time
-
|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |