theLink 10.0
|
MqContextC - the class known as ctx or context is the application-handle of the application-server and also the main data-handle … More...
Public Member Functions | |
native Object | Send (String cstr, Object ... argv) |
Java: → C-API user friendly replacement for the MqContextC_SendApi_C_API … | |
native MqContextC | Next () |
Java: → C-API get next instance from linked-list of MqContextS type | |
native MqContextC | Prev () |
Java: → C-API get previous instance from linked-list of MqContextS type | |
native MqFactoryC | ClassFactoryGet () |
Java: → C-API get the MqFactoryC used by the MqContextC | |
native void | ClassFactorySet (MqFactoryC item) |
Java: → C-API link the MqContextC to a new MqFactoryC | |
native String | ClassIdentGet () |
Java: → C-API get the application-identification … | |
native void | ClassIdentSet (String ident) |
Java: → C-API link the MqContextC to a new MqFactoryC identified by ident | |
native String | ClassOriginalIdentGet () |
Java: → C-API get the MqFactoryS.originalIdent from the MqContextC | |
native MkBufferListC | ConfigGetIoTcpL () |
Java: → C-API get the configuration-data of the tcp-client-server-link as MkBufferListC … | |
native int | ConfigGetBuffersize () |
Java: → C-API get the minimum of the read/send buffersize of the socket | |
native MqIdentE | ConfigGetIdentFrom () |
Java: → C-API get the MqConfigS.identFrom | |
native int | ConfigGetIoPipe () |
Java: → C-API return the MqIoPipeConfigS | |
native String | ConfigGetIoUds () |
Java: → C-API return the MqIoUdsConfigS | |
native boolean | ConfigGetIsParent () |
Java: → C-API does the context object is a parent ? An objext is a parent id the MqConfigS.parent attribute is null | |
native boolean | ConfigGetIsServer () |
Java: → C-API does the context object is a server ? | |
native boolean | ConfigGetIsString () |
Java: → C-API does the context object is using the string-mode ? | |
native String | ConfigGetName () |
Java: → C-API get the name of the context object | |
native int | ConfigGetPkgsize () |
Java: → C-API get the maximun size of a BDY package | |
native String | ConfigGetPostfix () |
Java: → C-API get the MqConfigS.dispPostfix | |
native String | ConfigGetPrefix () |
Java: → C-API get the MqConfigS.dispPrefix | |
native MqStartE | ConfigGetStartAs () |
Java: → C-API return the MqConfigS.startAs value | |
native MqStatusIsEF | ConfigGetStatusIs () |
Java: → C-API return the MqContextS.statusIs value | |
native String | ConfigGetStorage () |
Java: → C-API get the storage of the context object | |
native long | ConfigGetTimeout () |
Java: → C-API get the timeout value of the context object | |
native void | ConfigSetConfigFile (String filename) |
Java: → C-API set the config-file and parse for well-known config-items | |
native String[] | ConfigGetIoTcp () |
Java: → C-API get the configuration-data of the tcp-client-server-link … | |
native void | ConfigReset () |
Java: → C-API clean the MqContextS.config data | |
native boolean | ConfigCheckStartAs (MqStartE data) |
Java: → C-API check if MqConfigS.startAs can be set to data | |
native void | ConfigSetAllDebug (int data) |
Java: → C-API set the MkRuntimeS::debug value | |
native void | ConfigSetBuffersize (int data) |
Java: → C-API set the MqIoConfigS.buffersize value | |
native void | ConfigSetDaemon (String pidfile) |
Java: → C-API start the server-context as daemon … | |
native void | ConfigSetIdentFrom (MqIdentE data) |
Java: → C-API set the MqConfigS.identFrom value | |
native void | ConfigSetIgnoreExit (boolean data) |
Java: → C-API set the MqSetupS.ignoreExit value | |
native void | ConfigSetIoPipe (int fh) |
Java: → C-API set the pipe configuration data … | |
native void | ConfigSetIoTcp (String host, String port, String myhost, String myport) |
Java: → C-API configure a context to use a tcp-client-server-link … | |
native void | ConfigSetIoTcp (MkBufferListC vals) |
Java: → C-API configure a context to use a tcp-client-server-link … | |
void | ConfigSetIoTcp () |
Java: → C-API configure a context to use a tcp-client-server-link … | |
void | ConfigSetIoTcp (String host) |
Java: → C-API configure a context to use a tcp-client-server-link … | |
void | ConfigSetIoTcp (String host, String port) |
Java: → C-API configure a context to use a tcp-client-server-link … | |
void | ConfigSetIoTcp (String host, String port, String myhost) |
Java: → C-API configure a context to use a tcp-client-server-link … | |
native void | ConfigSetIoUds (String file) |
Java: → C-API configure a context to use a uds-client-server-link … | |
native void | ConfigSetIsServer (boolean data) |
Java: → C-API set the MqSetupS.isServer value | |
native void | ConfigSetIsString (boolean data) |
Java: → C-API set the MqConfigS.native value 'S'string or 'L'owEndian or 'B'igEndian | |
native void | ConfigSetName (String data) |
Java: → C-API set the MqConfigS.dispName value and cleanup old value | |
native void | ConfigSetPkgsize (int data) |
Java: → C-API set the MqIoConfigS.pkgsize value | |
native void | ConfigSetPostfix (String data) |
Java: → C-API set the client-part (2) of the application-identifer MqConfigS.dispName … | |
native void | ConfigSetPrefix (String data) |
Java: → C-API set the server-part (1) of the application-identifer MqConfigS.dispName … | |
native void | ConfigSetStartAs (MqStartE data) |
Java: → C-API set the MqConfigS.startAs value | |
native void | ConfigSetStartAsString (String data) |
Java: → C-API set the MqConfigS.startAs value using string default , thread , fork or spawn | |
native void | ConfigSetStorage (String data) |
Java: → C-API set the Storage value and cleanup old value | |
native void | ConfigSetTimeout (long data) |
Java: → C-API set the MqIoConfigS.timeout value | |
native void | EnvProtect () |
Java: → C-API protect the service-environment | |
native void | EnvRestore () |
Java: → C-API restore the service-environment | |
native MkErrorC | ErrorFORMAT () |
Java: → C-API helper used to access MkErrorDEFAULT from MqContextC | |
native MkErrorE | ErrorCopy (MqContextC sourceCtx) |
Java: → C-API copy a MkErrorS from the sourceCtx to the targetCtx … | |
native MkErrorE | ErrorMove (MqContextC sourceCtx) |
Java: → C-API move a MkErrorS from the sourceCtx to the targetCtx … | |
native MqContextC | LinkGetParent () |
Java: → C-API get the initial parent-context from a client/server link … | |
native void | LinkConnect () |
Java: → C-API re-connect a client-server-link after a server crash or a network downtime … | |
native void | LinkCreate (MkBufferListC args) |
Java: → C-API make ctx to a parent-context and setup a new client-server-link … | |
native void | LinkCreateChild (MqContextC parent, MkBufferListC args) |
Java: → C-API make a context to a child-context on-top of an existing parent-client-server-link … | |
void | LinkCreateChild (MqContextC parent, String... args) |
Java: → C-API make a context to a child-context on-top of an existing parent-client-server-link … | |
void | LinkCreateChild (MqContextC parent) |
Java: → C-API make a context to a child-context on-top of an existing parent-client-server-link … | |
void | LinkCreate (String... args) |
Java: → C-API make ctx to a parent-context and setup a new client-server-link … | |
void | LinkCreate () |
Java: → C-API make ctx to a parent-context and setup a new client-server-link … | |
native void | LinkDelete () |
Java: → C-API close the client-server-link … | |
native int | LinkGetCtxId () |
Java: → C-API get an identifier which is unique per parent-or-child-context … | |
native String | LinkGetTargetIdent () |
Java: → C-API get the ident of the link-target … | |
native boolean | LinkIsConnected () |
Java: → C-API is the context connected? … | |
native boolean | LinkIsParent () |
Java: → C-API is the context a parent-context? … | |
native void | LinkShutdown () |
Java: → C-API shutdown the communication with a server | |
native void | LogConfig (MkObjectC fmtobj, int debug, String callfunc, int lvl) |
Java: → C-API log the MqContextC part MqConfigS … | |
void | LogConfig () |
Java: → C-API log the MqContextC part MqConfigS … | |
void | LogConfig (MkObjectC fmtobj) |
Java: → C-API log the MqContextC part MqConfigS … | |
void | LogConfig (MkObjectC fmtobj, int debug) |
Java: → C-API log the MqContextC part MqConfigS … | |
void | LogConfig (MkObjectC fmtobj, int debug, String callfunc) |
Java: → C-API log the MqContextC part MqConfigS … | |
native void | LogEnv (MkObjectC fmtobj, int debug, String callfunc, int lvl) |
Java: → C-API log the MqContextC part MqEnvS … | |
void | LogEnv () |
Java: → C-API log the MqContextC part MqEnvS … | |
void | LogEnv (MkObjectC fmtobj) |
Java: → C-API log the MqContextC part MqEnvS … | |
void | LogEnv (MkObjectC fmtobj, int debug) |
Java: → C-API log the MqContextC part MqEnvS … | |
void | LogEnv (MkObjectC fmtobj, int debug, String callfunc) |
Java: → C-API log the MqContextC part MqEnvS … | |
native void | LogLink (MkObjectC fmtobj, int debug, String callfunc, int lvl) |
Java: → C-API log the MqContextC part MqLinkS … | |
void | LogLink () |
Java: → C-API log the MqContextC part MqLinkS … | |
void | LogLink (MkObjectC fmtobj) |
Java: → C-API log the MqContextC part MqLinkS … | |
void | LogLink (MkObjectC fmtobj, int debug) |
Java: → C-API log the MqContextC part MqLinkS … | |
void | LogLink (MkObjectC fmtobj, int debug, String callfunc) |
Java: → C-API log the MqContextC part MqLinkS … | |
native void | LogSetup (MkObjectC fmtobj, int debug, String callfunc, int lvl) |
Java: → C-API log the MqContextC part MqSetupS … | |
void | LogSetup () |
Java: → C-API log the MqContextC part MqSetupS … | |
void | LogSetup (MkObjectC fmtobj) |
Java: → C-API log the MqContextC part MqSetupS … | |
void | LogSetup (MkObjectC fmtobj, int debug) |
Java: → C-API log the MqContextC part MqSetupS … | |
void | LogSetup (MkObjectC fmtobj, int debug, String callfunc) |
Java: → C-API log the MqContextC part MqSetupS … | |
native void | LogShort (MkObjectC fmtobj, int debug, String callfunc, int lvl, String label) |
Java: → C-API log the MqContextC with less info then MqContextLog … | |
void | LogShort () |
Java: → C-API log the MqContextC with less info then MqContextLog … | |
void | LogShort (MkObjectC fmtobj) |
Java: → C-API log the MqContextC with less info then MqContextLog … | |
void | LogShort (MkObjectC fmtobj, int debug) |
Java: → C-API log the MqContextC with less info then MqContextLog … | |
void | LogShort (MkObjectC fmtobj, int debug, String callfunc) |
Java: → C-API log the MqContextC with less info then MqContextLog … | |
void | LogShort (MkObjectC fmtobj, int debug, String callfunc, int lvl) |
Java: → C-API log the MqContextC with less info then MqContextLog … | |
native void | LogType (MkObjectC fmtobj, int debug, String callfunc, int lvl) |
Java: → C-API log the MqContextC part MkTypeS … | |
void | LogType () |
Java: → C-API log the MqContextC part MkTypeS … | |
void | LogType (MkObjectC fmtobj) |
Java: → C-API log the MqContextC part MkTypeS … | |
void | LogType (MkObjectC fmtobj, int debug) |
Java: → C-API log the MqContextC part MkTypeS … | |
void | LogType (MkObjectC fmtobj, int debug, String callfunc) |
Java: → C-API log the MqContextC part MkTypeS … | |
void | Log () |
Java: → C-API log the MqContextC … | |
void | Log (MkObjectC fmtobj) |
Java: → C-API log the MqContextC … | |
void | Log (MkObjectC fmtobj, int debug) |
Java: → C-API log the MqContextC … | |
void | Log (MkObjectC fmtobj, int debug, String callfunc) |
Java: → C-API log the MqContextC … | |
native String | LogParentOrChild () |
Java: → C-API is ctx a PARENT or a CHILD ? … | |
native String | LogServerOrClient () |
Java: → C-API is ctx a SERVER or a CLIENT ? … | |
native MkBufferC | GetBuffer () |
Java: → C-API get the MqContextS.ctxbuf object | |
native MqContextC | GetRoot () |
Java: → C-API get the Root (toplevel initial context) | |
native int | Exit (String callfunc, String callfile, int callline) |
Java: → C-API delete the context and exit the current process or thread … | |
int | Exit () |
Java: → C-API delete the context and exit the current process or thread … | |
int | Exit (String callfunc) |
Java: → C-API delete the context and exit the current process or thread … | |
int | Exit (String callfunc, String callfile) |
Java: → C-API delete the context and exit the current process or thread … | |
native void | ProcessEvent (MqWaitOnEventE wait, long timeout) |
Java: → C-API enter the event-loop and wait for an incoming service-request. … | |
void | ProcessEvent () |
Java: → C-API enter the event-loop and wait for an incoming service-request. … | |
void | ProcessEvent (MqWaitOnEventE wait) |
Java: → C-API enter the event-loop and wait for an incoming service-request. … | |
native void | ProxyForward (MqContextC targetCtx, MqDumpC dump, long timeout) |
Java: → C-API send the entire read-data-package-data to the link-target … | |
void | ProxyForward (MqContextC targetCtx) |
Java: → C-API send the entire read-data-package-data to the link-target … | |
void | ProxyForward (MqContextC targetCtx, MqDumpC dump) |
Java: → C-API send the entire read-data-package-data to the link-target … | |
native void | ProxyItem (MqContextC targetCtx) |
Java: → C-API Copy a single-data-item from the sourceCtx to the targetCtx. | |
native MkBufferListC | ReadALL (MkBufferListC val_inout) |
Java: → C-API get a temporary MkBufferListC from all data in the read-data-package … | |
MkBufferListC | ReadALL () |
Java: → C-API get a temporary MkBufferListC from all data in the read-data-package … | |
native MkBufferListC | ReadBFL () |
Java: → C-API get a temporary MkBufferListC from next list-item in the read-data-package … | |
native MkBufferC | ReadBUF () |
Java: → C-API get a temporary MkBufferC from the read-data-package … | |
native byte[] | ReadBIN () |
Java: doc_mq_jv_ReadBIN → C-API generic function to read an MK_BIN object from the read-data-package object … | |
native boolean | ReadBOL () |
Java: doc_mq_jv_ReadBOL → C-API read a PRIMITIVE TYPE from the read-data-package … | |
native byte[] | ReadBinaryR () |
Java: → C-API read a MkBinaryR from the read-data-package … | |
native double | ReadDBL () |
Java: doc_mq_jv_ReadDBL → C-API read a PRIMITIVE TYPE from the read-data-package … | |
native float | ReadFLT () |
Java: doc_mq_jv_ReadFLT → C-API read a PRIMITIVE TYPE from the read-data-package … | |
native int | ReadHDL () |
Java: → C-API read the handle from the read-data-package | |
native short | ReadI16 () |
Java: doc_mq_jv_ReadI16 → C-API read a PRIMITIVE TYPE from the read-data-package … | |
native int | ReadI32 () |
Java: doc_mq_jv_ReadI32 → C-API read a PRIMITIVE TYPE from the read-data-package … | |
native long | ReadI64 () |
Java: doc_mq_jv_ReadI64 → C-API read a PRIMITIVE TYPE from the read-data-package … | |
native byte | ReadI8 () |
Java: doc_mq_jv_ReadI8 → C-API read a PRIMITIVE TYPE from the read-data-package … | |
native long | ReadLONG () |
Java: → C-API read the long native object from the read-data-package | |
native String | ReadSTR () |
Java: doc_mq_jv_ReadSTR → C-API read a PRIMITIVE TYPE from the read-data-package … | |
native String | ReadStringR () |
Java: → C-API read a MkStringR from the read-data-package … | |
native void | ReadL_END () |
Java: → C-API finish to extract a list-items from the read-data-package. … | |
native void | ReadL_START (MkBufferC buf) |
Java: → C-API start to extract a list-items from the read-data-package. … | |
void | ReadL_START () |
Java: → C-API start to extract a list-items from the read-data-package. … | |
native void | ReadT_END () |
Java: → C-API finish to extract a longterm-transaction-item from the read-data-package. … | |
native void | ReadT_START () |
Java: → C-API start to extract a longterm-transaction-item from the read-data-package. … | |
native void | ReadDbg () |
ReadDbg | |
native MkTypeE | ReadGetNextType () |
Java: → C-API get the type (MkTypeE) of the next Item in the read-data-buffer or "0" if not available | |
native int | ReadGetNumItems () |
Java: → C-API get the number of items left in the read-data-package … | |
native boolean | ReadItemExists () |
Java: → C-API check if an item exists in the read-data-package … | |
native void | ReadUndo () |
Java: → C-API undo the last MqContextC READ API function call … | |
native MkBufferListC | RouteGetTree () |
Java: → C-API create an overview about all available routing-target and services … | |
native void | RouteCreate (String route, String service, boolean overwrite) |
Java: → C-API create/delete a routing-link between context an a service using route | |
void | RouteCreate (String route, String service) |
Java: → C-API create/delete a routing-link between context an a service using route | |
native void | RouteDelete (String route, String service, boolean overwrite) |
Java: → C-API delete a routing-link created with MqRouteCreate | |
void | RouteDelete (String route, String service) |
Java: → C-API delete a routing-link created with MqRouteCreate | |
native MqContextC[] | RouteResolve (String ident, int retnum) |
Java: → C-API return a list of all context belonging to ident … | |
MqContextC[] | RouteResolve (String ident) |
Java: → C-API return a list of all context belonging to ident … | |
native void | RouteTraverse (String service, MkBufferListC args) |
Java: → C-API traverse a tree down and call service if available. | |
void | RouteTraverse (String service, String... args) |
Java: → C-API traverse a tree down and call service if available. | |
void | RouteTraverse (String service) |
Java: → C-API traverse a tree down and call service if available. | |
native String | RouteGetPath () |
Java: → C-API return the absolut route-connection-string up to the current ctx … | |
native void | SendBFL (MkBufferListC val) |
Java: → C-API append a MkBufferListC object to the send-data-package object … | |
native void | SendBIN (byte[] val) |
Java: doc_mq_jv_SendBIN → C-API append a MK_BIN object to the send-data-package. … | |
native void | SendBOL (boolean val) |
Java: doc_mq_jv_SendBOL → C-API MqContextC - append a native PRIMITIVE TYPE value to the send-data-package … | |
native void | SendBUF (MkBufferC val) |
Java: → C-API append a MkBufferC object to the send-data-package object … | |
native void | SendBUS_FLAT (MkBufferStreamC val) |
Java: → C-API append a MkBufferStreamC object to the send-data-package object … | |
native void | SendBinaryR (byte[] val) |
Java: → C-API append a MkBinaryR object to the send-data-package. … | |
native void | SendDBL (double val) |
Java: doc_mq_jv_SendDBL → C-API MqContextC - append a native PRIMITIVE TYPE value to the send-data-package … | |
native void | SendFLT (float val) |
Java: doc_mq_jv_SendFLT → C-API MqContextC - append a native PRIMITIVE TYPE value to the send-data-package … | |
native void | SendHDL (int val) |
Java: → C-API send the handle to the send-data-package | |
native void | SendI16 (short val) |
Java: doc_mq_jv_SendI16 → C-API MqContextC - append a native PRIMITIVE TYPE value to the send-data-package … | |
native void | SendI32 (int val) |
Java: doc_mq_jv_SendI32 → C-API MqContextC - append a native PRIMITIVE TYPE value to the send-data-package … | |
native void | SendI64 (long val) |
Java: doc_mq_jv_SendI64 → C-API MqContextC - append a native PRIMITIVE TYPE value to the send-data-package … | |
native void | SendI8 (byte val) |
Java: doc_mq_jv_SendI8 → C-API MqContextC - append a native PRIMITIVE TYPE value to the send-data-package … | |
native void | SendLONG (long val) |
Java: → C-API send the long native object to the send-data-package | |
native void | SendLTR (int transLId) |
SendLTR | |
native void | SendL_FLAT (MkBufferListC val) |
Java: → C-API append a MkBufferListC object as flat list of items to the send-data-package object … | |
native void | SendSTR (String val) |
Java: doc_mq_jv_SendSTR → C-API MqContextC - append a native PRIMITIVE TYPE value to the send-data-package … | |
native void | SendStringR (String val) |
Java: → C-API MqContextC - append a native PRIMITIVE TYPE value to the send-data-package … | |
native void | SendEND (String token, long timeout) |
Java: → C-API MqContextC - finish the send-data-block and call synchronous/asynchronous a remote-service … | |
void | SendEND (String token) |
Java: → C-API MqContextC - finish the send-data-block and call synchronous/asynchronous a remote-service … | |
native void | SendEND_AND_CALLBACK (String token, MqServiceIF callback, long timeout) |
Java: → C-API finish the send-data-block, call the remote service, do not-wait for the result but expect the result on a callback … | |
void | SendEND_AND_CALLBACK (String token, MqServiceIF callback) |
Java: → C-API finish the send-data-block, call the remote service, do not-wait for the result but expect the result on a callback … | |
native void | SendEND_AND_SUB (String token, MqServiceIF callback, long timeout) |
Java: → C-API finish the send-data-block, call the remote service, do wait for the result and expect multiple sub-results on a callback … | |
void | SendEND_AND_SUB (String token, MqServiceIF callback) |
Java: → C-API finish the send-data-block, call the remote service, do wait for the result and expect multiple sub-results on a callback … | |
native void | SendEND_AND_TRANSACTION (String token, String callback, long timeout) |
Java: → C-API finish the send-data-block, call the remote service to do a longterm-transaction-call … | |
void | SendEND_AND_TRANSACTION (String token, String callback) |
Java: → C-API finish the send-data-block, call the remote service to do a longterm-transaction-call … | |
native void | SendEND_AND_WAIT (String token, long timeout) |
Java: → C-API finish the send-data-block, call the remote service and wait for result… | |
void | SendEND_AND_WAIT (String token) |
Java: → C-API finish the send-data-block, call the remote service and wait for result… | |
native void | SendSTART () |
Java: → C-API initialize the send-data-package. … | |
native void | SendSYNC () |
Java: → C-API garantee that all pending asynchronous-service-calls are processed. … | |
native void | SendL_END () |
Java: → C-API finish to append an embedded body-list-item to the send-data-package. … | |
native void | SendL_START () |
Java: → C-API start to append an embedded body-list-item to the send-data-package. … | |
native void | SendT_END () |
Java: → C-API closed a longterm-transaction-item … | |
native void | SendT_START () |
Java: → C-API open a longterm-transaction-item … | |
native void | SendERROR () |
Java: → C-API send the data from the MkErrorC to the link target . … | |
native void | SendRETURN () |
Java: → C-API MqContextC - finish the send-data-block on the server and optional return the results. … | |
native void | SendRETURN_SUB () |
Java: → C-API return Sub-Data-Blocks required by MqSendEND_AND_SUB … | |
native void | ServiceCreate (String token, MqServiceIF callback) |
Java: → C-API create a link between a service-token and a service-callback … | |
native void | ServiceDelete (String token) |
Java: → C-API delete a service. … | |
native boolean | ServiceIsTransaction () |
Java: → C-API check if the ongoing-service-call belongs to a transaction … | |
native void | ServiceProxy (String token, int id) |
Java: → C-API create a service to link a master-context with a slave-context. … | |
native void | ServiceProxyCtx (String token, MqContextC target) |
Java: → C-API same as MqServiceProxy but use an MqContextC as input. | |
native boolean | ServiceProxyCtxExists (String token, MqContextC target) |
Java: → C-API check if service who belongs to token is a proxy-service | |
native void | ServiceProxyRoundRobin (String token, String ident) |
Java: → C-API create a proxy-service using Round-Robin as load-balancer … | |
void | ServiceProxy (String token) |
Java: → C-API create a service to link a master-context with a slave-context. … | |
native void | ServiceStorage (String token) |
Java: → C-API setup a service listen on a MqContextC_ServiceApi_Identifer and save all read-data-package into the STORAGE … | |
native boolean | ServiceTokenCheck (String token) |
Java: → C-API in an ongoing-service-call check if the current MqContextC_ServiceApi_Identifer is token … | |
native boolean | ServiceTokenExists (String token) |
Java: → C-API check if the MqContextC_ServiceApi_Identifer token is defined as ctx service … | |
native String | ServiceTokenGet () |
Java: → C-API in an ongoing-service-call get the current MqContextC_ServiceApi_Identifer … | |
native MqContextC | SlaveGetMaster () |
Java: → C-API opposite function of MqSlaveGetFilter | |
native MqContextC | SlaveGet (int id) |
Java: → C-API get the slave-context from a master-context … | |
native MqContextC | SlaveGetFilter () |
Java: → C-API get the filter-ctx or the master-ctx … | |
native MqContextC | SlaveGetProxy (int id) |
Java: → C-API on slave return the master and on master return the slave identified by id. | |
native boolean | SlaveCheck (int id) |
Java: → C-API check if slave-id is valid | |
native void | SlaveCreate (int id, MqContextC slave) |
Java: → C-API create a master/slave link between the master-parent-context and the slave-parent-context … | |
native void | SlaveDelete (int id) |
Java: → C-API Delete a slave object from a master/slave link identified by id. … | |
native boolean | SlaveIs () |
Java: → C-API is the context a slave-context ? … | |
native void | SlaveWorker (int id, String fct, MkBufferListC args) |
Java: → C-API create a master/slave link using the image of the ctx object self. … | |
void | SlaveWorker (int id, String fct, String... args) |
Java: → C-API create a master/slave link using the image of the ctx object self. … | |
void | SlaveWorker (int id) |
Java: → C-API create a master/slave link using the image of the ctx object self. … | |
void | SlaveWorker (int id, String fct) |
Java: → C-API create a master/slave link using the image of the ctx object self. … | |
native int | StorageDelete (int transLIdP_inout) |
Java: → C-API delete the storage-row identified by the transLIdP_inout … | |
int | StorageDelete () |
Java: → C-API delete the storage-row identified by the transLIdP_inout … | |
native int | StorageImport (int transLIdP_inout) |
Java: → C-API import the storage-package into the read-data-package … | |
int | StorageImport () |
Java: → C-API import the storage-package into the read-data-package … | |
native void | StorageClose () |
Java: → C-API close the storage. … | |
native void | StorageDecrRef (int transLId) |
Java: → C-API decrease the internal refCount lock of the database-entry | |
native void | StorageIncrRef (int transLId) |
Java: → C-API increase the internal refCount lock of the database-entry | |
native void | StorageLog (String callfunc) |
Java: → C-API log the storage the status of the open transactions | |
void | StorageLog () |
Java: → C-API log the storage the status of the open transactions | |
native void | StorageOpen (String storageFile) |
Java: → C-API switch to a file-based-transaction-database … | |
native int | StorageCount () |
Java: → C-API count the number of storage-rows … | |
native int | StorageErrCnt (int transLId) |
Java: → C-API increment and return the database row-error-count for the row defined with transLId | |
native int | StorageExport () |
Java: → C-API export the read-data-package into the STORAGE … | |
native String[] | StorageResolve () |
Java: → C-API extract the context->link.protect.rmtTransLId entry from the database | |
MqContextC (MqContextC tmpl) | |
Java: → C-API create and initialize the MqContextC ... | |
MqContextC () | |
Java: → C-API create and initialize the MqContextC ... | |
Object | ReadNEXT () |
List< Object > | ReadLIST () |
![]() | |
void | close () |
String | toString () |
native void | HandleDelete () |
native boolean | HandleExists () |
native int | HandleGet () |
native int | HandleGetOfType () |
native int | HandleGetOr0 () |
native MkObjectC | Next () |
native MkObjectC | Prev () |
native void | DbgDump (String message, String callfunc) |
void | DbgDump () |
void | DbgDump (String message) |
native void | DbgL (String message, int debug, String callfunc, int lvl) |
void | DbgL (String message) |
void | DbgL (String message, int debug) |
void | DbgL (String message, int debug, String callfunc) |
native void | DbgLogC (String callfunc) |
void | DbgLogC () |
native void | DbgO (String callfunc) |
void | DbgO () |
native void | DbgSTACK (int skip, int num, String callfunc) |
void | DbgSTACK () |
void | DbgSTACK (int skip) |
void | DbgSTACK (int skip, int num) |
native void | LogC (String message, int debug, String callfunc) |
void | LogC (String message) |
void | LogC (String message, int debug) |
native void | LogHEX (String callfunc, byte[] data) |
native void | Log (MkObjectC fmtobj, int debug, String callfunc, int lvl) |
native void | LogLong (MkObjectC fmtobj, int debug, String callfunc, int lvl) |
void | LogLong () |
void | LogLong (MkObjectC fmtobj) |
void | LogLong (MkObjectC fmtobj, int debug) |
void | LogLong (MkObjectC fmtobj, int debug, String callfunc) |
native void | LogShort (MkObjectC fmtobj, int debug, String callfunc, int lvl) |
void | LogShort () |
void | LogShort (MkObjectC fmtobj) |
void | LogShort (MkObjectC fmtobj, int debug) |
void | LogShort (MkObjectC fmtobj, int debug, String callfunc) |
native void | LogType (MkObjectC fmtobj, int debug, String callfunc, int lvl) |
void | LogType () |
void | LogType (MkObjectC fmtobj) |
void | LogType (MkObjectC fmtobj, int debug) |
void | LogType (MkObjectC fmtobj, int debug, String callfunc) |
void | Log () |
void | Log (MkObjectC fmtobj) |
void | Log (MkObjectC fmtobj, int debug) |
void | Log (MkObjectC fmtobj, int debug, String callfunc) |
native MkErrorC | ErrorCatch (Throwable exception, String callfunc) |
MkErrorC | ErrorCatch () |
MkErrorC | ErrorCatch (Throwable exception) |
native MkErrorC | ToError () |
native boolean | IsNull () |
native String | ToName () |
native String | ToNameOfClass () |
native String | ToNameOfType () |
native String | ToString () |
native int | RefGet () |
native void | SysKill (int pid, int signal) |
native int | SysGetPid () |
native void | Dispose () |
native void | Delete () |
void | printP () |
void | L0 () |
void | L1 () |
void | L2 () |
void | L3 () |
void | L4 () |
void | L5 () |
void | L6 () |
void | L7 () |
void | L8 () |
void | L9 () |
void | LA () |
void | LB () |
void | LE () |
void | printL (String name, Object val) |
Static Public Member Functions | |
static native MqContextC | HandleResolve (int netHdl) |
Java: → C-API Handle-Resolve-Slot - return a MqContextC from netHdl or null if invalid… | |
static native MqContextC | Instances () |
Java: → C-API get head-instance from linked-list of MqContextS type … | |
static native MqContextC | GetNull () |
Java: → C-API Null-Slot - return a MqContextC typed NULL instance … | |
static native MqContextC | Create (MqContextC tmpl) |
Java: → C-API create and initialize the MqContextC ... | |
static MqContextC | Create () |
Java: → C-API create and initialize the MqContextC ... | |
![]() | |
static native MkObjectC | HandleResolve (int netHdl) |
static native void | HandleDeleteByNetHdl (int netHdl) |
static native MkObjectC | Instances () |
static native MkObjectC | GetNull () |
static native void | DbgM (String message, int debug, String callfunc, int lvl) |
static void | DbgM (String message) |
static void | DbgM (String message, int debug) |
static void | DbgM (String message, int debug, String callfunc) |
static native int | SysHashI32 (String key, int length) |
static int | SysHashI32 (String key) |
static native String | SysHashSTR (String key, int length) |
static String | SysHashSTR (String key) |
static native void | DeleteCallbackCleanup (String ident) |
static native void | DeleteCallbackSetup (String ident, MkObjectDeleteIF callback, String filter) |
static void | DeleteCallbackSetup (String ident) |
static void | DeleteCallbackSetup (String ident, MkObjectDeleteIF callback) |
static int | getPId () |
static long | getTId () |
static String | getCallerProc (int level) |
static String | getCallerProc () |
static String | getStackTrace (int level) |
static String | getStackTrace () |
static int | getCallerLine (int level) |
static int | getCallerLine () |
static String | getCallerFile (int level) |
static String | getCallerFile () |
static void | SF (String msg, String name, int framelvl) |
static void | SF (String msg) |
static void | SF (String msg, String name) |
static void | printP (long ptr, String name, int framelvl) |
static void | printO (byte byt, String name, int framelvl) |
static void | printBool (boolean bol, String name, int framelvl) |
static void | printObj (Object id, String caller, int framelvl) |
static void | printObj (Object id, String caller) |
static void | printObj (Object id) |
static void | printC (String id, String name, int framelvl) |
static void | printC (String id) |
static void | printTyp (MkObjectC id, String name, int framelvl) |
static void | printStack (String name, int framelvl) |
static void | M0 () |
static void | M1 () |
static void | M2 () |
static void | M3 () |
static void | M4 () |
static void | M5 () |
static void | M6 () |
static void | M7 () |
static void | M8 () |
static void | M9 () |
static void | MA () |
static void | MB () |
static void | MC () |
static void | MD () |
static void | ME () |
Additional Inherited Members | |
![]() | |
MkObjectC (long mng, boolean dummy) | |
void | Dispose (boolean disposing) |
MqContextC - the class known as ctx or context is the application-handle of the application-server and also the main data-handle …
The context is the package-item with the required features and created by the implementation-layer-programmer. The context can be a client or a server.
The client-context-creation is triggerd by the software-workflow on demand. The client is calling the MqLinkCreate to create a connection to the server using the connection-arguments to specify the target.
The life-cycle of a client is:
ContextCreate | create and initialize the MqContextC ... |
LinkCreate | make ctx to a parent-context and setup a new client-server-link … |
SendTT | MqContextC - append a native PRIMITIVE TYPE value to the send-data-package … |
ReadTT | read a PRIMITIVE TYPE from the read-data-package … |
LinkDelete | close the client-server-link … |
ContextDelete | Destructor - delete a MqContextC instance … |
Exit | delete the context and exit the current process or thread … |
The server-context-creation is always triggerd by the MqLinkCreate command of the client. The server is usually using a factory-constructor to call the MqContextCreate and finally to call the MqContextDelete.
The server-context is fully under control of the client.
The life-cycle of a server is:
SETUP | define a class and add the setup/cleanup code |
MqServerSetupIF | define the server-setup-interface (callback) used on startup … |
ServiceCreate | create a link between a service-token and a service-callback … |
MqServerCleanupIF | define the server-cleanup-interface (callback) used on cleanup … |
ServiceDelete | delete a service. … |
STARTUP | define the factory and start the listener |
FactoryAdd | Add a new MqFactoryC identified by factory-identifier and defined by factory-constructor … |
FactoryNew | create a new MqContextC from a MqFactoryC … |
LinkCreate | make ctx to a parent-context and setup a new client-server-link … |
ProcessEvent | enter the event-loop and wait for an incoming service-request. … |
WORK | process the service-calls and exit on end |
ReadTT | read a PRIMITIVE TYPE from the read-data-package … |
SendTT | MqContextC - append a native PRIMITIVE TYPE value to the send-data-package … |
Exit | delete the context and exit the current process or thread … |
command | alias |
---|---|
[constructor,static] MqContextC MqContextC.Create(?MqContextC tmpl = null?) | pymkmsgque.MqContextC(?tmpl:MqContextC=None?) |
[destructor] ctx.Delete() | ctx = None |
Definition at line 19 of file MqContextC.java.
native Object jvmqmsgque.MqContextC.Send | ( | String | cstr, |
Object ... | argv ) |
Java:
→ C-API ctx.Send(String cstr, String... args)
user friendly replacement for the MqContextC_SendApi_C_API …