|
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.samples.business.sna.lu0.host.DummyLu0SnaSession
Dummy Lu0 Sna Session class handles dummy EIS interaction through dummy SNA Lu0 protocol.
Field Summary | |
---|---|
protected java.io.BufferedReader |
bin
|
java.lang.String |
COMPID
|
protected java.lang.String |
dataToHost
|
protected java.lang.String |
dummyMessage
|
protected int |
IDLength
|
protected java.io.FileReader |
in
|
protected boolean |
isListenThreadAlive
|
protected java.lang.Thread |
listenThread
|
protected int |
receiveReturnCode
|
protected boolean |
synchronousMode
|
protected java.lang.String |
transactionFile
|
Constructor Summary | |
---|---|
DummyLu0SnaSession(DummyLu0SnaSessionConfigurationProperties configurationProperties)
DummyLu0SnaSession default constructor. |
Method Summary | |
---|---|
void |
addLu0SessionEventListener(DummyLu0SessionEventListener listener)
addLu0SessionEventListener method comment. |
void |
closeSession()
Closes the session. |
protected DummyLu0Message |
createWhatReceived()
Creates a whatReceived hashTable with its defaults. |
void |
establishSession()
Establish a session with the host. |
java.io.BufferedReader |
getBin()
Gets the TXIDLength property (boolean) value. |
protected java.lang.String |
getDummyTransaction()
|
int |
getIDLength()
Gets the TXIDLength property (boolean) value. |
java.util.Vector |
getMessageFromDummyHost(java.lang.String transactionName)
|
java.lang.String |
getReceivingChain()
Gets the receivingChain property (java.lang.String) value. |
java.lang.String |
getSessionStatus()
Gets the communication status value. |
boolean |
getSynchronousMode()
Gets the synchronousMode property (boolean) value. |
protected void |
initializeCounter()
Sets the EstablishSessionCounter property to its default value. |
void |
initInstance()
Initializes the instance. |
protected boolean |
isNullString(java.lang.String aString)
|
DummyLu0Message |
messageReceived()
|
DummyLu0Message |
receive(long aTimeout)
Receive with timeout. |
DummyLu0Message |
receiveData(long aTimeout)
Reads the data that has been received, if data not ready waits only for the timeout. |
void |
removeLu0SessionEventListener()
removeLu0SessionEventListener method comment. |
void |
run()
Implementing the Runnable interface |
void |
send(java.lang.String aString)
Sends the message. |
DummyLu0Message |
sendReceive(java.lang.String aString,
long aTimeout)
Send aString and wait aTimeout to receive the reply. |
protected void |
setCloseIssued(boolean closeIssued)
Sets the closeIssued property (boolean) value. |
protected void |
setDummyTransaction(java.lang.String aString)
|
void |
setIDLength()
This method was created in VisualAge. |
void |
setIDLength(int anIDLength)
Sets the IDLength property (int) value. |
protected void |
setOpenIssued(boolean openIssued)
Sets the openIssued property (boolean) value. |
void |
setSessionStatus(java.lang.String sessionStatus)
Sets the sessionStatus property (java.lang.String) value. |
void |
setSynchronousMode(boolean aSynchronousMode)
Sets the synchronousMode property (boolean) value. |
protected void |
setTermIssued(boolean termIssued)
Sets the termIssued property (boolean) value. |
void |
start()
Method to start listenThread |
void |
stop()
Method to stop listenThread |
void |
terminate()
Terminates the session. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.lang.String transactionFile
protected java.lang.String dataToHost
protected java.lang.String dummyMessage
protected int receiveReturnCode
protected java.lang.Thread listenThread
protected boolean isListenThreadAlive
protected boolean synchronousMode
protected int IDLength
protected java.io.FileReader in
protected java.io.BufferedReader bin
public java.lang.String COMPID
Constructor Detail |
public DummyLu0SnaSession(DummyLu0SnaSessionConfigurationProperties configurationProperties)
Method Detail |
public void addLu0SessionEventListener(DummyLu0SessionEventListener listener)
public void removeLu0SessionEventListener()
public DummyLu0Message receiveData(long aTimeout) throws DummyLu0Exception
Reads the data that has been received, if data not ready waits only for the timeout.
aTimeout
- long
DummyLu0Exception
public DummyLu0Message sendReceive(java.lang.String aString, long aTimeout) throws DummyLu0Exception
aString
- java.lang.StringaTimeout
- long
DummyLu0Exception
public void closeSession() throws DummyLu0Exception
DummyLu0Exception
protected void setCloseIssued(boolean closeIssued)
Sets the closeIssued property (boolean) value.
closeIssued
- The new value for the property.public java.lang.String getSessionStatus()
Gets the communication status value. Possible values are:
setSessionStatus(java.lang.String)
public java.lang.String getReceivingChain()
Gets the receivingChain property (java.lang.String) value.
receivingChain can have one of the following values:
public void setSessionStatus(java.lang.String sessionStatus)
Sets the sessionStatus property (java.lang.String) value.
sessionStatus
- The new value for the property.getSessionStatus()
protected DummyLu0Message createWhatReceived()
Creates a whatReceived hashTable with its defaults.
public void establishSession() throws DummyLu0Exception
DummyLu0Exception
protected void setOpenIssued(boolean openIssued)
Sets the openIssued property (boolean) value.
openIssued
- The new value for the property.public java.io.BufferedReader getBin() throws java.io.FileNotFoundException
Gets the TXIDLength property (boolean) value.
java.io.FileNotFoundException
protected java.lang.String getDummyTransaction()
public int getIDLength()
Gets the TXIDLength property (boolean) value.
public java.util.Vector getMessageFromDummyHost(java.lang.String transactionName) throws DummyLu0Exception
transactionName
- java.lang.String
DummyLu0Exception
public boolean getSynchronousMode()
Gets the synchronousMode property (boolean) value. If synchronousMode is true, no event is signaled, neither java events.
public void initInstance() throws DummyLu0Exception
com.ibm.dse.services.comms.DSELu0InternalErrorException.
com.ibm.dse.services.comms.DSELu0InvalidArgumentException
DummyLu0Exception
protected void initializeCounter()
protected final boolean isNullString(java.lang.String aString)
aString
- java.lang.String
public DummyLu0Message messageReceived() throws DummyLu0Exception
com.ibm.dse.services.DSELu0InternalErrorException.
DummyLu0Exception
public DummyLu0Message receive(long aTimeout) throws DummyLu0Exception
aTimeout
- long
DummyLu0Exception
public void run()
Implementing the Runnable interface
run
in interface java.lang.Runnable
public void send(java.lang.String aString) throws DummyLu0Exception
aString
- java.lang.String
com.ibm.dse.services.DSELu0InternalErrorException.
com.ibm.dse.services.DSELu0InvalidRequestException.
DummyLu0Exception
protected void setDummyTransaction(java.lang.String aString)
aString
- java.lang.String
public void setIDLength()
public void setIDLength(int anIDLength)
Sets the IDLength property (int) value.
anIDLength
- the length to use to retrieve the message from file.public void setSynchronousMode(boolean aSynchronousMode)
Sets the synchronousMode property (boolean) value.
aSynchronousMode
- The new value for the property.getSynchronousMode()
public void start()
Method to start listenThread
public void stop()
Method to stop listenThread
public void terminate() throws DummyLu0Exception
Terminates the session. This method should be sent before dereferencing Lu0SnaSession instance. It ends both LU-LU session and the SSCP-LU session, the sessionStatus will be RESET.
DummyLu0Exception
protected void setTermIssued(boolean termIssued)
Sets the termIssued property (boolean) value.
termIssued
- The new value for the property.public java.lang.String toString()
|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |