|
|||||||||
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.Lu62Conversation
Field Summary | |
protected ConfirmedReceivedListener |
aConfirmedReceivedListener
|
protected ConversationClosedListener |
aConversationClosedListener
|
protected ConversationDownListener |
aConversationDownListener
|
protected ConversationEstablishedListener |
aConversationEstablishedListener
|
protected ConversationNotEstablishedListener |
aConversationNotEstablishedListener
|
protected DataCancelledListener |
aDataCancelledListener
|
protected DataListener |
aDataListener
|
protected ErrorReceivedListener |
aErrorReceivedListener
|
static java.lang.String |
COMPID
|
boolean |
listenThreadAlive
|
Semaphore |
receiveSem
|
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.comms.CommonCommunicationsService |
CLOSED,
DATA,
DATASENT,
ERROR,
OPENED,
RECEIVERC,
TIMEOUT |
Constructor Summary | |
Lu62Conversation()
This constructor creates a Lu62Conversation object. |
|
Lu62Conversation(java.lang.String aString)
This constructor creates a Lu62Conversation object with name aString . |
Method Summary | |
void |
acceptConversation()
Issued by the invoked program to accept an incoming conversation for the 390 system. |
void |
acceptIncoming()
Issued by the invoked program to accept an incoming conversation that has previously been initialized with initializeForIncoming. |
void |
addConfirmedReceivedListener(ConfirmedReceivedListener newListener)
Generated to support the ConfirmedReceived event. |
void |
addConversationClosedListener(ConversationClosedListener newListener)
Generated to support the ConversationClosed event. |
void |
addConversationDownListener(ConversationDownListener newListener)
Generated to support the ConversationDown event. |
void |
addConversationEstablishedListener(ConversationEstablishedListener newListener)
Generated to support the ConversationEstablished event. |
void |
addConversationNotEstablishedListener(ConversationNotEstablishedListener newListener)
Generated to support the ConversationNotEstablished event. |
void |
addDataCancelledListener(DataCancelledListener newListener)
Generated to support the DataCancelled event. |
void |
addDataListener(DataListener newListener)
Generated to support the Data event. |
void |
addErrorReceivedListener(ErrorReceivedListener newListener)
Generated to support the ErrorReceived event. |
void |
allocateConversation(java.lang.String aTPName)
Issued by the invoked program to accept an incoming conversation that has previously been initialized with initializeForIncoming. |
void |
cancelConversation()
Ends a specified conversation, cancels any incomplete operation (a previous call that returned with CM_OPERATION_INCOMPLETE) on this conversation, and ends the session used by the conversation. |
void |
ccClose()
Closes the communications channel. |
void |
ccOpen()
Opens the communications channel. |
CCMessage |
ccReceiveData(long aTimeout)
Reads the data that has been received. |
void |
ccSendData(java.lang.String aString)
Sends aData thought the communications chanel. |
CCMessage |
ccSendReceive(java.lang.String aString,
long aTimeout)
Sends aData thought the communications channel. |
void |
closeConversation()
Leaves the communications closed. |
void |
confirm()
Sends the contents of the local LU's send buffer and a confirmation request to the partner program. |
void |
deallocate()
De-allocates a conversation between two programs. |
Handler |
dispatchEvent(DSEEventObject anEvent)
Handles session events. |
void |
establishConversation()
Establishes the conversation. |
void |
establishConversation(java.lang.String aTPName)
Establishes the conversation. |
void |
finalize()
Clears all the atributes when there is no reference to this instance. |
protected void |
fireConfirmedReceived(ConfirmedReceivedEvent event)
Supports listener events. |
protected void |
fireConversationClosed(ConversationClosedEvent event)
Supports listener events. |
protected void |
fireConversationDown(ConversationDownEvent event)
Supports listener events. |
protected void |
fireConversationEstablished(ConversationEstablishedEvent event)
Supports listener events. |
protected void |
fireConversationNotEstablished(ConversationNotEstablishedEvent event)
Supports listener events. |
protected void |
fireData(DataEvent event)
Supports listener events. |
protected void |
fireDataCancelled(DataCancelledEvent event)
Supports listener events. |
protected void |
fireErrorReceived(ErrorReceivedEvent event)
Supports listener events. |
void |
flush()
Sends the contents of the local LU's send buffer to the partner LU (and program). |
boolean |
getAutomaticConversationEstablishment()
Gets the automaticConversationEstablishment property (boolean) value. |
java.lang.String |
getCcClosedEventName()
Returns the name of the closed event. |
java.lang.String |
getCcDataReceivedEventName()
Returns the name of the errorReceived event. |
java.lang.String |
getCcErrorReceivedEventName()
Returns the name of the errorReceived event. |
java.lang.String |
getCcOpenedEventName()
Returns the name of the opened event. |
boolean |
getConfirmMode()
Gets the confirmMode property (boolean) value. |
ConversationHandler |
getConversationHandler()
Gets the conversationHandler property (ConversationHandler) value. |
java.lang.String |
getConversationId()
Gets the conversationId property (char[]) value. |
java.lang.String |
getConversationStatus()
Gets the conversationStatus property (java.lang.String) value.It has the value of Conversation Status, the valid values are: RESET INITIALIZE SEND RECEIVE CONFIRM CONFIRM_SEND CONFIRM_DEALLOCATE |
int |
getEstablishConversationRetries()
Gets the establishConversationRetries property (int) value. |
boolean |
getFlushMode()
Gets the flushMode property (boolean) value. |
boolean |
getInUse()
Gets the inUse property (boolean) value. |
static java.lang.String |
getLevel()
This method returns the WrapperLU62 version. |
Lu62Message |
getLu62Message()
Gets the lu62Message property (Lu62Message) value. |
java.lang.String |
getLUName()
Gets the LUName property (java.lang.String) value. |
boolean |
getManageResponses()
Gets the manageResponses property (boolean) value. |
boolean |
getOutgoing()
Gets the outgoing property (boolean) value. |
java.lang.String |
getSymbolicDestinationName()
Gets the symbolicDestinationName property (java.lang.String) value. |
boolean |
getSynchronousMode()
Gets the synchronousMode property (boolean) value. |
int |
getTimeBetweenRetries()
Gets the timeBetweenRetries property (int) value. |
java.lang.String |
getTpName()
Gets the tpName property (java.lang.String) value. |
void |
handleEvent(java.lang.String anEventName,
java.lang.String aNotifierName,
Context aContext)
Handles events. |
void |
handleEvent(java.lang.String anEventName,
java.lang.String aNotifierName,
Context aContext,
java.lang.String aTID)
Handles events. |
protected void |
initializeCounter()
Sets the EstablishConnectionSessionCounter property to its default value. |
java.lang.Object |
initializeFrom(Tag aTag)
Actualizes all attributes that are defined in SGML files. |
void |
initInstance()
Initiates all handlers that have a default treatment. |
boolean |
isFree()
Returns if the session is free |
boolean |
isOffline()
Returns if the session is offline |
protected Lu62Message |
lu62SendReceive(java.lang.String aString,
long aTimeout)
Send aString to communcication services, and wait aTimeout to receive the data |
Lu62Message |
peekData()
Returns the Lu62Message received, without reading it. |
Lu62Message |
readData()
Returns the Lu62Message received. |
Lu62Message |
readData(Context aContext,
FormatElement aFormat)
|
Lu62Message |
readData(Context aContext,
java.lang.String aFormatName)
Returns the Lu62Message received. |
Lu62Message |
readData(long timeout)
Returns the Lu62Message received. |
void |
receive()
The receive call receives any data that is currently available from the partner program. |
Lu62Message |
receiveAndRequestToSend()
|
void |
removeConfirmedReceivedListener(ConfirmedReceivedListener newListener)
Generated to support the ConfirmedReceived event. |
void |
removeConversationClosedListener(ConversationClosedListener newListener)
Generated to support the ConversationClosed event. |
void |
removeConversationDownListener(ConversationDownListener newListener)
Generated to support the ConversationDown event. |
void |
removeConversationEstablishedListener(ConversationEstablishedListener newListener)
Generated to support the ConversationEstablished event. |
void |
removeConversationNotEstablishedListener(ConversationNotEstablishedListener newListener)
Generated to support the ConversationNotEstablished event. |
void |
removeDataCancelledListener(DataCancelledListener newListener)
Generated to support the DataCancelled event. |
void |
removeDataListener(DataListener newListener)
Generated to support the Data event. |
void |
removeErrorReceivedListener(ErrorReceivedListener newListener)
Generated to support the ErrorReceived event. |
void |
send(Context aContext,
FormatElement aFormat)
Puts data in the local LU's send buffer for transmission to the partner program. |
void |
send(Context aContext,
java.lang.String aFormatName)
Puts data in the local LU's send buffer for transmission to the partner program. |
void |
send(java.lang.String aMessage)
Puts data in the local LU's send buffer for transmission to the partner program. |
void |
sendAndPrepareToReceive(Context aContext,
FormatElement aFormat)
Causes data to be sent , with the SEND indicator to the remote LU, witch enters the local LU in RECEIVE state. |
void |
sendAndPrepareToReceive(Context aContext,
java.lang.String aFormatName)
Causes data to be sent , with the SEND indicator to the remote LU, witch enters the local LU in RECEIVE state. |
void |
sendAndPrepareToReceive(java.lang.String aMessage)
Causes data to be sent , with the SEND indicator to the remote LU, witch enters the local LU in RECEIVE state. |
void |
sendCancel(java.lang.String aMessage)
Cancels the current block of data by sending an error indication to the remote LU and keeping the local LU in a SEND state. |
void |
sendConfirmed()
Replies to a confirmation request from the partner program. |
void |
sendError()
Notifies the partner program that the local program has encountered an application-level error. |
protected CCMessage |
sendReceive(java.lang.String aString,
long aTimeout)
Send aString to communcication services, and wait aTimeout to receive the data |
void |
setAutomaticConversationEstablishment(boolean anAutomaticConversationEstablishment)
Sets the automaticConversationEstablishment property (boolean) value. |
void |
setConfirmMode(boolean aConfirmMode)
Sets the confirmMode property (boolean) value. |
void |
setEstablishConversationRetries(int establishConversationRetries)
Sets the establishConversationRetries property (int) value. |
void |
setFlushMode(boolean aFlushMode)
Sets the flushMode property (boolean) value. |
void |
setInUse(boolean anInUse)
Sets the inUse property (boolean) value. |
void |
setLU_Name(java.lang.String aLUName)
Issued by the invoking program to specify the local LU for a conversation. |
void |
setLUName(java.lang.String aLUName)
Issued by the invoking program to specify the local LU for a conversation. |
void |
setManageResponses(boolean aManageResponses)
Sets the manageResponses property (boolean) value. |
void |
setOutgoing(boolean aOutgoing)
Sets the outgoing property (boolean) value. |
void |
setPassword(java.lang.String aPass)
Issued by the invoking program to specify the password. |
void |
setSendType(int aSendType)
Specifies how data will be sent by the next send call. |
void |
setSymbolicDestinationName(java.lang.String aSymbolicDestinationName)
Sets the symbolicDestinationName property (java.lang.String) value. |
void |
setSynchronousMode(boolean aSynchronousMode)
Sets the synchronousMode property (boolean) value. |
void |
setTimeBetweenRetries(int timeBetweenRetries)
Sets the timeBetweenRetries property (int) value. |
void |
setTpName(java.lang.String aTpName)
Sets the tpName property (java.lang.String) value. |
void |
setUserId(java.lang.String aUserId)
Issued by the invoking program to specify the user ID. |
void |
stopHandlingEvent(java.lang.String anEventName,
java.lang.String aNotifierName,
Context aContext)
Stops event handling. |
void |
stopHandlingEvent(java.lang.String anEventName,
java.lang.String aNotifierName,
Context aContext,
java.lang.String aTID)
Stops event handling. |
void |
terminate()
Terminates the conversation. |
java.lang.String |
toString()
Returns a visual representation of this object. |
protected void |
unregister()
Unregisters conversations already registered for allocate. |
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,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final java.lang.String COMPID
public Semaphore receiveSem
public boolean listenThreadAlive
protected transient ConversationEstablishedListener aConversationEstablishedListener
protected transient ConversationNotEstablishedListener aConversationNotEstablishedListener
protected transient ConversationDownListener aConversationDownListener
protected transient ConversationClosedListener aConversationClosedListener
protected transient DataListener aDataListener
protected transient DataCancelledListener aDataCancelledListener
protected transient ErrorReceivedListener aErrorReceivedListener
protected transient ConfirmedReceivedListener aConfirmedReceivedListener
Constructor Detail |
public Lu62Conversation()
public Lu62Conversation(java.lang.String aString) throws java.io.IOException
aString
- java.lang.StringMethod Detail |
public void acceptConversation() throws DSELu62InternalErrorException, DSELu62InvalidRequestException
public void acceptIncoming() throws DSELu62InternalErrorException, DSELu62InvalidRequestException
public void addConfirmedReceivedListener(ConfirmedReceivedListener newListener)
newListener
- com.ibm.dse.services.comms.ConfirmedReceivedListenerpublic void addConversationClosedListener(ConversationClosedListener newListener)
newListener
- com.ibm.dse.services.comms.ConversationClosedListenerpublic void addConversationDownListener(ConversationDownListener newListener)
newListener
- com.ibm.dse.services.comms.ConversationDownListenerpublic void addConversationEstablishedListener(ConversationEstablishedListener newListener)
newListener
- com.ibm.dse.services.comms.ConversationEstablishedListenerpublic void addConversationNotEstablishedListener(ConversationNotEstablishedListener newListener)
newListener
- com.ibm.dse.services.comms.ConversationNotEstablishedListenerpublic void addDataCancelledListener(DataCancelledListener newListener)
newListener
- com.ibm.dse.services.comms.DataCancelledListenerpublic void addDataListener(DataListener newListener)
newListener
- com.ibm.dse.services.comms.DataListenerpublic void addErrorReceivedListener(ErrorReceivedListener newListener)
newListener
- com.ibm.dse.services.comms.ErrorReceivedListenerpublic void allocateConversation(java.lang.String aTPName) throws DSELu62InternalErrorException, DSELu62InvalidRequestException
public void cancelConversation() throws DSELu62InternalErrorException, DSELu62InvalidRequestException
public void ccClose() throws DSECCException
aString
- java.lang.Stringpublic void ccOpen() throws DSECCException
public CCMessage ccReceiveData(long aTimeout) throws DSECCException
aTimeout
- longpublic void ccSendData(java.lang.String aString) throws DSECCException
Sends aData thought the communications chanel. It returns control inmediately. When response is received from parner, two events migth be signaled, DataReceived event in case of data received or ErrorReceived, in case of error.
aString
- java.lang.Stringpublic CCMessage ccSendReceive(java.lang.String aString, long aTimeout)
aString
- java.lang.StringaTimeout
- longpublic void closeConversation() throws DSEException
Leaves the communications closed. To establish them again, the establishConversation method must be invoked.
public void confirm() throws DSELu62InternalErrorException, DSELu62InvalidRequestException
public void deallocate() throws DSELu62InternalErrorException
#CPIC_Deallocate
public Handler dispatchEvent(DSEEventObject anEvent)
event
- com.ibm.dse.base.DSEEventObjectpublic void establishConversation() throws DSELu62InternalErrorException, DSELu62InvalidRequestException
Establishes the conversation. Depending on whether the outgoing atribute is true or false, it has two different behaviours:
When Outgoing is true, establishConversation method, request to allocate a conversation using a session where the local LU is the contention winner (the one that can send data right after session setup - SEND state).
When Outgoing is false, establishConversation method requests to allocate a conversation using a contention looser session (the one that has to wait for data right after session setup - RECEIVE state).
As soon as, the conversation is allocated, the event conversationEstablished is signaled, and both partners can begin exchanging data on a half-duplex flip flop protocol
public void establishConversation(java.lang.String aTPName) throws DSEException
Establishes the conversation. Depending on whether the outgoing atribute is true or false, it has two different behaviours:
When Outgoing is true, establishConversation method, request to allocate a conversation using a session where the local LU is the contention winner (the one that can send data right after session setup - SEND state).
When Outgoing is false, establishConversation method requests to allocate a conversation using a contention looser session (the one that has to wait for data right after session setup - RECEIVE state).
As soon as, the conversation is allocated, the event conversationEstablished is signaled, and both partners can begin exchanging data on a half-duplex flip flop protocol
aTPName
- java.lang.Stringpublic void finalize()
Clears all the atributes when there is no reference to this instance.
protected void fireConfirmedReceived(ConfirmedReceivedEvent event)
event
- com.ibm.dse.services.comms.ConfirmedReceivedEventprotected void fireConversationClosed(ConversationClosedEvent event)
event
- com.ibm.dse.services.comms.ConversationClosedEventprotected void fireConversationDown(ConversationDownEvent event)
event
- com.ibm.dse.services.comms.ConversationDownEventprotected void fireConversationEstablished(ConversationEstablishedEvent event)
event
- com.ibm.dse.services.comms.ConversationEstablishedEventprotected void fireConversationNotEstablished(ConversationNotEstablishedEvent event)
event
- com.ibm.dse.services.comms.ConversationNotEstablishedEventprotected void fireData(DataEvent event)
event
- com.ibm.dse.services.comms.DataEventprotected void fireDataCancelled(DataCancelledEvent event)
event
- com.ibm.dse.services.comms.DataCancelledEventprotected void fireErrorReceived(ErrorReceivedEvent event)
event
- com.ibm.dse.services.comms.ErrorReceivedEventpublic void flush() throws DSELu62InternalErrorException, DSELu62InvalidRequestException
public boolean getAutomaticConversationEstablishment()
Gets the automaticConversationEstablishment property (boolean) value. If it is true, the conversation should be established at class instantiation.
setAutomaticConversationEstablishment(boolean)
public java.lang.String getCcClosedEventName()
public java.lang.String getCcDataReceivedEventName()
public java.lang.String getCcErrorReceivedEventName()
public java.lang.String getCcOpenedEventName()
public boolean getConfirmMode()
Gets the confirmMode property (boolean) value. If confirmMode is true, the data is sent immediately with a request for confirmation.
setConfirmMode(boolean)
public ConversationHandler getConversationHandler()
Gets the conversationHandler property (ConversationHandler) value. This attribute points to the default ConversationHandler class.
public java.lang.String getConversationId()
Gets the conversationId property (char[]) value. This is the identifier for the conversation. It is used by subsequent CPI-C calls.
#setConversationId
public java.lang.String getConversationStatus()
Gets the conversationStatus property (java.lang.String) value.It has the value of Conversation Status, the valid values are:
public int getEstablishConversationRetries()
setEstablishConversationRetries(int)
public boolean getFlushMode()
Gets the flushMode property (boolean) value. If flushMode is true, every time the application wants to send data to partner, this data is stored in buffers, which are automatically flushed, so that these data are inmediately sent to partner.
This method could be useful in some cases; however, it is not highly recommended, since it can affect the workstation and network performance.
setFlushMode(boolean)
public boolean getInUse()
Gets the inUse property (boolean) value. If true, if this instance is in use.
setInUse(boolean)
public static java.lang.String getLevel() throws DSEException
public Lu62Message getLu62Message()
Gets the lu62Message property (Lu62Message) value. This attribute points to the default Lu62Message class.
public java.lang.String getLUName()
Gets the LUName property (java.lang.String) value.
setLUName(java.lang.String)
public boolean getManageResponses()
Gets the manageResponses property (boolean) value. If manageResponses is true, the client application has to send a response to each message received. If manageResponses is false, the client application can not send responses to received messages.
setManageResponses(boolean)
public boolean getOutgoing()
Gets the outgoing property (boolean) value. If true, Lu62Conversation requests to allocate a conversation using a contention winner session (the one that has to wait for data right after session setup - RECEIVE state). If false ,Lu62Conversation requests to allocate a conversation using a contention losser session (the one that has to wait for data right after session setup - SEND state).
setOutgoing(boolean)
public java.lang.String getSymbolicDestinationName()
Gets the symbolicDestinationName property (java.lang.String) value.
This parameter specifies the symbolic destination name -the name associated with a side information entry loaded from the CS configuration file .
setSymbolicDestinationName(java.lang.String)
public boolean getSynchronousMode()
Gets the synchronousMode property (boolean) value. If synchronousMode is true, no event is signaled, neither java events.
setConfirmMode(boolean)
public int getTimeBetweenRetries()
setTimeBetweenRetries(int)
public java.lang.String getTpName()
Gets the tpName property (java.lang.String) value.
setTpName(java.lang.String)
public void handleEvent(java.lang.String anEventName, java.lang.String aNotifierName, Context aContext) throws DSEInvalidArgumentException
public void handleEvent(java.lang.String anEventName, java.lang.String aNotifierName, Context aContext, java.lang.String aTID) throws DSEInvalidArgumentException
protected void initializeCounter()
public java.lang.Object initializeFrom(Tag aTag) throws java.io.IOException, DSEException
aTag
- com.ibm.dse.base.Tagpublic void initInstance() throws DSELu62InternalErrorException, DSELu62InvalidRequestException
Initiates all handlers that have a default treatment. It will also create the listenThread.
public boolean isFree()
Returns if the session is free
public boolean isOffline()
Returns if the session is offline
protected Lu62Message lu62SendReceive(java.lang.String aString, long aTimeout)
aString
- java.lang.StringaTimeout
- longpublic Lu62Message peekData()
public Lu62Message readData() throws DSEException
public Lu62Message readData(long timeout) throws DSEException
public Lu62Message readData(Context aContext, FormatElement aFormat) throws DSEException
aContext
- com.ibm.dse.base.ContextaFormat
- com.ibm.dse.base.FormatElementpublic Lu62Message readData(Context aContext, java.lang.String aFormatName) throws DSEException
aContext
- com.ibm.dse.base.ContextaFormatName
- java.lang.Stringpublic void receive() throws DSEException
The receive call receives any data that is currently available from the partner program. This method should be call after a notification of data ready has been received.
#CPIC_Receive
public Lu62Message receiveAndRequestToSend() throws DSEException
public void removeConfirmedReceivedListener(ConfirmedReceivedListener newListener)
newListener
- com.ibm.dse.services.comms.ConfirmedReceivedListenerpublic void removeConversationClosedListener(ConversationClosedListener newListener)
newListener
- com.ibm.dse.services.comms.ConversationClosedListenerpublic void removeConversationDownListener(ConversationDownListener newListener)
newListener
- com.ibm.dse.services.comms.ConversationDownListenerpublic void removeConversationEstablishedListener(ConversationEstablishedListener newListener)
newListener
- com.ibm.dse.services.comms.ConversationEstablishedListenerpublic void removeConversationNotEstablishedListener(ConversationNotEstablishedListener newListener)
newListener
- com.ibm.dse.services.comms.ConversationNotEstablishedListenerpublic void removeDataCancelledListener(DataCancelledListener newListener)
newListener
- com.ibm.dse.services.comms.DataCancelledListenerpublic void removeDataListener(DataListener newListener)
newListener
- com.ibm.dse.services.comms.DataListenerpublic void removeErrorReceivedListener(ErrorReceivedListener newListener)
newListener
- com.ibm.dse.services.comms.ErrorReceivedListenerpublic void send(Context aContext, FormatElement aFormat) throws DSEException
Puts data in the local LU's send buffer for transmission to the partner program.
If flushMode enabled then the data is flushed at this moment.
If confirmMode data is flushed at this time and a confirmation is asked to the partner lu.
aContext
- com.ibm.dse.base.ContextaFormat
- com.ibm.dse.base.FormatElementpublic void send(Context aContext, java.lang.String aFormatName) throws DSEException
Puts data in the local LU's send buffer for transmission to the partner program.
If flushMode enabled then the data is flushed at this moment.
If confirmMode data is flushed at this time and a confirmation is asked to the partner lu.
aContext
- com.ibm.dse.base.ContextaFormatName
- java.lang.Stringpublic void send(java.lang.String aMessage) throws DSELu62InternalErrorException, DSELu62InvalidRequestException
Puts data in the local LU's send buffer for transmission to the partner program.
If flushMode enabled then the data is flushed at this moment.
If confirmMode data is flushed at this time and a confirmation is asked to the partner lu.
aMessage
- The message to send.public void sendAndPrepareToReceive(Context aContext, FormatElement aFormat) throws DSEException
Causes data to be sent , with the SEND indicator to the remote LU, witch enters the local LU in RECEIVE state.
aMessage
- The message to send.send(com.ibm.dse.base.Context, com.ibm.dse.base.FormatElement)
public void sendAndPrepareToReceive(Context aContext, java.lang.String aFormatName) throws DSEException
Causes data to be sent , with the SEND indicator to the remote LU, witch enters the local LU in RECEIVE state.
aMessage
- The message to send.send(com.ibm.dse.base.Context, com.ibm.dse.base.FormatElement)
public void sendAndPrepareToReceive(java.lang.String aMessage) throws DSELu62InternalErrorException, DSELu62InvalidRequestException
Causes data to be sent , with the SEND indicator to the remote LU, witch enters the local LU in RECEIVE state.
aMessage
- The message to send.send(com.ibm.dse.base.Context, com.ibm.dse.base.FormatElement)
public void sendCancel(java.lang.String aMessage) throws DSELu62InternalErrorException, DSELu62InvalidRequestException
aMessage
- The message to send.public void sendConfirmed() throws DSELu62InternalErrorException, DSELu62InvalidRequestException
Replies to a confirmation request from the partner program. It informs the partner program that the local program has not detected an error in the received data.
public void sendError() throws DSELu62InternalErrorException, DSELu62InvalidRequestException
protected CCMessage sendReceive(java.lang.String aString, long aTimeout)
aString
- java.lang.StringaTimeout
- longpublic void setAutomaticConversationEstablishment(boolean anAutomaticConversationEstablishment)
Sets the automaticConversationEstablishment property (boolean) value.
anAutomaticConversationEstablishment
- The new value for the property.getAutomaticConversationEstablishment()
public void setConfirmMode(boolean aConfirmMode)
Sets the confirmMode property (boolean) value.
aConfirmMode
- The new value for the property.getConfirmMode()
public void setEstablishConversationRetries(int establishConversationRetries)
establishSessionRetries
- The new value for the property.getEstablishConversationRetries()
public void setFlushMode(boolean aFlushMode)
Sets the flushMode property (boolean) value.
aFlushMode
- The new value for the property.getFlushMode()
public void setInUse(boolean anInUse)
Sets the inUse property (boolean) value.
anInUse
- The new value for the property.getInUse()
public void setLU_Name(java.lang.String aLUName) throws DSELu62InternalErrorException, DSELu62InvalidRequestException
Issued by the invoking program to specify the local LU for a conversation. initializeConversation call was issued.
This call cannot be issued after the allocate call has been issued.
aTPName
- java.lang.Stringpublic void setLUName(java.lang.String aLUName) throws DSELu62InternalErrorException, DSELu62InvalidRequestException
Issued by the invoking program to specify the local LU for a conversation. initializeConversation call was issued.
This call cannot be issued after the allocate call has been issued.
aTPName
- java.lang.Stringpublic void setManageResponses(boolean aManageResponses)
Sets the manageResponses property (boolean) value.
aManageResponses
- The new value for the property.getManageResponses()
public void setOutgoing(boolean aOutgoing)
Sets the outgoing property (boolean) value.
aOutgoing
- The new value for the property.getOutgoing()
public void setPassword(java.lang.String aPass)
Issued by the invoking program to specify the password. The partner LU uses this value and the user id to verify the identity of the end user that initiated the allocation request.
aUserId
- java.lang.Stringpublic void setSendType(int aSendType) throws DSELu62InternalErrorException, DSELu62InvalidRequestException
Specifies how data will be sent by the next send call. The default send type is CM_BUFFER_DATA, indicating that data only (and no control information) is to be sent.
aSendType
- (int).
the valid values are:
public void setSymbolicDestinationName(java.lang.String aSymbolicDestinationName)
Sets the symbolicDestinationName property (java.lang.String) value.
aSymbolicDestinationName
- The new value for the property.getSymbolicDestinationName()
public void setSynchronousMode(boolean aSynchronousMode)
Sets the synchronousMode property (boolean) value.
aSynchronousMode
- The new value for the property.getSynchronousMode()
public void setTimeBetweenRetries(int timeBetweenRetries)
timeBetweenRetries
- The new value for the property.getTimeBetweenRetries()
public void setTpName(java.lang.String aTpName)
Sets the tpName property (java.lang.String) value.
aTpName
- The new value for the property.getTpName()
public void setUserId(java.lang.String aUserId)
Issued by the invoking program to specify the user ID. The partner LU uses this value and the password to verify the identity of the end user that initiated the allocation request.
aUserId
- java.lang.Stringpublic void stopHandlingEvent(java.lang.String anEventName, java.lang.String aNotifierName, Context aContext) throws DSEHandlerNotFoundException, DSEInvalidArgumentException
public void stopHandlingEvent(java.lang.String anEventName, java.lang.String aNotifierName, Context aContext, java.lang.String aTID) throws DSEHandlerNotFoundException, DSEInvalidArgumentException
public void terminate() throws DSELu62InternalErrorException
public java.lang.String toString()
protected void unregister() throws DSELu62InternalErrorException
Unregisters conversations already registered for allocate.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |