IBM Branch Transformation Toolkit Javadoc

com.ibm.btt.services
Class PoolableServiceImpl

java.lang.Object
  extended bycom.ibm.btt.base.Service
      extended bycom.ibm.btt.services.BTTServiceImpl
          extended bycom.ibm.btt.services.PoolableServiceImpl
All Implemented Interfaces:
BTTService, Externalizable, java.io.Externalizable, Poolable, java.io.Serializable
Direct Known Subclasses:
JDBCServiceImpl

public abstract class PoolableServiceImpl
extends BTTServiceImpl
implements Poolable

PoolableServiceImpl is an abstract class for the service object which want to provide the pool features

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.ibm.btt.services.BTTServiceImpl
DEFAULT_RESPONSE
 
Fields inherited from class com.ibm.btt.base.Service
externalizer, name
 
Fields inherited from interface com.ibm.btt.services.BTTService
COMPID
 
Constructor Summary
PoolableServiceImpl()
           
 
Method Summary
 java.lang.String getGrantTime()
          Returns the grant time of the pool object.
 boolean getInUse()
          Returns the inUse attribute.
 java.lang.String getUID()
          Set UID to the pool instance.
 void initialize()
          Performs some required actions before begining.
 void reset()
          Resets the pool.
 void setGrantTime(java.lang.String string)
          Set the grant time of the pool object.
 void setInUse(boolean b)
          Sets the value of the inUse attribute.
 void setUID(java.lang.String uid)
          Set UID to the pool instance.
 void terminate()
          Performs any required actions before the service instance can be stopped.
 
Methods inherited from class com.ibm.btt.services.BTTServiceImpl
getInactiveTimeout, getLastAccess, handleCommand, initializeFrom, processRequest, setInactiveTimeout, setLastAccess
 
Methods inherited from class com.ibm.btt.base.Service
externalizer, getExternalizer, getName, getTagName, readExternal, readExternal, readObject, removeExternal, setExternalizer, setName, toString, toStrings, toTags, writeExternal, writeExternal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PoolableServiceImpl

public PoolableServiceImpl()
Method Detail

getInUse

public boolean getInUse()
Description copied from interface: Poolable
Returns the inUse attribute.

Specified by:
getInUse in interface Poolable
Returns:
boolean - Returns true if the object is in use
See Also:
Poolable.getInUse()

initialize

public void initialize()
                throws DSEException
Description copied from interface: Poolable
Performs some required actions before begining.

Specified by:
initialize in interface Poolable
Throws:
DSEException
See Also:
Poolable.initialize()

reset

public void reset()
           throws DSEException
Description copied from interface: Poolable
Resets the pool. This method is invoked when releasing the Poolable object

Specified by:
reset in interface Poolable
Throws:
DSEException
See Also:
Poolable.reset()

setInUse

public void setInUse(boolean b)
Description copied from interface: Poolable
Sets the value of the inUse attribute.

Specified by:
setInUse in interface Poolable
Parameters:
b - The value of the attribute
See Also:
Poolable.setInUse(boolean)

terminate

public void terminate()
               throws DSEException
Performs any required actions before the service instance can be stopped.

Specified by:
terminate in interface Poolable
Overrides:
terminate in class Service
Throws:
DSEException
DSEException

setUID

public void setUID(java.lang.String uid)
Set UID to the pool instance.

Specified by:
setUID in interface Poolable
Throws:
DSEException

getUID

public java.lang.String getUID()
Set UID to the pool instance.

Specified by:
getUID in interface Poolable
Throws:
DSEException

getGrantTime

public java.lang.String getGrantTime()
Returns the grant time of the pool object.

Specified by:
getGrantTime in interface Poolable
Returns:
String - the grant time of the pool object.

setGrantTime

public void setGrantTime(java.lang.String string)
Set the grant time of the pool object.

Specified by:
setGrantTime in interface Poolable
Parameters:
string - - the grant time of the pool object.

IBM Branch Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2005