|
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.BTTServiceImpl
The BTTServiceImpl class is the super class of all Composer service, which is Web Service, Remote EJB or Local Java, in BTT 5.0.
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_RESPONSE
Default response whenever there is no result return from executed methods. |
Fields inherited from class com.ibm.btt.base.Service |
---|
externalizer, name |
Fields inherited from interface com.ibm.btt.services.BTTService |
---|
COMPID |
Constructor Summary | |
---|---|
BTTServiceImpl()
|
Method Summary | |
---|---|
long |
getInactiveTimeout()
|
long |
getLastAccess()
Get the last access time of the requester instance |
abstract java.lang.Object |
handleCommand(java.lang.String opName,
java.util.Hashtable parts)
This method must be inplemented by Service developers to handle commands to the service. |
java.lang.Object |
initializeFrom(Tag aTag)
Initializes the Service reading its attributes values from aTag. |
java.lang.Object |
processRequest(java.lang.String opName,
java.util.Hashtable parts)
Command interface for the service. |
void |
setInactiveTimeout(long time)
|
void |
setLastAccess(long time)
Set the last access time of the requester instance |
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 java.lang.String DEFAULT_RESPONSE
Constructor Detail |
public BTTServiceImpl()
Method Detail |
public java.lang.Object processRequest(java.lang.String opName, java.util.Hashtable parts) throws java.lang.Exception
BTTService
processRequest
in interface BTTService
opName
- An operation name to indicate which process will be performedparts
- A Hashtable to store the parameter for a process
java.lang.Exception
Inside this class, the processRequest will invoke handleCommand
to do request dispatched.
public abstract java.lang.Object handleCommand(java.lang.String opName, java.util.Hashtable parts) throws java.lang.Exception
opName
- Operation Nameparts
- Operation parameters
java.lang.Exception
public long getLastAccess()
public void setLastAccess(long time)
time
- Last access timepublic java.lang.Object initializeFrom(Tag aTag) throws java.io.IOException, DSEException
initializeFrom
in interface Externalizable
initializeFrom
in class Service
aTag
- com.ibm.dse.base.Tag
java.io.IOException
DSEException
public 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 |