|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Fields inherited from interface com.ibm.dse.services.comms.CommonCommunicationsService |
CLOSED,
DATA,
DATASENT,
ERROR,
OPENED,
RECEIVERC,
TIMEOUT |
Method Summary | |
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 |
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 |
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 |
establishConversation()
Establishes the conversation. |
void |
establishConversation(java.lang.String aTPName)
Establishes the conversation. |
void |
flush()
Sends the contents of the local LU's send buffer to the partner LU (and program). |
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 |
boolean |
getInUse()
Gets the inUse property (boolean) value. |
void |
initInstance()
Initiates all handlers that have a default treatment. |
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 aTimeout)
Returns the Lu62Message received. |
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 aString)
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 aString)
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. |
void |
setAutomaticConversationEstablishment(boolean anAutomaticConversationEstablishment)
Sets the automaticConversationEstablishment property (boolean) value. |
void |
setConfirmMode(boolean aConfirmMode)
Sets the confirmMode property (boolean) value. |
void |
setFlushMode(boolean aFlushMode)
Sets the flushMode property (boolean) value. |
void |
setInUse(boolean use)
Sets the inUse property (boolean) value. |
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 |
setSymbolicDestinationName(java.lang.String aSymbolicDestinationName)
Sets the symbolicDestinationName property (java.lang.String) value. |
void |
setSynchronousMode(boolean aSynchronousMode)
Sets the synchronousMode property (boolean) value. |
void |
setTpName(java.lang.String aTpName)
Sets the tpName property (java.lang.String) value. |
void |
terminate()
Terminates the conversation. |
Methods inherited from interface com.ibm.dse.services.comms.CommonCommunicationsService |
ccClose,
ccOpen,
ccReceiveData,
ccSendData,
ccSendReceive,
getCcClosedEventName,
getCcDataReceivedEventName,
getCcErrorReceivedEventName,
getCcOpenedEventName,
isFree,
isOffline |
Methods inherited from interface com.ibm.dse.base.Notifier |
addHandler,
getHandlersList,
getName,
removeHandler,
setName,
signalEvent,
signalEvent |
Field Detail |
public static final java.lang.String LU62_WRAPPER_DLL
public static final java.lang.String WINDOWS_NT
public static final java.lang.String IBM_AIX
public static final java.lang.String IBM_OS2
public static final java.lang.String MVS
public static final java.lang.String OUTGOING
public static final java.lang.String SDN
public static final java.lang.String INCOMING
public static final java.lang.String TPNAME
public static final java.lang.String LUNAME
public static final java.lang.String OPENED
public static final java.lang.String CLOSED
public static final java.lang.String ERROR
public static final java.lang.String RESET
public static final java.lang.String RESET_PENDING
public static final java.lang.String INITIALIZE
public static final java.lang.String SEND
public static final java.lang.String SEND_PENDING
public static final java.lang.String RECEIVE
public static final java.lang.String CONFIRM
public static final java.lang.String CONFIRM_SEND
public static final java.lang.String CONFIRM_DEALLOCATE
public static final java.lang.String CONVERSATION_ESTABLISHED
public static final java.lang.String CONVERSATION_NOT_ESTABLISHED
public static final java.lang.String CONVERSATION_DOWN
public static final java.lang.String CONVERSATION_CLOSED
public static final java.lang.String DATA
public static final java.lang.String DATA_CANCELLED
public static final java.lang.String ERROR_RECEIVED
public static final java.lang.String CONFIRMED_RECEIVED
public static final java.lang.String LISTEN
public static final java.lang.String DEALLOCATE_CONVERSATION
public static final java.lang.String ACCEPT_CONVERSATION
public static final java.lang.String CONFIRM_CONVERSATION
public static final java.lang.String ALLOCATEERROR
public static final java.lang.String REGISTERERROR
public static final java.lang.String SENDERROR
public static final java.lang.String COMPLETE
public static final java.lang.String SRTERROR
public static final java.lang.String INFO
public static final java.lang.String OSNAME
public static final boolean CM_BLOCKING
public static final boolean CM_NON_BLOCKING
public static final boolean CM_NONE
public static final boolean CM_CONFIRM
public static final boolean CM_RECEIVE_AND_WAIT
public static final boolean CM_RECEIVE_IMMEDIATE
public static final boolean CM_BASIC_CONVERSATION
public static final boolean CM_MAPPED_CONVERSATION
public static final int BUFFER_LENGTH
public static final int CM_BUFFER_DATA
public static final int CM_SEND_AND_FLUSH
public static final int CM_SEND_AND_CONFIRM
public static final int CM_SEND_AND_PREP_TO_RECEIVE
public static final int CM_SEND_AND_DEALLOCATE
public static final int CM_NO_STATUS_RECEIVED
public static final int CM_SEND_RECEIVED
public static final int CM_CONFIRM_RECEIVED
public static final int CM_CONFIRM_SEND_RECEIVED
public static final int CM_CONFIRM_DEALLOC_RECEIVED
public static final int CM_TAKE_COMMIT
public static final int CM_TAKE_COMMIT_SEND
public static final int CM_TAKE_COMMIT_DEALLOCATE
public static final int CM_TAKE_COMMIT_DATA_OK
public static final int CM_TAKE_COMMIT_SEND_DATA_OK
public static final int CM_TAKE_COMMIT_DEALLOC_DATA_OK
public static final int CM_PREPARE_OK
public static final int CM_JOIN_TRANSACTION
public static final int CM_NO_DATA_RECEIVED
public static final int CM_DATA_RECEIVED
public static final int CM_COMPLETE_DATA_RECEIVED
public static final int CM_INCOMPLETE_DATA_RECEIVED
public static final int CM_DEALLOCATE_SYNC_LEVEL
public static final int CM_DEALLOCATE_FLUSH
public static final int CM_DEALLOCATE_CONFIRM
public static final int CM_DEALLOCATE_ABEND
public static final int CM_OK
public static final int CM_ALLOCATE_FAILURE_NO_RETRY
public static final int CM_ALLOCATE_FAILURE_RETRY
public static final int CM_CONVERSATION_TYPE_MISMATCH
public static final int CM_PIP_NOT_SPECIFIED_CORRECTLY
public static final int CM_SECURITY_NOT_VALID
public static final int CM_SYNC_LVL_NOT_SUPPORTED_LU
public static final int CM_SYNC_LVL_NOT_SUPPORTED_SYS
public static final int CM_SYNC_LEVEL_NOT_SUPPORTED_LU
public static final int CM_SYNC_LVL_NOT_SUPPORTED_PGM
public static final int CM_SYNC_LEVEL_NOT_SUPPORTED_PGM
public static final int CM_TPN_NOT_RECOGNIZED
public static final int CM_TPN_NOT_RECOGNISED
public static final int CM_TP_NOT_AVAILABLE_NO_RETRY
public static final int CM_TP_NOT_AVAILABLE_RETRY
public static final int CM_DEALLOCATED_ABEND
public static final int CM_DEALLOCATED_NORMAL
public static final int CM_PARAMETER_ERROR
public static final int CM_PRODUCT_SPECIFIC_ERROR
public static final int CM_PROGRAM_ERROR_NO_TRUNC
public static final int CM_PROGRAM_ERROR_PURGING
public static final int CM_PROGRAM_ERROR_TRUNC
public static final int CM_PROGRAM_PARAMETER_CHECK
public static final int CM_PROGRAM_STATE_CHECK
public static final int CM_RESOURCE_FAILURE_NO_RETRY
public static final int CM_RESOURCE_FAILURE_RETRY
public static final int CM_UNSUCCESSFUL
public static final int CM_DEALLOCATED_ABEND_SVC
public static final int CM_DEALLOCATED_ABEND_TIMER
public static final int CM_SVC_ERROR_NO_TRUNC
public static final int CM_SVC_ERROR_PURGING
public static final int CM_SVC_ERROR_TRUNC
public static final int CM_OPERATION_INCOMPLETE
public static final int CM_SYSTEM_EVENT
public static final int CM_OPERATION_NOT_ACCEPTED
public static final int CM_CONVERSATION_ENDING
public static final int CM_SEND_RCV_MODE_NOT_SUPPORTED
public static final int CM_BUFFER_TOO_SMALL
public static final int CM_EXP_DATA_NOT_SUPPORTED
public static final int CM_DEALLOC_CONFIRM_REJECT
public static final int CM_ALLOCATION_ERROR
public static final int CM_RETRY_LIMIT_EXCEEDED
public static final int CM_NO_SECONDARY_INFORMATION
public static final int CM_SECURITY_NOT_SUPPORTED
public static final int CM_SECURITY_MUTUAL_FAILED
public static final int CM_CALL_NOT_SUPPORTED
public static final int CM_PARM_VALUE_NOT_SUPPORTED
public static final int CM_CONVERSATION_CANCELLED
public static final int CM_TAKE_BACKOUT
public static final int CM_DEALLOCATED_ABEND_BO
public static final int CM_DEALLOCATED_ABEND_SVC_BO
public static final int CM_DEALLOCATED_ABEND_TIMER_BO
public static final int CM_RESOURCE_FAIL_NO_RETRY_BO
public static final int CM_RESOURCE_FAILURE_RETRY_BO
public static final int CM_DEALLOCATED_NORMAL_BO
public static final int CM_CONV_DEALLOC_AFTER_SYNCPT
public static final int CM_INCLUDE_PARTNER_REJECT_BO
Method Detail |
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 cancelConversation() throws DSELu62InternalErrorException, DSELu62InvalidRequestException
public 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 establishConversation() 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
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 flush() throws DSELu62InternalErrorException, DSELu62InvalidRequestException
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 boolean getInUse()
Gets the inUse property (boolean) value. If true, if this instance is in use.
setInUse(boolean)
public void initInstance() throws DSELu62InternalErrorException, DSELu62InvalidRequestException
Initiates all handlers that have a default treatment. It will also create the listenThread.
public Lu62Message peekData()
public Lu62Message readData() throws DSEException
public Lu62Message readData(long aTimeout) 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 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 aString) 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.
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 aString) 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 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
public 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 setFlushMode(boolean aFlushMode)
Sets the flushMode property (boolean) value.
aFlushMode
- The new value for the property.#getFlushMode
public void setInUse(boolean use)
Sets the inUse property (boolean) value.
anInUse
- The new value for the property.getInUse()
public 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 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 setTpName(java.lang.String aTpName)
Sets the tpName property (java.lang.String) value.
aTpName
- The new value for the property.#getTpName
public void terminate() throws DSELu62InternalErrorException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |