|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.dse.base.DSENotifier | +--com.ibm.dse.base.Service | +--com.ibm.dse.services.comms.CommunicationsPool
The CommunicationsPool is a pool that manages communications services that implement CommonCommunicationsService interface.
Field Summary | |
static java.lang.String |
COMPID
|
Fields inherited from class com.ibm.dse.base.Service |
externalizer |
Fields inherited from class com.ibm.dse.base.DSENotifier |
handlersList,
name |
Constructor Summary | |
CommunicationsPool()
This constructor creates a CommunicationsPool object. |
|
CommunicationsPool(java.lang.String aName)
This constructor creates a CommunicationsPool object. |
Method Summary | |
boolean |
areAllServicesOffline()
This method returns : true - If no service of the pool is in session false - If at least one service of the pool is in session |
void |
closeAll()
Executes ccClose method of every pool element. |
protected void |
freeAll()
Marks every pool element as not used. |
CommonCommunicationsService |
getPoolService()
This method returns the first free service of the pool, and in SEND state. |
protected CommonCommunicationsService |
getSessionWithName(java.lang.String name)
Returns a service pool with name |
java.lang.Object |
initializeFrom(Tag aTag)
Initializes a CommunicationsPool with the Tag attributes. |
void |
insertService(CommonCommunicationsService aService)
Inserts aService in the pool of services. |
void |
openAll()
Executes ccOpen method of every pool element. |
void |
releasePoolService(CommonCommunicationsService aService)
Frees aSession to be reused. |
protected void |
removeAll()
Removes all services from the pool |
void |
removeService(CommonCommunicationsService aService)
Removes aService from the pool. |
void |
terminate()
Frees and closes all the services from the pool. |
java.lang.String |
toString()
Converts this CommonCommunicationsService to string. |
Methods inherited from class com.ibm.dse.base.Service |
externalizer,
getExternalizer,
getTagName,
readExternal,
readExternal,
readObject,
removeExternal,
setExternalizer,
toStrings,
toTags,
writeExternal,
writeExternal |
Methods inherited from class com.ibm.dse.base.DSENotifier |
addHandler,
getHandlersList,
getName,
removeHandler,
setName,
signalEvent,
signalEvent,
signalEvent |
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 CommunicationsPool()
public CommunicationsPool(java.lang.String aName) throws java.io.IOException
aName
- java.lang.StringMethod Detail |
public boolean areAllServicesOffline()
public void closeAll()
protected void freeAll()
public CommonCommunicationsService getPoolService()
protected CommonCommunicationsService getSessionWithName(java.lang.String name)
public java.lang.Object initializeFrom(Tag aTag) throws java.io.IOException, DSEInvalidArgumentException
aTag
- Tag, the Tagpublic void insertService(CommonCommunicationsService aService)
aSession
- com.ibm.dse.services.comms.CommonCommunicationsService.public void openAll()
public void releasePoolService(CommonCommunicationsService aService)
aSession
- com.ibm.dse.services.comms.CommonCommunicationsService.protected void removeAll()
public void removeService(CommonCommunicationsService aService)
aSession
- com.ibm.dse.services.comms.CommonCommunicationsServicepublic void terminate()
public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |