com.ibm.dse.services.itoc
Class ITOCConnection

java.lang.Object
  |
  +--com.ibm.dse.base.DSENotifier
        |
        +--com.ibm.dse.base.Service
              |
              +--com.ibm.dse.services.itoc.ITOCConnection

public class ITOCConnection
extends Service
implements ITOCConnectionService, java.lang.Runnable

This class maps an TCP/IP connection to an IMS.

See Also:
Serialized Form

Field Summary
protected static java.lang.String _CSMOKY
           
protected static java.lang.String _REQMOD
           
protected static java.lang.String _REQSTS
           
static java.lang.String COMPID
          The component id.
 int datalength
           
 int MaxSegs
           
protected  char nad
           
protected static java.lang.String UserExit
           
 
Fields inherited from class com.ibm.dse.base.Service
externalizer
 
Fields inherited from class com.ibm.dse.base.DSENotifier
handlersList, name
 
Fields inherited from interface com.ibm.dse.services.itoc.ITOCConnectionService
automaticACK, clientId, commitMode, CONFIRM, dataStoreName, enabled, hostName, LISTEN_THREAD, lterm, MFS_NO, MFS_YES, MODE0, MODE1, NONE, password, port, receiveOnlyTimeout, requestMFS, SAFgroupName, sendOnly, synchLevel, synchronousMode, transaction, UNSOLICITED, userId, version
 
Fields inherited from interface com.ibm.dse.services.comms.CommonCommunicationsService
CLOSED, DATA, DATASENT, ERROR, OPENED, RECEIVERC, TIMEOUT
 
Constructor Summary
ITOCConnection()
          This constructor creates a ITOCConnection object.
ITOCConnection(java.lang.String aName)
          This constructor creates a ITOCConnection object.
 
Method Summary
 void ccClose()
          Closes the communications channel.
 void ccOpen()
          Opens the communications channel.
 CCMessage ccReceiveData(long timeout)
          Reads the data that has been received.If the data is not ready, it waits for the timeout.
 void ccSendData(java.lang.String aData)
          Sends a Data through the communications channel.
 CCMessage ccSendReceive(java.lang.String aData, long timeout)
          Sends a String to communication services, and waits for a Timeout to receive the data.
 java.lang.String getCcClosedEventName()
          Returns the value of the closed property.
 java.lang.String getCcDataReceivedEventName()
          Returns the value of the data property.
 java.lang.String getCcErrorReceivedEventName()
          Returns the value of the error property.
 java.lang.String getCcOpenedEventName()
          Returns the value of the opened property.
 java.lang.String getClientId()
          Returns the name of the clientId used by IMSTOC.
 int getCommitMode()
          Returns the name of the commitMode used by IMSTOC.
 java.lang.String getDatastoreName()
          Returns the name of the dataStoreName used by IMSTOC.
 java.lang.String getHostName()
          Returns the name of the hostName used by IMSTOC.
 boolean getInUse()
          Returns the value of the inUse property.
 java.lang.String getLTERM()
          Returns the name of the LTERM used by IMSTOC.
 java.lang.String getPassword()
          Returns the valueof the password used by IMSTOC user.
 int getPort()
          Returns the value of the port used by the ITOC to communicate with the IMS.
 int getReceiveOnlyTimeout()
          Returns the value of the receiveOnlyTimeout used by client.
 java.lang.String getSAFgroupName()
          Returns the name of the SAFgroupName used by OTMA.
 java.lang.String getSynchronizationLevel()
          Returns the value of the synchronizationLevel choiced by IMSTOC user.
 java.lang.String getTransaction()
          Returns the valueof the trans used by IMSTOC user.
 java.lang.String getUserId()
          Returns the value of the userId property.
 int getVersion()
          Returns the value of the Version property.
 java.lang.Object initializeFrom(Tag aTag)
          Initializes a ITOCConection object with the aTag attributes.
 void initInstance()
          Initiates all processes depending commit mode.
 boolean isAutomaticACK()
          Returns true if automaticACK property is enabled.
 boolean isConversationOn()
          Returns true if conversationOn property is enabled.
 boolean isFree()
          Returns true if ITOCConection instance is available.
 boolean isIsUnsolicitedThreadAlive()
          Returns true if isUnsolicitedThreadAlive property is enabled.
 boolean isMFSModNameRequested()
          Returns true if MFSModNameRequested property is enabled.
 boolean isOffline()
          Returns true if ITOCConection instance is not available.
 boolean isSendOnly()
          Returns true if sendOnly property is enabled.
 boolean isSynchronousMode()
          Returns true if synchronousMode property is enabled.
protected  ITOCMessage readData(long time)
          Read last message received from host.
protected  ITOCMessage receive(long time)
          Performs the receive method.
protected  void receiveData()
          Performs the receive method.Receives data from IMS.
protected  void receiveDeallocateReply()
          Receives deallocate reply from the IMS.
protected  void receiveNACKReply()
          Performs the receive method.Receives NACK reply from IMS.
protected  void receiveUnsolicited()
          Performs the receive method.Working in commit mode 0, receive unsolicited messages.
 void run()
          Run method.
 void send(java.lang.String aTransaction, Context aContext, FormatElement aFormat)
          Sends transaction to IMS.
 void send(java.lang.String aTransaction, Context aContext, java.lang.String aFormatName)
          Sends transaction to IMS.
 void send(java.lang.String aTransaction, java.lang.String aData)
          Sends transaction to IMS.
 void send(java.lang.String aTransaction, java.lang.String[] segments)
          Sends transaction to IMS.
 void sendACK()
          Sends ACKNOWLEDGE message to IMS when working in confirm mode.
protected  void sendAutoACK()
          Sends ACKNOWLEDGE message to IMS when working in confirm mode.
protected  void sendData(java.lang.String aData)
          Sends transaction data to IMS.
protected  void sendDeallocate()
          Sends deallocate request to the IMS.
protected  void sendHeader(java.lang.String aTransaction)
          Sends transaction header to IMS.
 void sendNACK()
          Sends NEGATIVE ACKNOWLEDGE message to IMS when working in confirm mode.
 void sendReceive(java.lang.String aTransaction, Context aContext, FormatElement aFormat, long timeout)
          Sends transaction to IMS and awaits for response.
 void sendReceive(java.lang.String aTransaction, Context aContext, java.lang.String aFormatName, long timeout)
          Sends transaction to IMS.
 ITOCMessage sendReceive(java.lang.String aTransaction, java.lang.String[] segments, long timeout)
          Sends transaction to IMS and awaits for response.
 ITOCMessage sendReceive(java.lang.String aTransaction, java.lang.String aData, long timeout)
          Sends transaction to IMS and awaits for response.
protected  void sendResumeTPipe()
          Sends RESUMETPIPE message to OTMA.
 void setAutomaticACK(boolean newAutomaticACK)
          Sets the value of the automaticACK property.
 void setClientId(java.lang.String newClientId)
          Sets the value of the clientId property.
 void setCommitMode(int newCommitMode)
          Sets the value of the commitMode property.
 void setDatastoreName(java.lang.String newDatastoreName)
          Sets the value of the datastoreName property.
 void setHostName(java.lang.String newHostName)
          Sets the value of the hostName property.
 void setInUse(boolean anInUse)
          Sets the inUse property (boolean) value.
 void setIsUnsolicitedThreadAlive(boolean newIsUnsolicitedThreadAlive)
          Sets the value of the isUnsolicitedThreadAlive property.
 void setLTERM(java.lang.String newLTERM)
          Sets the value of the LTERM property..
 void setMFSModNameRequested(boolean newMFSModNameRequested)
          Sets the value of the MFSModNameRequested property.
 void setPassword(java.lang.String newPassword)
          Sets the value of the password property.
 void setPort(int newPort)
          Sets the value of the port property.
 void setReceiveOnlyTimeout(int newReceiveOnlyTimeout)
          Sets the value of the receiveOnlyTimeout property.
 void setSAFgroupName(java.lang.String newSAFGroupName)
          Sets the value of the SAFgroupName property.
 void setSendOnly(boolean newSendOnly)
          Sets the value of the sendOnly property.
 void setSynchronizationLevel(java.lang.String newSynchronizationLevel)
          Sets the value of the synchronizationLevel property.
 void setSynchronousMode(boolean newSynchronousMode)
          Sets the value of the synchronousMode property.
 void setTransaction(java.lang.String transaction)
          Sets the value of the trans property.
 void setUserExit(java.lang.String newUserExit)
          Sets the value of the UserExit property.
 void setUserId(java.lang.String newUserId)
          Sets the value of the UserId property.
 void setVersion(int newVersion)
          Sets the value of the Version property.
 void startReceiveOnly()
          Working in commit mode=0, starts unsolicited thread.User is ready to receive data from IMS.
 void terminate()
          Terminates the conversation.
 java.lang.String toString()
          Returns a visual representation of this object.
 
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

nad

protected char nad

MaxSegs

public int MaxSegs

datalength

public int datalength

COMPID

public static final java.lang.String COMPID
The component id. Is used in the trace facilities.

UserExit

protected static java.lang.String UserExit

_CSMOKY

protected static final java.lang.String _CSMOKY

_REQSTS

protected static final java.lang.String _REQSTS

_REQMOD

protected static final java.lang.String _REQMOD
Constructor Detail

ITOCConnection

public ITOCConnection()
This constructor creates a ITOCConnection object.

ITOCConnection

public ITOCConnection(java.lang.String aName)
               throws java.io.IOException
This constructor creates a ITOCConnection object.
Parameters:
aName - java.lang.String
Throws:
java.io.IOException - .
Method Detail

ccClose

public void ccClose()
             throws DSECCException
Closes the communications channel. It returns control immediately.
Parameters:
aString - java.lang.String
Throws:
DSECCException - .

ccOpen

public void ccOpen()
            throws DSECCException
Opens the communications channel. It returns control immediately.
Throws:
DSECCException - .

ccReceiveData

public CCMessage ccReceiveData(long timeout)
                        throws DSECCException
Reads the data that has been received.If the data is not ready, it waits for the timeout.
Parameters:
aTimeout - long
Returns:
CCMessage. Message from IMS.
Throws:
DSECCException. -  

ccSendData

public void ccSendData(java.lang.String aData)
                throws DSECCException
Sends a Data through the communications channel. It returns control immediately. When a response is received, two events might be signaled: DataReceived event (in case of data received) or ErrorReceived(in case of error).
Parameters:
aString - java.lang.String
Throws:
DSECCException. -  

ccSendReceive

public CCMessage ccSendReceive(java.lang.String aData,
                               long timeout)
                        throws DSECCException
Sends a String to communication services, and waits for a Timeout to receive the data.
Parameters:
aString - java.lang.String
aTimeout - long
Throws:
DSECCException. -  

getCcClosedEventName

public java.lang.String getCcClosedEventName()
Returns the value of the closed property.
Returns:
java.lang.String - The value of closed event.

getCcDataReceivedEventName

public java.lang.String getCcDataReceivedEventName()
Returns the value of the data property.
Returns:
java.lang.String - The value of data event.

getCcErrorReceivedEventName

public java.lang.String getCcErrorReceivedEventName()
Returns the value of the error property.
Returns:
java.lang.String - The value of error event.

getCcOpenedEventName

public java.lang.String getCcOpenedEventName()
Returns the value of the opened property.
Returns:
java.lang.String - The value of opened event.

getClientId

public java.lang.String getClientId()
Returns the name of the clientId used by IMSTOC.
Returns:
java.lang.String - The current value of clientId.

getCommitMode

public int getCommitMode()
Returns the name of the commitMode used by IMSTOC.
Returns:
int - The current value of commitMode.

getDatastoreName

public java.lang.String getDatastoreName()
Returns the name of the dataStoreName used by IMSTOC.
Returns:
java.lang.String - The current value of dataStoreName.

getHostName

public java.lang.String getHostName()
Returns the name of the hostName used by IMSTOC.
Returns:
java.lang.String - The current value of hostName.

getInUse

public boolean getInUse()
Returns the value of the inUse property.

If ITOCConection instance is in use, this value must be true.

Returns:
boolean - The current value of inUse.

getLTERM

public java.lang.String getLTERM()
Returns the name of the LTERM used by IMSTOC.
Returns:
java.lang.String - The current value of LTERM.

getPassword

public java.lang.String getPassword()
Returns the valueof the password used by IMSTOC user.
Returns:
java.lang.String - The current value of password.

getPort

public int getPort()
Returns the value of the port used by the ITOC to communicate with the IMS.
Returns:
int - The current value of port.

getReceiveOnlyTimeout

public int getReceiveOnlyTimeout()
Returns the value of the receiveOnlyTimeout used by client.

This value is used when we are working on commit mode 0 and receiveonly protocol.

Returns:
int - The current value of receiveOnlyTimeou.

getSAFgroupName

public java.lang.String getSAFgroupName()
Returns the name of the SAFgroupName used by OTMA.
Returns:
java.lang.String - The current value of SAFgroupName.

getSynchronizationLevel

public java.lang.String getSynchronizationLevel()
Returns the value of the synchronizationLevel choiced by IMSTOC user.
Returns:
java.lang.String - The current value of synchronizationLevel.

getTransaction

public java.lang.String getTransaction()
Returns the valueof the trans used by IMSTOC user.
Returns:
java.lang.String - The current value of trans.

getUserId

public java.lang.String getUserId()
Returns the value of the userId property.
Returns:
java.lang.String - The current value of userId.

getVersion

public int getVersion()
Returns the value of the Version property.
Returns:
int - The current value of Version.

initializeFrom

public java.lang.Object initializeFrom(Tag aTag)
                                throws java.io.IOException,
                                       DSEException
Initializes a ITOCConection object with the aTag attributes.
Overrides:
initializeFrom in class Service
Parameters:
aTag - com.ibm.dse.base.Tag
Returns:
Object - An instance of ITOCConection.
Throws:
java.io.IOException. -  
DSEException - .

initInstance

public void initInstance()
                  throws DSECCException

Initiates all processes depending commit mode. Possibles values are:

Specified by:
initInstance in interface ITOCConnectionService
Throws:
DSEException - .

isAutomaticACK

public boolean isAutomaticACK()
Returns true if automaticACK property is enabled.
Returns:
boolean. The current value ofautomaticACK.

isConversationOn

public boolean isConversationOn()
Returns true if conversationOn property is enabled.
Returns:
boolean. The current value ofconversationOn.

isFree

public boolean isFree()
Returns true if ITOCConection instance is available.
Returns:
boolean. The current status of the current instance.

isIsUnsolicitedThreadAlive

public boolean isIsUnsolicitedThreadAlive()
Returns true if isUnsolicitedThreadAlive property is enabled.
Returns:
boolean. The current value ofisunsolicitedThreadAlive.

isMFSModNameRequested

public boolean isMFSModNameRequested()
Returns true if MFSModNameRequested property is enabled.
Returns:
boolean. The current value ofMFSModNameRequested.

isOffline

public boolean isOffline()
Returns true if ITOCConection instance is not available.
Returns:
boolean.

isSendOnly

public boolean isSendOnly()
Returns true if sendOnly property is enabled.

This property is used working on commit mode 0

Returns:
boolean. The current value ofsendOnly.

isSynchronousMode

public boolean isSynchronousMode()
Returns true if synchronousMode property is enabled.
Returns:
boolean. The current value ofsynchronousMode.

readData

protected ITOCMessage readData(long time)
Read last message received from host. If data not ready, returns null.
Parameters:
timeout - long. Is the maxmimum of milliseconds teh receiver will wait if there is not a message ready.
Returns:
itoc.ITOCMessage.Last message received from IMS if exists.

receive

protected ITOCMessage receive(long time)
                       throws java.lang.Exception
Performs the receive method.
Parameters:
long - time. Timeout specified by the application.
Returns:
ITOCMessage. Method returns null if timeout is reached.
Throws:
Exception. -  

receiveData

protected void receiveData()
                    throws java.lang.Exception
Performs the receive method.Receives data from IMS.
Throws:
Exception. -  

receiveDeallocateReply

protected void receiveDeallocateReply()
                               throws java.lang.Exception
Receives deallocate reply from the IMS.
Throws:
Exception. -  

receiveNACKReply

protected void receiveNACKReply()
                         throws java.lang.Exception
Performs the receive method.Receives NACK reply from IMS.
Throws:
Exception. -  

receiveUnsolicited

protected void receiveUnsolicited()
                           throws java.lang.Exception
Performs the receive method.Working in commit mode 0, receive unsolicited messages.
Throws:
Exception. -  

run

public void run()
Run method.
Specified by:
run in interface java.lang.Runnable

send

public void send(java.lang.String aTransaction,
                 java.lang.String[] segments)
          throws java.io.IOException,
                 java.lang.Exception
Sends transaction to IMS. First check socket state. Then sends header and an array of segments separately.
Specified by:
send in interface ITOCConnectionService
Parameters:
java.lang.String - aTransaction. Transaction code to be sent.
java.lang.String - segments. Segments array relating transaction.
Throws:
java.io.IOException. -  
java.lang.Exception. -  

send

public void send(java.lang.String aTransaction,
                 Context aContext,
                 FormatElement aFormat)
          throws DSEException,
                 java.io.IOException,
                 java.lang.Exception
Sends transaction to IMS. First check socket state. Then sends header and data separately.
Parameters:
java.lang.String - aTransaction. Transaction code to be sent.
aContext - com.ibm.dse.base.Context
aFormat - com.ibm.dse.base.FormatElement
Throws:
com.ibm.dse.base.DSEException. -  
java.io.IOException. -  
java.lang.Exception. -  

send

public void send(java.lang.String aTransaction,
                 Context aContext,
                 java.lang.String aFormatName)
          throws DSEException,
                 java.io.IOException,
                 java.lang.Exception
Sends transaction to IMS. First check socket state. Then sends header and data separately.
Parameters:
java.lang.String - aTransaction. Transaction code to be sent.
aContext - com.ibm.dse.base.Context
aFormatName - java.lang.String
Throws:
com.ibm.dse.base.DSEException. -  
java.io.IOException. -  
java.lang.Exception. -  

send

public void send(java.lang.String aTransaction,
                 java.lang.String aData)
          throws java.io.IOException,
                 java.lang.Exception
Sends transaction to IMS. First check socket state. Then sends header and data separately.
Specified by:
send in interface ITOCConnectionService
Parameters:
java.lang.String - aTransaction. Transaction code to be sent.
java.lang.String - aData. Segment data.
Throws:
java.io.IOException. -  
java.lang.Exception. -  

sendACK

public void sendACK()
             throws java.io.IOException,
                    java.lang.Exception
Sends ACKNOWLEDGE message to IMS when working in confirm mode.
Specified by:
sendACK in interface ITOCConnectionService
Throws:
java.io.IOException. -  

sendAutoACK

protected void sendAutoACK()
                    throws java.io.IOException
Sends ACKNOWLEDGE message to IMS when working in confirm mode.
Throws:
java.io.IOException. -  

sendData

protected void sendData(java.lang.String aData)
                 throws java.io.IOException
Sends transaction data to IMS.
Parameters:
java.lang.String - aData. Segment data.
Throws:
java.io.IOException. -  

sendDeallocate

protected void sendDeallocate()
                       throws java.io.IOException
Sends deallocate request to the IMS.
Throws:
java.io.IOException. -  

sendHeader

protected void sendHeader(java.lang.String aTransaction)
                   throws java.io.IOException
Sends transaction header to IMS.
Parameters:
java.lang.String - aTrasaction. Transaction code.
Throws:
java.io.IOException. -  

sendNACK

public void sendNACK()
              throws java.io.IOException
Sends NEGATIVE ACKNOWLEDGE message to IMS when working in confirm mode.
Specified by:
sendNACK in interface ITOCConnectionService
Throws:
java.io.IOException. -  

sendReceive

public ITOCMessage sendReceive(java.lang.String aTransaction,
                               java.lang.String[] segments,
                               long timeout)
                        throws java.io.IOException,
                               java.lang.Exception
Sends transaction to IMS and awaits for response.
Specified by:
sendReceive in interface ITOCConnectionService
Parameters:
aTransaction - java.lang.String
segments - array of Strings
timeout - long
Returns:
ITOCMessage
Throws:
java.lang.IOException. -  
java.lang.Exception. -  

sendReceive

public void sendReceive(java.lang.String aTransaction,
                        Context aContext,
                        FormatElement aFormat,
                        long timeout)
                 throws DSEException,
                        java.io.IOException,
                        java.lang.Exception
Sends transaction to IMS and awaits for response.
Parameters:
java.lang.String - aTransaction. Transaction code to be sent.
aContext - com.ibm.dse.base.Context
aFormat - com.ibm.dse.base.FormatElement
timeout - long
Throws:
com.ibm.dse.base.DSEException. -  
java.io.IOException. -  
java.lang.Exception. -  

sendReceive

public void sendReceive(java.lang.String aTransaction,
                        Context aContext,
                        java.lang.String aFormatName,
                        long timeout)
                 throws DSEException,
                        java.io.IOException,
                        java.lang.Exception
Sends transaction to IMS. First check socket state. Then sends header and data separately.
Parameters:
java.lang.String - aTransaction. Transaction code to be sent.
aContext - com.ibm.dse.base.Context
aFormatName - java.lang.String
timeout - long
Throws:
com.ibm.dse.base.DSEException. -  
java.io.IOException. -  
java.lang.Exception. -  

sendReceive

public ITOCMessage sendReceive(java.lang.String aTransaction,
                               java.lang.String aData,
                               long timeout)
                        throws java.io.IOException,
                               java.lang.Exception
Sends transaction to IMS and awaits for response.
Specified by:
sendReceive in interface ITOCConnectionService
Parameters:
aTransaction - java.lang.String
aData - java.lang.String
timeout - long
Returns:
ITOCMessage
Throws:
java.lang.IOException. -  
java.lang.Exception. -  

sendResumeTPipe

protected void sendResumeTPipe()
                        throws java.io.IOException
Sends RESUMETPIPE message to OTMA.
Throws:
java.io.IOException. -  

setAutomaticACK

public void setAutomaticACK(boolean newAutomaticACK)
Sets the value of the automaticACK property.
Parameters:
newAutomaticACK - boolean. The new value of the property.

setClientId

public void setClientId(java.lang.String newClientId)
Sets the value of the clientId property.
Parameters:
newClientId - java.lang.String The new value of the property.

setCommitMode

public void setCommitMode(int newCommitMode)
Sets the value of the commitMode property.
Parameters:
newCommitMode - int. The new value of the property.

setDatastoreName

public void setDatastoreName(java.lang.String newDatastoreName)
Sets the value of the datastoreName property.
Parameters:
newDatastoreName - int

setHostName

public void setHostName(java.lang.String newHostName)
Sets the value of the hostName property.
Parameters:
newHostName - java.lang.String

setInUse

public void setInUse(boolean anInUse)

Sets the inUse property (boolean) value.

Parameters:
anInUse - boolean.The new value for the property.
See Also:
getInUse()

setIsUnsolicitedThreadAlive

public void setIsUnsolicitedThreadAlive(boolean newIsUnsolicitedThreadAlive)
Sets the value of the isUnsolicitedThreadAlive property.
Parameters:
newIsUnsolicitedThreadAlive - boolean

setLTERM

public void setLTERM(java.lang.String newLTERM)
Sets the value of the LTERM property..
Parameters:
newLTERM - java.lang.String

setMFSModNameRequested

public void setMFSModNameRequested(boolean newMFSModNameRequested)
Sets the value of the MFSModNameRequested property.
Parameters:
newMFSModNameRequested - boolean

setPassword

public void setPassword(java.lang.String newPassword)
Sets the value of the password property.
Parameters:
newPassword - java.lang.String

setPort

public void setPort(int newPort)
Sets the value of the port property.
Parameters:
newPort - int

setReceiveOnlyTimeout

public void setReceiveOnlyTimeout(int newReceiveOnlyTimeout)
Sets the value of the receiveOnlyTimeout property.

Is used working on commit mode 0.

Parameters:
newReceiveOnlyTimeout - int

setSAFgroupName

public void setSAFgroupName(java.lang.String newSAFGroupName)
Sets the value of the SAFgroupName property.
Parameters:
newSAFGroupName - java.lang.String

setSendOnly

public void setSendOnly(boolean newSendOnly)
Sets the value of the sendOnly property.
Parameters:
newSendOnly - boolean

setSynchronizationLevel

public void setSynchronizationLevel(java.lang.String newSynchronizationLevel)
Sets the value of the synchronizationLevel property.
Parameters:
newSynchronizationLevel - java.lang.String

setSynchronousMode

public void setSynchronousMode(boolean newSynchronousMode)
Sets the value of the synchronousMode property.
Parameters:
newSynchronousMode - boolean

setTransaction

public final void setTransaction(java.lang.String transaction)
Sets the value of the trans property.
Parameters:
transaction - java.lang.String

setUserExit

public void setUserExit(java.lang.String newUserExit)
Sets the value of the UserExit property.
Specified by:
setUserExit in interface ITOCConnectionService
Parameters:
newUserExit - java.lang.String

setUserId

public void setUserId(java.lang.String newUserId)
Sets the value of the UserId property.
Parameters:
newUserId - java.lang.String

setVersion

public void setVersion(int newVersion)
Sets the value of the Version property.
Parameters:
newVersion - int

startReceiveOnly

public void startReceiveOnly()
Working in commit mode=0, starts unsolicited thread.User is ready to receive data from IMS.

terminate

public void terminate()
Terminates the conversation. This method terminates the internal thread and closes the conversation.
Specified by:
terminate in interface ITOCConnectionService
Overrides:
terminate in class Service

toString

public java.lang.String toString()
Returns a visual representation of this object.
Overrides:
toString in class Service
Returns:
java.lang.String - The object visual representation.