|
Sun Adapter for SNA LU62 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.stc.connector.snalu62.api.SNAConversationAttributes
public class SNAConversationAttributes
SNAConversationAttributes
class represents an SNA LU6.2
conversation context for SNA CPIC calls. It holds all the attributes--INPUT & OUTPUT--
parameters (also called supplied & returned parameters) that can be
referenced or changed by individual CPIC calls made from the
collaboration and can be accessed through the setter & getter
exposed as follows.
Notational Conventions for Call Parameters:
INPUT & OUTPUT parameters for each call are denoted by their pseudonyms, such as conversation_ID, return_code, and etc. Their meanings are assumed to be well-known in CPIC domain (refer to your SNA CPIC reference/manual).
All the supplied and returned parameters for the calls have their nodes in the OTD.
For each parameter, its pseudonym and its OTD node are placed side- -by-side for easy cross-referencing.
OTD node is denoted by a path pointing to the node with all the parent nodes up to the root of the OTD.
Example:
pseudonym:
conversation_state
OTD node:
[OTD].[CPICCalls].[ConversationAttributes].[ConvState]
SNAInterface
Field Summary | |
---|---|
static java.lang.String |
version
|
Constructor Summary | |
---|---|
SNAConversationAttributes(SNAInterface snaJNI)
Constructor of SNAConversationAttributes. |
Method Summary | |
---|---|
boolean |
convReturnCodeIs(int convReturnCode)
Test if conversation_return_code ([OTD].[CPICCalls].[ConversationAttributes].[ConvReturnCode]) equals convReturnCode . |
boolean |
convStateIs(int convState)
Test if conversation_state ([OTD].[CPICCalls].[ConversationAttributes].[ConvState]) equals convState . |
boolean |
convTypeIs(int convType)
Test if conversation_type ([OTD].[CPICCalls].[ConversationAttributes].[ConvType]) equals convType . |
boolean |
dataReceivedIs(int dataReceived)
Test if data_received ([OTD].[CPICCalls].[ConversationAttributes].[DataReceived]) equals dataReceived . |
boolean |
deallocTypeIs(int deallocType)
Test if deallocate_type ([OTD].[CPICCalls].[ConversationAttributes].[DeallocType]) equals deallocType . |
boolean |
errorDirectionIs(int errorDirection)
Test if error_direction ([OTD].[CPICCalls].[ConversationAttributes].[ErrorDirection]) equals errorDirection . |
boolean |
fillTypeIs(int fillType)
Test if fill (fill_type) ([OTD].[CPICCalls].[ConversationAttributes].[FillType]) equals fillType . |
int |
getConvReturnCode()
Getter of conversation_return_code ([OTD].[CPICCalls].[ConversationAttributes].[ConvReturnCode]). |
int |
getConvState()
Getter of conversation_state ([OTD].[CPICCalls].[ConversationAttributes].[ConvState]). |
int |
getConvType()
Getter of conversation_type ([OTD].[CPICCalls].[ConversationAttributes].[ConvType]). |
byte[] |
getDataIn()
Getter of DataIn ([OTD].[CPICCalls].[ConversationAttributes].[DataIn]). |
byte[] |
getDataOut()
Getter of DataOut ([OTD].[CPICCalls].[ConversationAttributes].[DataOut]). |
int |
getDataReceived()
Getter of data_received ([OTD].[CPICCalls].[ConversationAttributes].[DataReceived]). |
int |
getDeallocType()
Getter of deallocate_type ([OTD].[CPICCalls].[ConversationAttributes].[DeallocType]). |
int |
getErrorDirection()
Getter of error_direction ([OTD].[CPICCalls].[ConversationAttributes].[ErrorDirection]). |
int |
getFillType()
Getter of fill (fill type) ([OTD].[CPICCalls].[ConversationAttributes].[FillType]). |
java.lang.String |
getLocalTPName()
Getter of local_TP_Name ([OTD].[CPICCalls].[ConversationAttributes].[LocalTPName]) |
byte[] |
getLogData()
Getter of log data ([OTD].[CPICCalls].[ConversationAttributes].[LogData]). |
java.lang.String |
getModeName()
Getter of mode_name. |
java.lang.String |
getPartnerLUName()
Getter of Partner LU Name ([OTD].[CPICCalls].[ConversationAttributes].[PartnerLUName]). |
int |
getPrepareToReceiveType()
Getter of prepare_to_receive_type ([OTD].[CPICCalls].[ConversationAttributes].[PrepareToReceive]). |
int |
getProcessingMode()
Getter of processing_mode ([OTD].[CPICCalls].[ConversationAttributes].[ProcessingMode]). |
int |
getReceiveType()
Getter of receive_type ([OTD].[CPICCalls].[ConversationAttributes].[ReceiveType]). |
int |
getReq2SendReceived()
Getter of request_to_send_received ([OTD].[CPICCalls].[ConversationAttributes].[Req2SendReceived]). |
int |
getRequestedLength()
Getter of requested_length ([OTD].[CPICCalls].[ConversationAttributes].[RequestedLength]) which is the PacketSize of data the local program is to receive. |
int |
getReturnCode()
Getter of return_code ([OTD].[CPICCalls].[ConversationAttributes].[ReturnCode]). |
int |
getReturnControl()
Getter of return_control ([OTD].[CPICCalls].[ConversationAttributes].[ReturnControl]). |
int |
getSecurityType()
Getter of conversation_security_type ([OTD].[CPICCalls].[ConversationAttributes].[SecurityType]). |
java.lang.String |
getSecurityUserID()
Getter of security_user_ID ([OTD].[CPICCalls].[ConversationAttributes].[SecurityUserID]). |
int |
getSendType()
Getter of send_type ([OTD].[CPICCalls].[ConversationAttributes].[SendType]). |
int |
getStatusReceived()
Getter of status_received ([OTD].[CPICCalls].[ConversationAttributes].[StatusReceived]). |
java.lang.String |
getSymDestName()
Getter of sym_dest_name ([OTD].[CPICCalls].[ConversationAttributes].[SymDestName]) |
int |
getSyncLevel()
Getter of sync_level ([OTD].[CPICCalls].[ConversationAttributes].[SyncLevel]). |
boolean |
localTPNameEquals(java.lang.String localTPName)
Test if local_TP_Name ([OTD].[CPICCalls].[ConversationAttributes].[LocalTPName]) equals localTPName . |
boolean |
modeNameEquals(java.lang.String modeName)
Test if mode_name ([OTD].[CPICCalls].[ConversationAttributes].[ModeName]) equals modeName . |
boolean |
partnerLUNameEquals(java.lang.String partnerLUName)
Test if partner_LU_name ([OTD].[CPICCalls].[ConversationAttributes].[PartnerLUName]) equals partnerLUName . |
boolean |
prepareToReceiveTypeIs(int prepareToReceiveType)
Test if prepare_to_receive_type ([OTD].[CPICCalls].[ConversationAttributes].[PrepareToReceiveType]) equals prepareToReceiveType . |
boolean |
processingModeIs(int processingMode)
Test if processing_mode ([OTD].[CPICCalls].[ConversationAttributes].[ProcessingMode]) equals processingMode . |
boolean |
receiveTypeIs(int receiveType)
Test if receive_type ([OTD].[CPICCalls].[ConversationAttributes].[ReceiveType]) equals receiveType . |
boolean |
req2SendReceivedIs(int req2SendReceivedType)
Test if request_to_send_received ([OTD].[CPICCalls].[ConversationAttributes].[Req2SendReceivedType]) equals req2SendReceivedType . |
boolean |
requestedLengthIs(int requestedLength)
Test if requested_length ([OTD].[CPICCalls].[ConversationAttributes].[RequestedLength]) equals requestedLength . |
boolean |
returnCodeIs(int returnCode)
Test if return_code ([OTD].[CPICCalls].[ConversationAttributes].[ReturnCode]) equals returnCode . |
boolean |
returnControlIs(int returnControl)
Test if return_control ([OTD].[CPICCalls].[ConversationAttributes].[ReturnControl]) equals returnControl . |
boolean |
securityTypeIs(int securityType)
Test if conversation_security_type ([OTD].[CPICCalls].[ConversationAttributes].[SecurityType]) equals securityType . |
boolean |
securityUserIDEquals(java.lang.String securityUserID)
Test if security_user_ID ([OTD].[CPICCalls].[ConversationAttributes].[SecurityUserID]) equals securityUserID . |
boolean |
sendTypeIs(int sendType)
Test if send_type ([OTD].[CPICCalls].[ConversationAttributes].[SendType]) equals sendType . |
void |
setConvType(int convType)
Setter of conversation_type ([OTD].[CPICCalls].[ConversationAttributes].[ConvType]). |
void |
setDataOut(byte[] dataOut)
Setter of DataOut ([OTD].[CPICCalls].[ConversationAttributes].[DataOut]). |
void |
setDeallocType(int deallocType)
Setter of deallocate_type ([OTD].[CPICCalls].[ConversationAttributes].[DeallocType]). |
void |
setErrorDirection(int errorDirection)
Setter of error_direction ([OTD].[CPICCalls].[ConversationAttributes].[ErrorDirection]). |
void |
setFillType(int fillType)
Setter of fill (fill_type) ([OTD].[CPICCalls].[ConversationAttributes].[FillType]). |
void |
setLocalTPName(java.lang.String localTPName)
Setter of local_TP_Name ([OTD].[CPICCalls].[ConversationAttributes].[LocalTPName]). |
void |
setLogData(byte[] logData)
Setter of log data ([OTD].[CPICCalls].[ConversationAttributes].[LogData]). |
void |
setModeName(java.lang.String modeName)
Setter of mode_name ([OTD].[CPICCalls].[ConversationAttributes].[ModeName]) |
void |
setPartnerLUName(java.lang.String partnerLUName)
Setter of Partner LU Name ([OTD].[CPICCalls].[ConversationAttributes].[PartnerLUName]). |
void |
setPrepareToReceiveType(int prepareToReceiveType)
Setter of prepare_to_receive_type ([OTD].[CPICCalls].[ConversationAttributes].[PrepareToReceiveType]). |
void |
setProcessingMode(int processingMode)
Setter of processing_mode ([OTD].[CPICCalls].[ConversationAttributes].[ProcessingMode]). |
void |
setReceiveType(int receiveType)
Setter of receive_type ([OTD].[CPICCalls].[ConversationAttributes].[ReceiveType]). |
void |
setRequestedLength(int requestedLength)
Setter of requested_length ([OTD].[CPICCalls].[ConversationAttributes].[RequestedLength]) which is the PacketSize of data the local program is to receive. |
void |
setReturnControl(int returnControl)
Setter of return_control ([OTD].[CPICCalls].[ConversationAttributes].[ReturnControl]). |
void |
setSecurityPassword(java.lang.String securityPassword)
Setter of security_password ([OTD].[CPICCalls].[ConversationAttributes].[SecurityPassword]). |
void |
setSecurityType(int securityType)
Setter of conversation_security_type ([OTD].[CPICCalls].[ConversationAttributes].[SecurityType]). |
void |
setSecurityUserID(java.lang.String securityUserID)
Setter of security_user_ID ([OTD].[CPICCalls].[ConversationAttributes].[SecurityUserID]). |
void |
setSendType(int sendType)
Setter of send_type ([OTD].[CPICCalls].[ConversationAttributes].[SendType]). |
void |
setSymDestName(java.lang.String symDestName)
Setter of sym_dest_name ([OTD].[CPICCalls].[ConversationAttributes].[SymDestName]). |
void |
setSyncLevel(int syncLevel)
Setter of sync_level ([OTD].[CPICCalls].[ConversationAttributes].[SyncLevel]). |
boolean |
statusReceivedIs(int statusReceived)
Test if status_received ([OTD].[CPICCalls].[ConversationAttributes].[StatusReceived]) equals statusReceived . |
boolean |
symDestNameEquals(java.lang.String symDestName)
Test if sym_dest_name ([OTD].[CPICCalls].[ConversationAttributes].[SymDestName]) equals symDestName . |
boolean |
syncLevelIs(int syncLevel)
Test if sync_level ([OTD].[CPICCalls].[ConversationAttributes].[SyncLevel]) equals syncLevel . |
java.lang.String |
toString()
Returns a string representation with some conversation information. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String version
Constructor Detail |
---|
public SNAConversationAttributes(SNAInterface snaJNI)
snaJNI
- An instance of SNAInterfaceMethod Detail |
---|
public byte[] getDataOut()
SNAInterface.getDataOut()
public void setDataOut(byte[] dataOut) throws SNAApplicationException
dataOut
- the DataOut to be set
SNAApplicationException
- up on an errorSNAInterface.setDataOut(byte[])
public byte[] getDataIn()
SNAInterface.getDataIn()
public int getConvState()
SNAInterface.getLastState()
public boolean convStateIs(int convState)
convState
.
convState
- the conversation state to be compared with
SNAInterface.getLastState()
public int getConvReturnCode()
Note: ConvReturnCode is used after CPIC cmwait returns with CM_OK. The conversation return code is the return code for the CPIC call that triggered the cmwait return because of its completion.
SNAInterface.getConvReturnCode()
public boolean convReturnCodeIs(int convReturnCode)
convReturnCode
.
Note: ConvReturnCode is used after CPIC cmwait returns with CM_OK, the conversation return code is the return code for the CPIC call that triggered the cmwait return because of its completion.
convReturnCode
- the conversation return code to be compared to
SNAInterface.getConvReturnCode()
public int getConvType()
SNAInterface.getConvType()
public void setConvType(int convType) throws SNAApplicationException
convType
- the conversation type to be set
SNAApplicationException
- up on an errorSNAInterface.setConvType(int)
public boolean convTypeIs(int convType)
convType
.
convType
- the conversation type to be compared to
SNAInterface.getConvType()
public int getErrorDirection()
SNAInterface.getErrorDirection()
public void setErrorDirection(int errorDirection) throws SNAApplicationException
errorDirection
- the error direction to be set
SNAApplicationException
- up on an errorSNAInterface.setErrorDirection(int)
public boolean errorDirectionIs(int errorDirection)
errorDirection
.
errorDirection
- the error direction to be compared to
SNAInterface.getErrorDirection()
public int getSyncLevel()
SNAInterface.getSyncLevel()
public void setSyncLevel(int syncLevel) throws SNAApplicationException
syncLevel
- the sync level to be set
SNAApplicationException
- up on an errorSNAInterface.setSyncLevel(int)
public boolean syncLevelIs(int syncLevel)
syncLevel
.
syncLevel
- the sync level to be compared to
SNAInterface.getSyncLevel()
public int getFillType()
SNAInterface.getFillType()
public void setFillType(int fillType) throws SNAApplicationException
fillType
- the fill type to be set
SNAApplicationException
- up on an errorSNAInterface.setFillType(int)
public boolean fillTypeIs(int fillType)
fillType
.
fillType
- the fill type to be compared to
SNAInterface.getFillType()
public int getProcessingMode()
SNAInterface.getProcessingMode()
public void setProcessingMode(int processingMode) throws SNAApplicationException
processingMode
- the processing mode to be set
SNAApplicationException
- up on an errorSNAInterface.setProcessingMode(int)
public boolean processingModeIs(int processingMode)
processingMode
.
processingMode
- the processing mode to be compared to
SNAInterface.getProcessingMode()
public int getPrepareToReceiveType()
SNAInterface.getPrepareToReceiveType()
public void setPrepareToReceiveType(int prepareToReceiveType) throws SNAApplicationException
prepareToReceiveType
- the prepare to receive type to be set
SNAApplicationException
- up on an errorSNAInterface.setPrepareToReceiveType(int)
public boolean prepareToReceiveTypeIs(int prepareToReceiveType)
prepareToReceiveType
.
prepareToReceiveType
- the prepare to receive type to be
compared to
SNAInterface.getPrepareToReceiveType()
public int getReturnControl()
SNAInterface.getReturnControl()
public void setReturnControl(int returnControl) throws SNAApplicationException
returnControl
- the return control to be set
SNAApplicationException
- up on an errorSNAInterface.setReturnControl(int)
public boolean returnControlIs(int returnControl)
returnControl
.
returnControl
- the return control to be compared to
SNAInterface.getReturnControl()
public int getReceiveType()
SNAInterface.getReceiveType()
public void setReceiveType(int receiveType) throws SNAApplicationException
receiveType
- the receive type to be set
SNAApplicationException
- up on an errorSNAInterface.setReceiveType(int)
public boolean receiveTypeIs(int receiveType)
receiveType
.
receiveType
- the receive type to be compared to
SNAInterface.getReceiveType()
public int getSendType()
SNAInterface.getSendType()
public void setSendType(int sendType) throws SNAApplicationException
sendType
- the send type to be set
SNAApplicationException
- up on an errorSNAInterface.setSendType(int)
public boolean sendTypeIs(int sendType)
sendType
.
sendType
- the send type to be compared to
SNAInterface.getSendType()
public int getDeallocType()
SNAInterface.getDeallocTypeJ()
public void setDeallocType(int deallocType) throws SNAApplicationException
deallocType
- the DeallocType to be set
SNAApplicationException
- up on an errorSNAInterface.setDeallocTypeJ(int)
public boolean deallocTypeIs(int deallocType)
deallocType
.
deallocType
-
SNAInterface.getDeallocTypeJ()
public int getReq2SendReceived()
SNAInterface.getReq2SendReceived()
public boolean req2SendReceivedIs(int req2SendReceivedType)
req2SendReceivedType
.
req2SendReceivedType
- the Req2SendReceivedType to be compared with
SNAInterface.getReq2SendReceived()
public int getStatusReceived()
SNAInterface.getStatusReceived()
public boolean statusReceivedIs(int statusReceived)
statusReceived
.
Normally, called after a cmrcv() or recv() method call.
statusReceived
- the StatusReceived to be compared to
SNAInterface.getStatusReceived()
public int getDataReceived()
SNAInterface.getDataReceivedType()
public boolean dataReceivedIs(int dataReceived)
dataReceived
.
dataReceived
- the DataReceived to be compared to
SNAInterface.getDataReceivedType()
public int getReturnCode()
SNAInterface.getReturnCode()
public boolean returnCodeIs(int returnCode)
returnCode
.
returnCode
- the ReturnCode to be compared to
SNAInterface.getReturnCode()
public byte[] getLogData()
SNAInterface.getLogData()
public void setLogData(byte[] logData) throws SNAApplicationException
logData
- the LogData to be set
SNAApplicationException
- up on an errorSNAInterface.setLogData(byte[])
public java.lang.String getPartnerLUName()
SNAInterface.getPartnerLUName()
public void setPartnerLUName(java.lang.String partnerLUName) throws SNAApplicationException
partnerLUName
- the PartnerLUName to be set
SNAApplicationException
- up on an errorSNAInterface.setPartnerLUName(String)
public boolean partnerLUNameEquals(java.lang.String partnerLUName)
partnerLUName
.
partnerLUName
- the PartnerLUName to be compared to
SNAInterface.getPartnerLUName()
public java.lang.String getModeName()
SNAInterface.getModeName()
public void setModeName(java.lang.String modeName) throws SNAApplicationException
modeName
- the mode name to be set
SNAApplicationException
- up on an errorSNAInterface.setModeName(String)
public boolean modeNameEquals(java.lang.String modeName)
modeName
.
modeName
- the ModeName to be compared to
SNAInterface.getModeName()
public java.lang.String getSymDestName()
SNAInterface.getSymDestName()
public void setSymDestName(java.lang.String symDestName) throws SNAApplicationException
symDestName
- the SymDestName to be set
SNAApplicationException
- up on an errorSNAInterface.setSymDestName(String)
public boolean symDestNameEquals(java.lang.String symDestName)
symDestName
.
symDestName
- the SymDestName to be compared to
SNAInterface.getSymDestName()
public java.lang.String getLocalTPName()
SNAInterface.getLocalTPName()
public void setLocalTPName(java.lang.String localTPName) throws SNAApplicationException
localTPName
- the LocalTPName to be set
SNAApplicationException
- up on an errorSNAInterface.setLocalTPName(String)
public boolean localTPNameEquals(java.lang.String localTPName)
localTPName
.
localTPName
- the LocalTPName to be compared to
SNAInterface.getLocalTPName()
public java.lang.String getSecurityUserID()
SNAInterface.getSecurityUserID()
public void setSecurityUserID(java.lang.String securityUserID) throws SNAApplicationException
securityUserID
- the SecurityUserID to be set
SNAApplicationException
- up on an errorSNAInterface.setSecurityUserID(String)
public boolean securityUserIDEquals(java.lang.String securityUserID)
securityUserID
.
securityUserID
- the SecurityUserID to be compared to
SNAInterface.getSecurityUserID()
public void setSecurityPassword(java.lang.String securityPassword) throws SNAApplicationException
securityPassword
- the SecurityPassword to be set
SNAApplicationException
- up on an errorSNAInterface.setSecurityPassword(String)
public int getSecurityType()
SNAInterface.getSecurityType()
public void setSecurityType(int securityType) throws SNAApplicationException
securityType
- the SecurityType to be set
SNAApplicationException
- up on an errorSNAInterface.setSecurityType(int)
public boolean securityTypeIs(int securityType)
securityType
.
securityType
- the SecurityType to be compared to
SNAInterface.getSecurityType()
public int getRequestedLength()
SNAInterface.getPacketSize()
public void setRequestedLength(int requestedLength) throws SNAApplicationException
requestedLength
- the requested_length to be set
SNAApplicationException
- up on an errorSNAInterface.setPacketSize(int)
public boolean requestedLengthIs(int requestedLength)
requestedLength
.
requestedLength
- the RequestedLength to be compared to
SNAInterface.getPacketSize()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
Sun Adapter for SNA LU62 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |