|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for Lu0SnaSession.
Fields inherited from interface com.ibm.dse.services.comms.CommonCommunicationsService |
CLOSED,
DATA,
DATASENT,
ERROR,
OPENED,
RECEIVERC,
TIMEOUT |
Method Summary | |
void |
addBIDReceivedListener(BIDReceivedListener newListener)
Generated to support the BIDReceived event. |
void |
addMessageCancelledListener(MessageCancelledListener newListener)
Generated to support the .MessageCancelled event. |
void |
addMessageListener(MessageListener newListener)
Generated to support the Message event. |
void |
addNegativeResponseListener(NegativeResponseListener newListener)
Generated to support the NegativeResponse event. |
void |
addPositiveResponseListener(PositiveResponseListener newListener)
Generated to support the PositiveResponse event. |
void |
addSessionClosedListener(SessionClosedListener newListener)
Generated to support the SessionClosed event. |
void |
addSessionDownListener(SessionDownListener newListener)
Generated to support the SessionDown event. |
void |
addSessionEstablishedListener(SessionEstablishedListener newListener)
Generated to support the SessionEstablished event. |
void |
addSessionNotEstablishedListener(SessionNotEstablishedListener newListener)
Generated to support the SessionNotEstablished event. |
void |
addUnsolicitedMessageCancelledListener(UnsolicitedMessageCancelledListener newListener)
Generated to support the UnsolicitedMessageCancelled event. |
void |
addUnsolicitedMessageListener(UnsolicitedMessageListener newListener)
Generated to support the UnsolicitedMessage event. |
void |
closeSession()
Closes the LU-LU end-to-end session. |
void |
establishSession()
Establishes the LU-LU session. |
boolean |
getAutomaticSessionEstablishment()
Gets the automaticSessionEstablishment property (java.lang.Boolean) value. |
boolean |
getBIDManaged()
Gets the BIDManaged property (boolean) value. |
boolean |
getChaining()
Returns the value of the chaining protocol. |
boolean |
getCompression()
Gets the compression property (boolean) value. |
java.lang.String |
getDefaultCodeSet()
Gets the defaultCodeSet property (java.lang.String) value. |
boolean |
getDefiniteResponseSolicited()
Returns the value of the definite response protocol. |
boolean |
getEndBracketSent()
Returns the value of the end bracket protocol. |
int |
getEstablishSessionRetries()
Gets the establishSessionRetries property (int) value. |
int |
getEstablishTimeout()
Gets the establishTimeout property (int) value. |
boolean |
getFmhHeaderSent()
Returns the value of the FMH sent protocol. |
boolean |
getFmhIncluded()
Returns the value of the FMH received protocol. |
java.lang.String |
getHostApplicationName()
Returns the host application name to which the session is going to be established. |
boolean |
getInUse()
Gets the in use. |
java.lang.String |
getLuName()
Gets the luName property (java.lang.String) value. |
boolean |
getManageResponses()
Returns the value of the response protocol. |
boolean |
getMessageToLu()
Returns the value message received. |
java.lang.String |
getSessionStatus()
Gets the communication status value. |
boolean |
getSynchronousMode()
Gets the synchronousMode property (boolean) value. |
int |
getTimeBetweenRetries()
Gets the timeBetweenRetries property (int) value. |
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 |
Lu0Message |
messageReceived()
Returns the last message received from host if there is one. |
Lu0Message |
messageReceived(Context aContext,
FormatElement aFormat)
Returns the last message received from host if there is one. |
Lu0Message |
messageReceived(Context aContext,
java.lang.String aFormatName)
Returns the last message received from host if there is one. |
Lu0Message |
peekMessageReceived()
Reads the last message received. |
Lu0Message |
receive(long aTimeout)
Returns the last message received as a Lu0SnaSession object.If there is no message, waits until the timeout expires. |
Lu0Message |
receive(long aTimeout,
Context aContext,
FormatElement aFormat)
Returns the last message received as a Lu0SnaSession object.If there is no message, waits until the timeout expires. |
Lu0Message |
receive(long aTimeout,
Context aContext,
java.lang.String aFormatName)
Returns the last message received as a Lu0SnaSession object.If there is no message, waits until the timeout expires. |
void |
removeBIDReceivedListener(BIDReceivedListener newListener)
Generated to support the BIDReceived event. |
void |
removeMessageCancelledListener(MessageCancelledListener newListener)
Generated to support the MessageCancelled event. |
void |
removeMessageListener(MessageListener newListener)
Generated to support the Message event. |
void |
removeNegativeResponseListener(NegativeResponseListener newListener)
Generated to support the NegativeResponse event. |
void |
removePositiveResponseListener(PositiveResponseListener newListener)
Generated to support the PositiveResponse event. |
void |
removeSessionClosedListener(SessionClosedListener newListener)
Generated to support the SessionClosed event. |
void |
removeSessionDownListener(SessionDownListener newListener)
Generated to support the SessionDown event. |
void |
removeSessionEstablishedListener(SessionEstablishedListener newListener)
Generated to support the SessionEstablished event. |
void |
removeSessionNotEstablishedListener(SessionNotEstablishedListener newListener)
Generated to support the SessionNotEstablished event. |
void |
removeUnsolicitedMessageCancelledListener(UnsolicitedMessageCancelledListener newListener)
Generated to support the UnsolicitedMessageCancelled event. |
void |
removeUnsolicitedMessageListener(UnsolicitedMessageListener newListener)
Generated to support the UnsolicitedMessage event. |
void |
send(Context aContext,
FormatElement aFormat)
Formats and sends the context (aContext) for aFormat. |
void |
send(Context aContext,
java.lang.String aFormatName)
Formats and sends the context (aContext) for aFormatName. |
void |
send(java.lang.String aDataString)
Sends a message unit. |
void |
sendCancel()
Sends a SNA Cancel command. |
void |
sendCommand(java.lang.String aCommand)
Sends the SNA aCommand, which must be a valid command (Lustat, Signal) in hexadecimal. |
void |
sendFic(Context aContext,
FormatElement aFormat)
Sends a message with the First In Chain (FIC) identifier. |
void |
sendFic(Context aContext,
java.lang.String aFormatName)
Sends a message with the First In Chain (FIC) identifier. |
void |
sendFic(java.lang.String aDataString)
Sends a message with the First In Chain (FIC) identifier. |
void |
sendLic(Context aContext,
FormatElement aFormat)
Sends a message with the Last In Chain (LIC) identifier. |
void |
sendLic(Context aContext,
java.lang.String aFormatName)
Sends a message with the Last In Chain (LIC) identifier. |
void |
sendLic(java.lang.String aDataString)
Sends a message with the Last In Chain (LIC) identifier. |
void |
sendMic(Context aContext,
FormatElement aFormat)
Sends a message with the Middle In Chain (MIC) identifier. |
void |
sendMic(Context aContext,
java.lang.String aFormatName)
Sends a message with the Middle In Chain (MIC) identifier. |
void |
sendMic(java.lang.String aDataString)
Sends a message with the Middle In Chain (MIC) identifier. |
void |
sendNegativeResponse(java.lang.String aSense)
Sends a negative response to the last message received. |
void |
sendPositiveResponse()
Sends a positive response to the last message received. |
void |
sendReadyToReceive()
Sends a SNA RTR command. |
void |
setAutomaticSessionEstablishment(boolean automaticSessionEstablishment)
Sets the automaticSessionEstablishment property (boolean) value. |
void |
setBIDManaged(boolean BIDManaged)
Sets the BIDManaged property (boolean) value. |
void |
setChaining(boolean chaining)
Sets the chaining protocol. |
void |
setCompression(boolean compression)
Sets the compression property (boolean) value. |
void |
setDefaultCodeSet(java.lang.String defaultCodeSet)
Sets the defaultCodeSet property (java.lang.String) value. |
void |
setDefiniteResponseSolicited(boolean definiteResponseSolicited)
Sets the definite response protocol to: true:messages include the definite response identifier when possible false:messages do not include the definite response identifier(the default) |
void |
setEndBracketSent(boolean endBracketSent)
Sets the end bracket protocol to : true:messages include the end bracket indicator or false:messages do not include the end bracket indicator (the default) |
void |
setEstablishSessionRetries(int establishSessionRetries)
Sets the establishSessionRetries property (int) value. |
void |
setEstablishTimeout(int establishTimeout)
Sets the timeBetweenRetries property (int) value. |
void |
setFmhHeaderSent(boolean fmhHeaderSent)
Sets the FMH sent protocol to : true:sent messages include the FM header or false:sent messages do not include the FM header(the default) |
void |
setFmhIncluded(boolean fmhIncluded)
Sets the FMH received protocol to : true:received messages include the FM header or false:received messages do not include the FM header(the default) |
void |
setHostApplicationName(java.lang.String hostApplicationName)
Sets the host application name. |
void |
setInUse(boolean anuse)
Sets the in use. |
void |
setLuName(java.lang.String luName)
Sets the luName property (java.lang.String) value. |
void |
setManageResponses(boolean manageResponses)
Sets the response protocol to : true:the application is responsible for sending a response to each chained message received; Positive responses (using sendPositiveResponse) has to be sent after a complete chain has been received. |
void |
setMessageToLu(boolean messageToLu)
Sets the type of the host partner session to: true:the destination is the remote Lu(the default) or false:the destination is the SSCP |
void |
setSynchronousMode(boolean asynchronousMode)
Sets the synchronousMode property (boolean) value. |
void |
setTimeBetweenRetries(int timeBetweenRetries)
Sets the timeBetweenRetries property (int) value. |
void |
terminate()
Terminates the session. |
Methods inherited from interface com.ibm.dse.services.comms.CommonCommunicationsService |
ccClose,
ccOpen,
ccReceiveData,
ccSendData,
ccSendReceive,
getCcClosedEventName,
getCcDataReceivedEventName,
getCcErrorReceivedEventName,
getCcOpenedEventName |
Methods inherited from interface com.ibm.dse.base.Notifier |
addHandler,
getHandlersList,
getName,
removeHandler,
setName,
signalEvent,
signalEvent |
Field Detail |
public static final java.lang.String LU0_WRAPPER_DLL
public static final java.lang.String LISTEN_THREAD
public static final java.lang.String DEFAULT_CODESET
public static final java.lang.String RESET
public static final java.lang.String ESTABLISHING
public static final java.lang.String SEND_IN_TR
public static final java.lang.String SEND_BET_TR
public static final java.lang.String RECEIVE
public static final java.lang.String CLOSING
public static final java.lang.String BETWEEN_BRACKETS
public static final java.lang.String IN_BRACKETS
public static final java.lang.String PENDING_BETWEEN_BRACKETS
public static final java.lang.String PENDING_IN_BRACKETS
public static final java.lang.String PENDING_TERM_S
public static final java.lang.String PENDING_TERM_R
public static final java.lang.String NO_RECEIVING
public static final java.lang.String DISCARDING
public static final java.lang.String UNSOLICITED
public static final java.lang.String SOLICITED
public static final java.lang.String SESSION_ESTABLISHED
public static final java.lang.String SESSION_NOT_ESTABLISHED
public static final java.lang.String MESSAGE
public static final java.lang.String MESSAGE_CANCELLED
public static final java.lang.String UNSOLICITED_MESSAGE
public static final java.lang.String UNSOLICITED_MESSAGE_CANCELLED
public static final java.lang.String BID_RECEIVED
public static final java.lang.String NEGATIVE_RESPONSE
public static final java.lang.String POSITIVE_RESPONSE
public static final java.lang.String SESSION_CLOSED
public static final java.lang.String SESSION_DOWN
public static final int LUA_OK
public static final int LUA_PARAMETER_CHECK
public static final int LUA_STATE_CHECK
public static final int LUA_SESSION_FAILURE
public static final int LUA_UNSUCCESSFUL
public static final int LUA_NEGATIVE_RSP
public static final int LUA_CANCELLED
public static final int LUA_IN_PROGRESS
public static final int LUA_STATUS
public static final int LUA_COMM_SUBSYSTEM_ABENDED
public static final int LUA_COMM_SUBSYSTEM_NOT_LOADED
public static final int LUA_INVALID_VERB_SEGMENT
public static final int LUA_UNEXPECTED_DOS_ERROR
public static final int LUA_STACK_TOO_SMALL
public static final int LUA_INVALID_VERB
public static final int LUA_SEC_RC_OK
public static final int LUA_INVALID_LUNAME
public static final int LUA_BAD_SESSION_ID
public static final int LUA_DATA_TRUNCATED
public static final int LUA_BAD_DATA_PTR
public static final int LUA_DATA_SEG_LENGTH_ERROR
public static final int LUA_RESERVED_FIELD_NOT_ZERO
public static final int LUA_INVALID_POST_HANDLE
public static final int LUA_PURGED
public static final int LUA_BID_VERB_SEG_ERROR
public static final int LUA_NO_PREVIOUS_BID_ENABLED
public static final int LUA_NO_DATA
public static final int LUA_BID_ALREADY_ENABLED
public static final int LUA_VERB_RECORD_SPANS_SEGMENTS
public static final int LUA_INVALID_FLOW
public static final int LUA_NOT_ACTIVE
public static final int LUA_VERB_LENGTH_INVALID
public static final int LUA_REQUIRED_FIELD_MISSING
public static final int LUA_READY
public static final int LUA_NOT_READY
public static final int LUA_INIT_COMPLETE
public static final int LUA_SESSION_END_REQUESTED
public static final int LUA_NO_SLI_SESSION
public static final int LUA_SESSION_ALREADY_OPEN
public static final int LUA_INVALID_OPEN_INIT_TYPE
public static final int LUA_INVALID_OPEN_DATA
public static final int LUA_UNEXPECTED_SNA_SEQUENCE
public static final int LUA_NEG_RSP_FROM_BIND_ROUTINE
public static final int LUA_NEG_RSP_FROM_CRV_ROUTINE
public static final int LUA_NEG_RSP_FROM_STSN_ROUTINE
public static final int LUA_CRV_ROUTINE_REQUIRED
public static final int LUA_STSN_ROUTINE_REQUIRED
public static final int LUA_INVALID_OPEN_ROUTINE_TYPE
public static final int LUA_MAX_NUMBER_OF_SENDS
public static final int LUA_SEND_ON_FLOW_PENDING
public static final int LUA_INVALID_MESSAGE_TYPE
public static final int LUA_RECEIVE_ON_FLOW_PENDING
public static final int LUA_DATA_LENGTH_ERROR
public static final int LUA_CLOSE_PENDING
public static final int LUA_NEGATIVE_RSP_CHASE
public static final int LUA_NEGATIVE_RSP_SHUTC
public static final int LUA_NEGATIVE_RSP_RSHUTD
public static final int LUA_NO_RECEIVE_TO_PURGE
public static final int LUA_CANCEL_COMMAND_RECEIVED
public static final int LUA_RUI_WRITE_FAILURE
public static final int LUA_INVALID_SESSION_TYPE
public static final int LUA_SLI_BID_PENDING
public static final int LUA_SLI_PURGE_PENDING
public static final int LUA_PROCEDURE_ERROR
public static final int LUA_INVALID_SLI_ENCR_OPTION
public static final int LUA_RECEIVED_UNBIND
public static final int LUA_RECEIVED_UNBIND_HOLD
public static final int LUA_RECEIVED_UNBIND_NORMAL
public static final int LUA_SLI_LOGIC_ERROR
public static final int LUA_TERMINATED
public static final int LUA_NO_RUI_SESSION
public static final int LUA_DUPLICATE_RUI_INIT
public static final int LUA_INVALID_PROCESS
public static final int LUA_API_MODE_CHANGE
public static final int LUA_COMMAND_COUNT_ERROR
public static final int LUA_NO_READ_TO_PURGE
public static final int LUA_MULTIPLE_WRITE_FLOWS
public static final int LUA_DUPLICATE_READ_FLOW
public static final int LUA_DUPLICATE_WRITE_FLOW
public static final int LUA_LINK_NOT_STARTED
public static final int LUA_INVALID_ADAPTER
public static final int LUA_ENCR_DECR_LOAD_ERROR
public static final int LUA_ENCR_DECR_PROC_ERROR
public static final int LUA_INVALID_PUNAME
public static final int LUA_INVALID_LUNUMBER
public static final int LUA_INVALID_FORMAT
public static final int LUA_DUPLICATE_RUI_REINIT
public static final int LUA_REINIT_INVALID
public static final int LUA_LINK_NOT_STARTED_RETRY
public static final int LUA_NEG_RSP_FROM_SDT_ROUTINE
public static final int LUA_NEG_NOTIFY_RSP
public static final int LUA_RUI_LOGIC_ERROR
public static final int LUA_COBOL_NOT_SUPPORTED
public static final int LUA_LU_INOPERATIVE
public static final int LUA_UNAUTHORIZED_ACCESS
public static final int LUA_NON_UNIQ_ID
public static final int LUA_NON_UNIQ_NAU_AD
public static final int LUA_INV_NAU_ADDR
public static final int LUA_INV_ADPT_NUM
public static final int LUA_RESOURCE_NOT_AVAILABLE
public static final int LUA_SESSION_LIMIT_EXCEEDED
public static final int LUA_SLU_SESSION_LIMIT_EXCEEDED
public static final int LUA_MODE_INCONSISTENCY
public static final int LUA_BRACKET_RACE_ERROR
public static final int LUA_INSUFFICIENT_RESOURCES
public static final int LUA_BB_REJECT_NO_RTR
public static final int LUA_BB_REJECT_RTR
public static final int LUA_RECEIVER_IN_TRANSMIT_MODE
public static final int LUA_REQUEST_NOT_EXECUTABLE
public static final int LUA_INVALID_SESSION_PARAMETERS
public static final int LUA_UNIT_OF_WORK_ABORTED
public static final int LUA_FM_FUNCTION_NOT_SUPPORTED
public static final int LUA_LU_COMPONENT_DISCONNECTED
public static final int LUA_INVALID_PARAMETER_FLAGS
public static final int LUA_INVALID_PARAMETER
public static final int LUA_NEGOTIABLE_BIND_ERROR
public static final int LUA_BIND_FM_PROFILE_ERROR
public static final int LUA_BIND_TS_PROFILE_ERROR
public static final int LUA_BIND_LU_TYPE_ERROR
public static final int LUA_CRYPTOGRAPHY_INOPERATIVE
public static final int LUA_REQ_RESOURCES_NOT_AVAIL
public static final int LUA_SSCP_LU_SESSION_NOT_ACTIVE
public static final int LUA_SSCP_PLU_SESS_NOT_ACTIVE
public static final int LUA_SSCP_SLU_SESS_INACT
public static final int LUA_SYNC_EVENT_RESPONSE
public static final int LUA_REC_CORR_TABLE_FULL
public static final int LUA_SEND_CORR_TABLE_FULL
public static final int LUA_SESSION_SERVICE_PATH_ERROR
public static final int LUA_RU_DATA_ERROR
public static final int LUA_RU_LENGTH_ERROR
public static final int LUA_FUNCTION_NOT_SUPPORTED
public static final int LUA_HDX_BRACKET_STATE_ERROR
public static final int LUA_RESPONSE_ALREADY_SENT
public static final int LUA_EXR_SENSE_INCORRECT
public static final int LUA_RESPONSE_OUT_OF_ORDER
public static final int LUA_CHASE_RESPONSE_REQUIRED
public static final int LUA_CATEGORY_NOT_SUPPORTED
public static final int LUA_INCORRECT_SEQUENCE_NUMBER
public static final int LUA_CHAINING_ERROR
public static final int LUA_BRACKET
public static final int LUA_DIRECTION
public static final int LUA_DATA_TRAFFIC_RESET
public static final int LUA_DATA_TRAFFIC_QUIESCED
public static final int LUA_DATA_TRAFFIC_NOT_RESET
public static final int LUA_NO_BEGIN_BRACKET
public static final int LUA_SC_PROTOCOL_VIOLATION
public static final int LUA_IMMEDIATE_REQ_MODE_ERROR
public static final int LUA_QUEUED_RESPONSE_ERROR
public static final int LUA_ERP_SYNC_EVENT_ERROR
public static final int LUA_RSP_BEFORE_SENDING_REQ
public static final int LUA_RSP_CORRELATION_ERROR
public static final int LUA_RSP_PROTOCOL_ERROR
public static final int LUA_INVALID_SC_OR_NC_RH
public static final int LUA_BB_NOT_ALLOWED
public static final int LUA_EB_NOT_ALLOWED
public static final int LUA_EXCEPTION_RSP_NOT_ALLOWED
public static final int LUA_DEFINITE_RSP_NOT_ALLOWED
public static final int LUA_PACING_NOT_SUPPORTED
public static final int LUA_CD_NOT_ALLOWED
public static final int LUA_NO_RESPONSE_NOT_ALLOWED
public static final int LUA_CHAINING_NOT_SUPPORTED
public static final int LUA_BRACKETS_NOT_SUPPORTED
public static final int LUA_CD_NOT_SUPPORTED
public static final int LUA_INCORRECT_USE_OF_FI
public static final int LUA_ALTERNATE_CODE_NOT_SUPPORT
public static final int LUA_INCORRECT_RU_CATEGORY
public static final int LUA_INCORRECT_REQUEST_CODE
public static final int LUA_INCORRECT_SPEC_OF_SDI_RTI
public static final int LUA_INCORRECT_DR1I_DR2I_ERI
public static final int LUA_INCORRECT_USE_OF_QRI
public static final int LUA_INCORRECT_USE_OF_EDI
public static final int LUA_INCORRECT_USE_OF_PDI
public static final int LUA_NAU_INOPERATIVE
public static final int LUA_NO_SESSION
public static final char LUA_RH_FMD
public static final char LUA_RH_NC
public static final char LUA_RH_DFC
public static final char LUA_RH_SC
public static final int LUA_MESSAGE_TYPE_LU_DATA
public static final int LUA_MESSAGE_TYPE_SSCP_DATA
public static final int LUA_MESSAGE_TYPE_RSP
public static final int LUA_MESSAGE_TYPE_PASSTHRU
public static final int LUA_MESSAGE_TYPE_BID
public static final int LUA_MESSAGE_TYPE_BIND
public static final int LUA_MESSAGE_TYPE_BIS
public static final int LUA_MESSAGE_TYPE_CANCEL
public static final int LUA_MESSAGE_TYPE_CHASE
public static final int LUA_MESSAGE_TYPE_CLEAR
public static final int LUA_MESSAGE_TYPE_CRV
public static final int LUA_MESSAGE_TYPE_LUSTAT_LU
public static final int LUA_MESSAGE_TYPE_LUSTAT_SSCP
public static final int LUA_MESSAGE_TYPE_QC
public static final int LUA_MESSAGE_TYPE_QEC
public static final int LUA_MESSAGE_TYPE_RELQ
public static final int LUA_MESSAGE_TYPE_RQR
public static final int LUA_MESSAGE_TYPE_RTR
public static final int LUA_MESSAGE_TYPE_SBI
public static final int LUA_MESSAGE_TYPE_SHUTD
public static final int LUA_MESSAGE_TYPE_SIGNAL
public static final int LUA_MESSAGE_TYPE_SDT
public static final int LUA_MESSAGE_TYPE_STSN
public static final int LUA_MESSAGE_TYPE_UNBIND
public static final char MAXRU
Method Detail |
public void addBIDReceivedListener(BIDReceivedListener newListener)
newListener
- com.ibm.dse.services.comms.BIDReceivedListenerpublic void addMessageCancelledListener(MessageCancelledListener newListener)
newListener
- com.ibm.dse.services.comms.MessageCancelledListenerpublic void addMessageListener(MessageListener newListener)
newListener
- com.ibm.dse.services.comms.MessageListenerpublic void addNegativeResponseListener(NegativeResponseListener newListener)
newListener
- com.ibm.dse.services.comms.NegativeResponseListenerpublic void addPositiveResponseListener(PositiveResponseListener newListener)
newListener
- com.ibm.dse.services.comms.PositiveResponseListenerpublic void addSessionClosedListener(SessionClosedListener newListener)
newListener
- com.ibm.dse.services.comms.SessionClosedListenerpublic void addSessionDownListener(SessionDownListener newListener)
newListener
- com.ibm.dse.services.comms.SessionDownListenerpublic void addSessionEstablishedListener(SessionEstablishedListener newListener)
newListener
- com.ibm.dse.services.comms.SessionEstablishedListenerpublic void addSessionNotEstablishedListener(SessionNotEstablishedListener newListener)
newListener
- com.ibm.dse.services.comms.SessionNotEstablishedListenerpublic void addUnsolicitedMessageCancelledListener(UnsolicitedMessageCancelledListener newListener)
newListener
- com.ibm.dse.services.comms.UnsolicitedMessageCancelledListenerpublic void addUnsolicitedMessageListener(UnsolicitedMessageListener newListener)
newListener
- com.ibm.dse.services.comms.UnsolicitedMessageListenerpublic void closeSession() throws DSELu0InternalErrorException
Closes the LU-LU end-to-end session. The establishSession method is used to establish the session again. Lu0SnaSession send a TERMSELF message to close the session with the host application program. The host answers this call with UNBIND message, at this moment event sessionClosed is signaled.
public void establishSession() throws DSELu0InternalErrorException
Establishes the LU-LU session. Lu0SnaSession sends an INITSELF SNA command to initiate session with HostApplication name data , which is specified when the instance is created in the externalizer. When SDT arrives SessionEstablished event is signaled. If the SSCP sends a NSPE command to the secondary Lu then the event SessionNotEstablished is notified.
public boolean getAutomaticSessionEstablishment()
Gets the automaticSessionEstablishment property (java.lang.Boolean) value.
setAutomaticSessionEstablishment(boolean)
public boolean getBIDManaged()
Gets the BIDManaged property (boolean) value.
setBIDManaged(boolean)
public boolean getChaining()
Returns the value of the chaining protocol. If chaining is true, the messages received are complete chains. If chaining is false, the messages are received as they are sent by the host (FIC,MIC,LIC or OIC). The default value is false.
setChaining(boolean)
public boolean getCompression()
setCompression(boolean)
public java.lang.String getDefaultCodeSet()
setDefaultCodeSet(java.lang.String)
public boolean getDefiniteResponseSolicited()
Returns the value of the definite response protocol. If the value is true ,messages are sent with a Definite Response (if BIND allows it). If the value is false and if BIND specifies definite or exception, messages are sent with an exception response. The default value is false.
setDefiniteResponseSolicited(boolean)
public boolean getEndBracketSent()
Returns the value of the end bracket protocol. If the value is true, each message sent ends brackets. If the value is false, the messages sent do not have end brackets. The default value is false.
setEndBracketSent(boolean)
public int getEstablishSessionRetries()
setEstablishSessionRetries(int)
public int getEstablishTimeout()
setEstablishTimeout(int)
public boolean getFmhHeaderSent()
Returns the value of the FMH sent protocol. . If the value is true, the message sent includes an FM Header. The default value is false.
setFmhHeaderSent(boolean)
public boolean getFmhIncluded()
Returns the value of the FMH received protocol. If value is true messages received with FMH preserve it. If value is false, FMH is removed from messages received. Default value is false.
setFmhIncluded(boolean)
public java.lang.String getHostApplicationName()
setHostApplicationName(java.lang.String)
public boolean getInUse()
Gets the in use.
public java.lang.String getLuName()
Gets the luName property (java.lang.String) value.
setLuName(java.lang.String)
public boolean getManageResponses()
Returns the value of the response protocol. If the value is true, the application must send the sendNegativeResponse or sendPositiveResponse after receiving each chain. If the value is false, sendPositiveResponse is sent internally if it is needed. The default value is false.
setManageResponses(boolean)
public boolean getMessageToLu()
Returns the value message received. If the value is true, the next message is sent to the LU-LU session. If the value is false, the message is sent to the SSCP-LU session.
setMessageToLu(boolean)
public java.lang.String getSessionStatus()
Gets the communication status value. Possible values are:
#setSessionStatus
public boolean getSynchronousMode()
setSynchronousMode(boolean)
public int getTimeBetweenRetries()
setTimeBetweenRetries(int)
public void initInstance() throws DSELu0InternalErrorException, DSEInvalidArgumentException
public boolean isFree()
Returns if the session is free
public boolean isOffline()
Returns if the session is offline
public Lu0Message messageReceived() throws DSELu0InternalErrorException
Returns the last message received from host if there is one.
public Lu0Message messageReceived(Context aContext, FormatElement aFormat) throws DSELu0InternalErrorException
Returns the last message received from host if there is one.
aContext
- com.ibm.dse.base.ContextaFormat
- com.ibm.dse.base.FormatElementpublic Lu0Message messageReceived(Context aContext, java.lang.String aFormatName) throws DSELu0InternalErrorException
Returns the last message received from host if there is one.
aContext
- com.ibm.dse.base.ContextaFormatName
- java.lang.Stringpublic Lu0Message peekMessageReceived() throws DSELu0InternalErrorException
Reads the last message received. The message is not removed from the messages queue.
Return a Lu0Message if there is a message ready, null if there is no message ready.
Fails if, after receiving an RU of a multiRu chain (chaining = false), the host has cancelled the complete chain. After receiving a message, listenThread is NOT signaled.
This method should be received using the messageReceived method, otherwise no more data is received from the host.
public Lu0Message receive(long aTimeout) throws DSELu0InternalErrorException
Returns the last message received as a Lu0SnaSession object.If there is no message, waits until the timeout expires. In this case, an exception is raised.
aTimeOut
- intpublic Lu0Message receive(long aTimeout, Context aContext, FormatElement aFormat) throws DSELu0InternalErrorException
Returns the last message received as a Lu0SnaSession object.If there is no message, waits until the timeout expires. In this case, an exception is raised.
aTimeout
- longaContext
- com.ibm.dse.base.ContextaFormat
- com.ibm.dse.base.FormatElementpublic Lu0Message receive(long aTimeout, Context aContext, java.lang.String aFormatName) throws DSELu0InternalErrorException
Returns the last message received as a Lu0SnaSession object.If there is no message, waits until the timeout expires. In this case, an exception is raised.
aTimeout
- longaContext
- com.ibm.dse.base.ContextaFormatName
- java.lang.Stringpublic void removeBIDReceivedListener(BIDReceivedListener newListener)
newListener
- com.ibm.dse.services.comms.BIDReceivedListenerpublic void removeMessageCancelledListener(MessageCancelledListener newListener)
newListener
- com.ibm.dse.services.comms.MessageCancelledListenerpublic void removeMessageListener(MessageListener newListener)
newListener
- com.ibm.dse.services.comms.MessageListenerpublic void removeNegativeResponseListener(NegativeResponseListener newListener)
newListener
- com.ibm.dse.services.comms.NegativeResponseListenerpublic void removePositiveResponseListener(PositiveResponseListener newListener)
newListener
- com.ibm.dse.services.comms.PositiveResponseListenerpublic void removeSessionClosedListener(SessionClosedListener newListener)
newListener
- com.ibm.dse.services.comms.SessionClosedListenerpublic void removeSessionDownListener(SessionDownListener newListener)
newListener
- com.ibm.dse.services.comms.SessionDownListenerpublic void removeSessionEstablishedListener(SessionEstablishedListener newListener)
newListener
- com.ibm.dse.services.comms.SessionEstablishedListenerpublic void removeSessionNotEstablishedListener(SessionNotEstablishedListener newListener)
newListener
- com.ibm.dse.services.comms.SessionNotEstablishedListenerpublic void removeUnsolicitedMessageCancelledListener(UnsolicitedMessageCancelledListener newListener)
newListener
- com.ibm.dse.services.comms.UnsolicitedMessageCancelledListenerpublic void removeUnsolicitedMessageListener(UnsolicitedMessageListener newListener)
newListener
- com.ibm.dse.services.comms.UnsolicitedMessageListenerpublic void send(Context aContext, FormatElement aFormat) throws DSELu0InternalErrorException, DSELu0InvalidRequestException
Formats and sends the context (aContext) for aFormat.
aContext
- com.ibm.dse.base.ContextaFormat
- com.ibm.dse.base.FormatElementpublic void send(Context aContext, java.lang.String aFormatName) throws DSELu0InternalErrorException, DSELu0InvalidRequestException
Formats and sends the context (aContext) for aFormatName.
aContext
- com.ibm.dse.base.ContextaFormatName
- java.lang.Stringpublic void send(java.lang.String aDataString) throws DSELu0InvalidRequestException, DSELu0InternalErrorException
Sends a message unit. If the length of the message is longer than the inbound RU size, it is broken into smaller RUs. This is transparent to the application which only sees the message as Only In Chain (OIC).
aString
- java.lang.String
aString is the formatted data that will be sent to host. If aString length is longer than the maximum inbound RU size, it has to be segmented into smaller RUs.
Fails if:
public void sendCancel() throws DSELu0InvalidRequestException, DSELu0InternalErrorException
Sends a SNA Cancel command.
public void sendCommand(java.lang.String aCommand) throws DSELu0InvalidRequestException, DSELu0InternalErrorException
Sends the SNA aCommand, which must be a valid command (Lustat, Signal) in hexadecimal.
aCommand
- java.lang.Stringpublic void sendFic(Context aContext, FormatElement aFormat) throws DSEException
Sends a message with the First In Chain (FIC) identifier.
aContext
- com.ibm.dse.base.ContextaFormat
- com.ibm.dse.base.FormatElementpublic void sendFic(Context aContext, java.lang.String aFormatName) throws DSEException
Sends a message with the First In Chain (FIC) identifier.
aContext
- com.ibm.dse.base.ContextaFormatName
- java.lang.Stringpublic void sendFic(java.lang.String aDataString) throws DSELu0InvalidRequestException, DSELu0InternalErrorException
Sends a message with the First In Chain (FIC) identifier.
aString is the formatted data that will be sent to the host. This data is sent as First In Chain.
aString length must be smaller than the MAXIMUM inbound RU size.
Fails if:
aString
- java.lang.Stringpublic void sendLic(Context aContext, FormatElement aFormat) throws DSEException
Sends a message with the Last In Chain (LIC) identifier.
aContext
- com.ibm.dse.base.ContextaFormat
- com.ibm.dse.base.FormatElementpublic void sendLic(Context aContext, java.lang.String aFormatName) throws DSEException
Sends a message with the Last In Chain (LIC) identifier.
aContext
- com.ibm.dse.base.ContextaFormatName
- java.lang.Stringpublic void sendLic(java.lang.String aDataString) throws DSELu0InvalidRequestException, DSELu0InternalErrorException
Sends a message with the Last In Chain (LIC) identifier.
aDataString
- java.lang.Stringpublic void sendMic(Context aContext, FormatElement aFormat) throws DSEException
Sends a message with the Middle In Chain (MIC) identifier.
aContext
- com.ibm.dse.base.ContextaFormat
- com.ibm.dse.base.FormatElementpublic void sendMic(Context aContext, java.lang.String aFormatName) throws DSEException
Sends a message with the Middle In Chain (MIC) identifier.
aContext
- com.ibm.dse.base.ContextaFormatName
- java.lang.Stringpublic void sendMic(java.lang.String aDataString) throws DSELu0InvalidRequestException, DSELu0InternalErrorException
Sends a message with the Middle In Chain (MIC) identifier.
aDataString
- java.lang.Stringpublic void sendNegativeResponse(java.lang.String aSense) throws DSELu0InvalidRequestException, DSELu0InternalErrorException
Sends a negative response to the last message received. aSense is expected to be a valid SNA sense code in hexadecimal.
aSense
- java.lang.Stringpublic void sendPositiveResponse() throws DSELu0InvalidRequestException, DSELu0InternalErrorException
Sends a positive response to the last message received.
aSense
- java.lang.Stringpublic void sendReadyToReceive() throws DSELu0InvalidRequestException, DSELu0InternalErrorException
Sends a SNA RTR command. It is sent when the BID is managed by the application and it is ready to receive an unsolicited message previously denied.
public void setAutomaticSessionEstablishment(boolean automaticSessionEstablishment)
Sets the automaticSessionEstablishment property (boolean) value.
automaticSessionEstablishment
- The new value for the property.getAutomaticSessionEstablishment()
public void setBIDManaged(boolean BIDManaged)
Sets the BIDManaged property (boolean) value.
BIDManaged
- The new value for the property.getBIDManaged()
public void setChaining(boolean chaining)
Sets the chaining protocol.
chaining
- The new value for the property.getChaining()
public void setCompression(boolean compression)
compression
- The new value for the property.getCompression()
public void setDefaultCodeSet(java.lang.String defaultCodeSet)
defaultCodeSet
- The new value for the property.getDefaultCodeSet()
public void setDefiniteResponseSolicited(boolean definiteResponseSolicited)
Sets the definite response protocol to:
definiteResponseSolicited
- The new value for the property.getDefiniteResponseSolicited()
public void setEndBracketSent(boolean endBracketSent)
Sets the end bracket protocol to :
endBracketSent
- The new value for the property.getEndBracketSent()
public void setEstablishSessionRetries(int establishSessionRetries)
establishSessionRetries
- The new value for the property.getEstablishSessionRetries()
public void setEstablishTimeout(int establishTimeout)
timeBetweenRetries
- The new value for the property.getTimeBetweenRetries()
public void setFmhHeaderSent(boolean fmhHeaderSent)
Sets the FMH sent protocol to :
fmhHeaderSent
- The new value for the property.getFmhHeaderSent()
public void setFmhIncluded(boolean fmhIncluded)
Sets the FMH received protocol to :
fmhIncluded
- The new value for the property.getFmhIncluded()
public void setHostApplicationName(java.lang.String hostApplicationName)
Sets the host application name.
hostApplicationName
- The new value for the property.getHostApplicationName()
public void setInUse(boolean anuse)
Sets the in use.
anuse
- booleanpublic void setLuName(java.lang.String luName)
Sets the luName property (java.lang.String) value.
luName
- The new value for the property.getLuName()
public void setManageResponses(boolean manageResponses)
Sets the response protocol to :
manageResponses
- The new value for the property.getManageResponses()
public void setMessageToLu(boolean messageToLu)
Sets the type of the host partner session to:
messageToLu
- The new value for the property.getMessageToLu()
public void setSynchronousMode(boolean asynchronousMode)
Sets the synchronousMode property (boolean) value.
synchronousMode
- The new value for the property.getSynchronousMode()
public void setTimeBetweenRetries(int timeBetweenRetries)
Sets the timeBetweenRetries property (int) value.
timeBetweenRetries
- The new value for the property.getTimeBetweenRetries()
public void terminate() throws DSELu0InternalErrorException
Terminates the session. This method should be sent before de-referencing an Lu0SnaSession instance. It ends both the LU-LU session and the SSCP-LU session. The sessionStatus will be RESET.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |