Object model » History » Version 31

Version 30 (Madars Vitolins, 06/05/2018 08:44 AM) → Version 31/34 (Madars Vitolins, 06/05/2018 08:44 AM)

h1. Object model

h2. Package/Namespace

|Go|Java|C#|Platform Script|
|atmi|org.endurox|Endurox.Atmi|N/A|

h2. Constants
...

h2. ATMI Exception Object

Exception object holds the error code and message. Exception object shall have an method (static) to instantiate the error.

|Go|C#|Java, Platform Script|
|ATMIError|ATMIException|AtmiException|

For inherited languages, the for each error code there must be own exception class.

|C|C#, Java, Platform Script|
|TPEABORT|AtmiTPEABORTException|
|TPEBADDESC|AtmiTPEBADDESCException|
|TPEBLOCK|AtmiTPEBLOCKException|
|TPEINVAL|AtmiTPEINVALException|
|TPELIMIT|AtmiTPELIMITException|
|TPENOENT|AtmiTPENOENTException|
|TPEOS|AtmiTPEOSException|
|TPEPERM|AtmiTPEPERMException|
|TPEPROTO|AtmiTPEPROTOException|
|TPESVCERR|AtmiTPESVCERRException|
|TPESVCFAIL|AtmiTPESVCFAILException|
|TPESYSTEM|AtmiTPESYSTEMException|
|TPETIME|AtmiTPETIMEException|
|TPETRAN|AtmiTPETRANException|
|TPGOTSIG|AtmiTPGOTSIGException|
|TPERMERR|AtmiTPERMERRException|
|TPEITYPE|AtmiTPEITYPEException|
|TPEOTYPE|AtmiTPEOTYPEException|
|TPERELEASE|AtmiTPERELEASEException|
|TPEHAZARD|AtmiTPEHAZARDException|
|TPEHEURISTIC|AtmiTPEHEURISTICException|
|TPEEVENT|AtmiTPEEVENTException|
|TPEMATCH|AtmiTPEMATCHException|
|TPEDIAGNOSTIC|AtmiTPEDIAGNOSTICException|
|TPEMIB|AtmiTPEMIBException|
|TPERFU26|AtmiTPERFU26Exception|
|TPERFU27|AtmiTPERFU27Exception|
|TPERFU28|AtmiTPERFU28Exception|
|TPERFU29|AtmiTPERFU29Exception|
|TPINITFAIL|AtmiTPINITFAILException|

h2. ATMI Context Object

This section list ATMI Context object properties for different languages

|Go|Java|C#|Platform Script|
|ATMICtx|AtmiCtx|AtmiCtx|AtmiCtx|

h3. Static methods

|Go|C#|Java, Platform Script|
|NewATMICtx|NewATMICtx|newAtmiCtx|
|ATMIMsgSizeMaxAtmiMsgSizeMax|atmiMsgSizeMax|
|NewCustomATMIError|NewCustomATMIError|newCustomATMIError|
|NewCustomNstdError|NewCustomNstdError|newCustomNstdError|

h3. Methods of ATMI Context

|Go|C#|Java, Platform Script|
|NewATMIError|NewAtmiError|newAtmiError|
|NewNstdError|NewNstdError|newNstdError|
|FreeATMICtx|N/A automatic destructor|N/A automatic destructor|
|TpAlloc|TPAlloc|tpAlloc|
|TpSetCtxt|TPSetCtxt|tpSetCtxt|
|TpRealloc|TPRealloc|tpRealloc|
|TpInit|TPInit|tpInit|
|TpCall|TPCall|tpCall|
|TpACall|
|TpGetRply|
|TpCancel|
|TpConnect|
|TpDiscon|
|TpRecv|
|TpSend|
|TpFree|
|TpCommit|
|TpAbort|
|TpOpen|
|TpClose|
|TpGetLev|
|TpBegin|
|TpSuspend|
|TpResume|
|TpGetnodeId|
|TpPost|
|TpTypes|
|TpTerm|
|TpEnqueue|
|TpDequeue|
|TpContinue|
|TpRun|
|TpAdvertise|TPAdvertise|tpAdvertise| |TpAdvertise||TPAdvertise|tpAdvertise|
|TpReturn|
|TpForward|
|TpUnadvertise|
|TpUnsubscribe|
|TpSubscribe|
|TpSrvGetCtxData|
|TpSrvSetCtxData|
|TpSrvFreeCtxData|
|TpExtDelPollerFD|
|TpExtAddB4PollCB|
|TpExtDelB4PollCB|
|TpExtAddPeriodCB|
|TpExtDelPeriodCB|
|TpExtAddPollerFD|
|TpGetSrvId|

h2. ATMI Buffer class

This object is used for mapping ATMI Errors

|Go|C#|Java, Platform Script|
|ATMIBuf|AtmiBuf|AtmiBuf|

h2. ATMI Buffer classes inherited -> TypedUBF

|Go|C#|Java, Platform Script|
|TypedUBF|TypedUbf|TypedUbf|

h2. ATMI Buffer classes inherited -> TypedString

|Go|C#|Java, Platform Script|
|TypedString|TypedString|TypedString|

h2. ATMI Buffer classes inherited -> TypedCarray

|Go|C#|Java, Platform Script|
|TypedCarray|TypedCarray|TypedCarray|

h2. ATMI Buffer classes inherited -> TypedJSON

|Go|C#|Java, Platform Script|
|TypedJSON|TypedJson|TypedJson|