theLink 10.0
Loading...
Searching...
No Matches
MqContextC_Misc_JV_API

MqContextC - various functions to work on a contextMore...

+ Collaboration diagram for MqContextC_Misc_JV_API:

Functions

native MkBufferC jvmqmsgque.MqContextC.GetBuffer ()
  Java: MkBufferC ctx.GetBuffer() C-API
get the MqContextS.ctxbuf object
 
native MqContextC jvmqmsgque.MqContextC.GetRoot ()
  Java: MqContextC ctx.GetRoot() C-API
get the Root (toplevel initial context)
 
native int jvmqmsgque.MqContextC.Exit (String callfunc, String callfile, int callline)
  Java: int ctx.Exit(?String callfunc = null?, ?String callfile = null?, ?int callline = -1?) C-API
delete the context and exit the current process or thread …
 
int jvmqmsgque.MqContextC.Exit ()
  Java: int ctx.Exit(?String callfunc = null?, ?String callfile = null?, ?int callline = -1?) C-API
delete the context and exit the current process or thread …
 
int jvmqmsgque.MqContextC.Exit (String callfunc)
  Java: int ctx.Exit(?String callfunc = null?, ?String callfile = null?, ?int callline = -1?) C-API
delete the context and exit the current process or thread …
 
int jvmqmsgque.MqContextC.Exit (String callfunc, String callfile)
  Java: int ctx.Exit(?String callfunc = null?, ?String callfile = null?, ?int callline = -1?) C-API
delete the context and exit the current process or thread …
 
native void jvmqmsgque.MqContextC.ProcessEvent (MqWaitOnEventE wait, long timeout)
  Java: ctx.ProcessEvent(?MqWaitOnEventE wait = MQ_WAIT_NO?, ?long timeout = MkTimeoutE.DEFAULT.get()?) C-API
enter the event-loop and wait for an incoming service-request. …
 
void jvmqmsgque.MqContextC.ProcessEvent ()
  Java: ctx.ProcessEvent(?MqWaitOnEventE wait = MQ_WAIT_NO?, ?long timeout = MkTimeoutE.DEFAULT.get()?) C-API
enter the event-loop and wait for an incoming service-request. …
 
void jvmqmsgque.MqContextC.ProcessEvent (MqWaitOnEventE wait)
  Java: ctx.ProcessEvent(?MqWaitOnEventE wait = MQ_WAIT_NO?, ?long timeout = MkTimeoutE.DEFAULT.get()?) C-API
enter the event-loop and wait for an incoming service-request. …
 
JNIEXPORT jobject JNICALL Java_jvmqmsgque_MqContextC_GetBuffer (JNIEnv *env, jobject self)
  Java: MkBufferC ctx.GetBuffer() C-API
get the MqContextS::ctxbuf object
 
JNIEXPORT jobject JNICALL Java_jvmqmsgque_MqContextC_GetRoot (JNIEnv *env, jobject self)
  Java: MqContextC ctx.GetRoot() C-API
get the Root (toplevel initial context)
 
JNIEXPORT jint JNICALL Java_jvmqmsgque_MqContextC_Exit (JNIEnv *env, jobject self, jstring callfunc, jstring callfile, jint callline)
  Java: int ctx.Exit(?String callfunc = null?, ?String callfile = null?, ?int callline = -1?) C-API
delete the context and exit the current process or thread …
 
JNIEXPORT void JNICALL Java_jvmqmsgque_MqContextC_ProcessEvent (JNIEnv *env, jobject self, jobject wait, jlong timeout)
  Java: ctx.ProcessEvent(?MqWaitOnEventE wait = MQ_WAIT_NO?, ?long timeout = MkTimeoutE.DEFAULT.get()?) C-API
enter the event-loop and wait for an incoming service-request. …
 

Detailed Description

MqContextC - various functions to work on a context

Function Documentation

◆ Exit() [1/4]

int jvmqmsgque.MqContextC.Exit ( )

Java: int ctx.Exit(?String callfunc = null?, ?String callfile = null?, ?int callline = -1?) C-API
delete the context and exit the current process or thread …

Definition at line 588 of file MqContextC.java.

588 {
589 return Exit (null, null, -1);
590 }
int Exit()
Java: int ctx.Exit(?String callfunc = null?, ?String callfile = null?, ?int callline = -1?...
+ Here is the caller graph for this function:

◆ Exit() [2/4]

int jvmqmsgque.MqContextC.Exit ( String callfunc)

Java: int ctx.Exit(?String callfunc = null?, ?String callfile = null?, ?int callline = -1?) C-API
delete the context and exit the current process or thread …

Definition at line 593 of file MqContextC.java.

593 {
594 return Exit (callfunc, null, -1);
595 }

◆ Exit() [3/4]

int jvmqmsgque.MqContextC.Exit ( String callfunc,
String callfile )

Java: int ctx.Exit(?String callfunc = null?, ?String callfile = null?, ?int callline = -1?) C-API
delete the context and exit the current process or thread …

Definition at line 598 of file MqContextC.java.

598 {
599 return Exit (callfunc, callfile, -1);
600 }

◆ Exit() [4/4]

native int jvmqmsgque.MqContextC.Exit ( String callfunc,
String callfile,
int callline )

Java: int ctx.Exit(?String callfunc = null?, ?String callfile = null?, ?int callline = -1?) C-API
delete the context and exit the current process or thread …

◆ GetBuffer()

native MkBufferC jvmqmsgque.MqContextC.GetBuffer ( )

◆ GetRoot()

native MqContextC jvmqmsgque.MqContextC.GetRoot ( )

Java: MqContextC ctx.GetRoot() C-API
get the Root (toplevel initial context)

◆ Java_jvmqmsgque_MqContextC_Exit()

JNIEXPORT jint JNICALL Java_jvmqmsgque_MqContextC_Exit ( JNIEnv * env,
jobject self,
jstring callfunc,
jstring callfile,
jint callline )

Java: int ctx.Exit(?String callfunc = null?, ?String callfile = null?, ?int callline = -1?) C-API
delete the context and exit the current process or thread …

Definition at line 1197 of file MqContextC_jv.c.

1197 {
1198 MQ_CTX hdl = (MQ_CTX)pObj2Hdl__null_allow(env,self);
1199 JavaErrorCheck;
1200 MkRtSetup_X(hdl);
1201 if (callline == -1 && callfile == NULL && callfunc == NULL) {
1202 (*env)->CallStaticVoidMethod(env,MK(Class_MkKernel),MK(MID_MkKernel_getCallerStack));
1203 }
1204 if (callline == -1) {callline = MK(pGetCallerLine)(env);}
1205 if (callfile == NULL) {callfile = MK(pGetCallerFile)(env);}
1206 if (callfunc == NULL) {callfunc = MK(pGetCallerProc)(env);}
1207 MK_STRN callfunc_ptr = (callfunc?(*env)->GetStringUTFChars(env,callfunc,NULL):NULL);
1208 JavaErrorCheck;
1209 MK_STRN callfile_ptr = (callfile?(*env)->GetStringUTFChars(env,callfile,NULL):NULL);
1210 JavaErrorCheck;
1211 MK_I32 __retVal__L = MqExit(hdl, callfunc_ptr, callfile_ptr, callline);
1212 jint __retVal__S = __retVal__L;
1213 if (callfunc_ptr) (*env)->ReleaseStringUTFChars(env,callfunc,callfunc_ptr);
1214 if (callfile_ptr) (*env)->ReleaseStringUTFChars(env,callfile,callfile_ptr);
1215 return __retVal__S;
1216error:
1217 return 0;
1218}
const MK_STRB * MK_STRN
signed int MK_I32
#define MkRtSetup_X(x)
struct MqContextS * MQ_CTX
class-shortcut for struct MqContextS *, all shortcut using the XX_YYY syntax (only for public API) …
#define MqExit(...)
PUBLIC data structure for the jvmqmsgque-specific-data

◆ Java_jvmqmsgque_MqContextC_GetBuffer()

JNIEXPORT jobject JNICALL Java_jvmqmsgque_MqContextC_GetBuffer ( JNIEnv * env,
jobject self )

Java: MkBufferC ctx.GetBuffer() C-API
get the MqContextS::ctxbuf object

Definition at line 1169 of file MqContextC_jv.c.

1169 {
1170 MQ_CTX hdl = (MQ_CTX)pObj2Hdl(env,"MqContextC",self);
1171 JavaErrorCheck;
1172 MkRtSetup_X(hdl);
1173 MK_BUF __retVal__L = MqContextGetBuffer(hdl);
1174 jobject __retVal__S = MK(MkBufferC_ObjNew)(MK_RT_CALL env,__retVal__L);
1175 return __retVal__S;
1176error:
1177 return 0;
1178}
#define MK_RT_CALL
#define MqContextGetBuffer(...)

◆ Java_jvmqmsgque_MqContextC_GetRoot()

JNIEXPORT jobject JNICALL Java_jvmqmsgque_MqContextC_GetRoot ( JNIEnv * env,
jobject self )

Java: MqContextC ctx.GetRoot() C-API
get the Root (toplevel initial context)

Definition at line 1181 of file MqContextC_jv.c.

1181 {
1182 MQ_CTX hdl = (MQ_CTX)pObj2Hdl(env,"MqContextC",self);
1183 JavaErrorCheck;
1184 MkRtSetup_X(hdl);
1185 MQ_CTX __retVal__L = MqGetRoot(hdl);
1186 jobject __retVal__S = MQ(MqContextC_ObjNew)(MK_RT_CALL env,__retVal__L);
1187 return __retVal__S;
1188error:
1189 return 0;
1190}
static MQ_CTX MqGetRoot(MQ_CTX ctx)
get the Root (toplevel initial context)

◆ Java_jvmqmsgque_MqContextC_ProcessEvent()

JNIEXPORT void JNICALL Java_jvmqmsgque_MqContextC_ProcessEvent ( JNIEnv * env,
jobject self,
jobject wait,
jlong timeout )

Java: ctx.ProcessEvent(?MqWaitOnEventE wait = MQ_WAIT_NO?, ?long timeout = MkTimeoutE.DEFAULT.get()?) C-API
enter the event-loop and wait for an incoming service-request. …

Definition at line 1221 of file MqContextC_jv.c.

1221 {
1222 MQ_CTX hdl = (MQ_CTX)pObj2Hdl(env,"MqContextC",self);
1223 JavaErrorCheck;
1224 MkRtSetup_X(hdl);
1225 enum MqWaitOnEventE wait_e = MK(pGetEnumFromObj)(env, NS(Class_MqWaitOnEventE), wait);
1226 JavaErrorCheck;
1227 enum MkErrorE errVal = MqProcessEvent(hdl, wait_e, timeout);
1228 MkErrorC_Check(hdl, errVal)
1229error:
1230 return;
1231}
MkErrorE
#define MqProcessEvent(...)
MqWaitOnEventE
wait for an event? …

◆ ProcessEvent() [1/3]

void jvmqmsgque.MqContextC.ProcessEvent ( )

Java: ctx.ProcessEvent(?MqWaitOnEventE wait = MQ_WAIT_NO?, ?long timeout = MkTimeoutE.DEFAULT.get()?) C-API
enter the event-loop and wait for an incoming service-request. …

Definition at line 606 of file MqContextC.java.

606 {
608 }
void ProcessEvent()
Java: ctx.ProcessEvent(?MqWaitOnEventE wait = MQ_WAIT_NO?, ?long timeout = MkTimeoutE....
+ Here is the caller graph for this function:

◆ ProcessEvent() [2/3]

void jvmqmsgque.MqContextC.ProcessEvent ( MqWaitOnEventE wait)

Java: ctx.ProcessEvent(?MqWaitOnEventE wait = MQ_WAIT_NO?, ?long timeout = MkTimeoutE.DEFAULT.get()?) C-API
enter the event-loop and wait for an incoming service-request. …

Definition at line 611 of file MqContextC.java.

611 {
612 ProcessEvent (wait, MkTimeoutE.DEFAULT.get());
613 }

◆ ProcessEvent() [3/3]

native void jvmqmsgque.MqContextC.ProcessEvent ( MqWaitOnEventE wait,
long timeout )

Java: ctx.ProcessEvent(?MqWaitOnEventE wait = MQ_WAIT_NO?, ?long timeout = MkTimeoutE.DEFAULT.get()?) C-API
enter the event-loop and wait for an incoming service-request. …