theLink 10.0
Loading...
Searching...
No Matches
LibMqMsgque_jv.c
Go to the documentation of this file.
1
9/* LABEL-NO */
10
11#define META_FILE_NAME "LibMqMsgque_jv.c"
12
13#include "jni_h/jvmqmsgque_MqMsgque.h"
14#include "LibMqMsgque_private_jv.h"
15
19
20#define defDebug0
21#define defClass(v,n) jclass v;
22#define defOAtr(v,c,n,s) jfieldID v;
23#define defSAtr(v,c,n,s) jfieldID v;
24#define defOMth(v,c,n,s) jmethodID v;
25#define defSMth(v,c,n,s) jmethodID v;
26
27#include "MqDefs_jv.h"
28
29#undef defDebug0
30#undef defClass
31#undef defOAtr
32#undef defSAtr
33#undef defOMth
34#undef defSMth
35
36#define MqCleanupTmpl()
37#define MqSetupTmpl()
38
39// BEGIN-MqMsgque - created by 'jv_MqC.tcl -i NHI1_HOME/theLink/c/gen/c_mqmsgque.meta' - DO NOT change
40
44
45// doc-key: MqMsgque,MqMsgque-Enum,sco
46
48JNIEXPORT jobject JNICALL Java_jvmqmsgque_MqMsgque_IdentE_1FromInt (JNIEnv *env, jclass class, jint value) {
50 enum MqIdentE value_out;
51 enum MkErrorE errVal = MqIdentE_FromInt(value, &value_out);
52 MkErrorC_Check(NULL, errVal)
53 jobject __retVal__S = MK(pGetEnumFromString)(env,MQ(Class_MqIdentE),"Ljvmqmsgque/MqIdentE;",MqIdentE_ToString(value_out));
54 return __retVal__S;
55error:
56 return 0;
57}
58
60JNIEXPORT jobject JNICALL Java_jvmqmsgque_MqMsgque_SlaveE_1FromInt (JNIEnv *env, jclass class, jint value) {
62 enum MqSlaveE value_out;
63 enum MkErrorE errVal = MqSlaveE_FromInt(value, &value_out);
64 MkErrorC_Check(NULL, errVal)
65 jobject __retVal__S = MK(pGetEnumFromString)(env,MQ(Class_MqSlaveE),"Ljvmqmsgque/MqSlaveE;",MqSlaveE_ToString(value_out));
66 return __retVal__S;
67error:
68 return 0;
69}
70
72JNIEXPORT jobject JNICALL Java_jvmqmsgque_MqMsgque_StartE_1FromInt (JNIEnv *env, jclass class, jint value) {
74 enum MqStartE value_out;
75 enum MkErrorE errVal = MqStartE_FromInt(value, &value_out);
76 MkErrorC_Check(NULL, errVal)
77 jobject __retVal__S = MK(pGetEnumFromString)(env,MQ(Class_MqStartE),"Ljvmqmsgque/MqStartE;",MqStartE_ToString(value_out));
78 return __retVal__S;
79error:
80 return 0;
81}
82
84JNIEXPORT jobject JNICALL Java_jvmqmsgque_MqMsgque_StatusIsEF_1FromInt (JNIEnv *env, jclass class, jint value) {
86 enum MqStatusIsEF value_out;
87 enum MkErrorE errVal = MqStatusIsEF_FromInt(value, &value_out);
88 MkErrorC_Check(NULL, errVal)
89 jobject __retVal__S = MK(pGetEnumFlagFromInt)(env,MQ(Class_MqStatusIsEF),value_out);
90 return __retVal__S;
91error:
92 return 0;
93}
94
96JNIEXPORT jobject JNICALL Java_jvmqmsgque_MqMsgque_WaitOnEventE_1FromInt (JNIEnv *env, jclass class, jint value) {
98 enum MqWaitOnEventE value_out;
99 enum MkErrorE errVal = MqWaitOnEventE_FromInt(value, &value_out);
100 MkErrorC_Check(NULL, errVal)
101 jobject __retVal__S = MK(pGetEnumFromString)(env,MQ(Class_MqWaitOnEventE),"Ljvmqmsgque/MqWaitOnEventE;",MqWaitOnEventE_ToString(value_out));
102 return __retVal__S;
103error:
104 return 0;
105}
106
107// doc-key: MqMsgque,MqMsgque-Enum,sm_
108
110JNIEXPORT jint JNICALL Java_jvmqmsgque_MqMsgque_IdentE_1ToInt (JNIEnv *env, jclass class, jobject value) {
112 enum MqIdentE value_e = MK(pGetEnumFromObj)(env, NS(Class_MqIdentE), value);
113 JavaErrorCheck;
114 MK_I32 __retVal__L = MqIdentE_ToInt(value_e);
115 jint __retVal__S = __retVal__L;
116 return __retVal__S;
117error:
118 return 0;
119}
120
122JNIEXPORT jstring JNICALL Java_jvmqmsgque_MqMsgque_IdentE_1ToString (JNIEnv *env, jclass class, jobject value) {
124 enum MqIdentE value_e = MK(pGetEnumFromObj)(env, NS(Class_MqIdentE), value);
125 JavaErrorCheck;
126 MK_STRN __retVal__L = MqIdentE_ToString(value_e);
127 jstring __retVal__S = JC2O(env,__retVal__L);
128 return __retVal__S;
129error:
130 return 0;
131}
132
134JNIEXPORT jint JNICALL Java_jvmqmsgque_MqMsgque_SlaveE_1ToInt (JNIEnv *env, jclass class, jobject value) {
136 enum MqSlaveE value_e = MK(pGetEnumFromObj)(env, NS(Class_MqSlaveE), value);
137 JavaErrorCheck;
138 MK_I32 __retVal__L = MqSlaveE_ToInt(value_e);
139 jint __retVal__S = __retVal__L;
140 return __retVal__S;
141error:
142 return 0;
143}
144
146JNIEXPORT jstring JNICALL Java_jvmqmsgque_MqMsgque_SlaveE_1ToString (JNIEnv *env, jclass class, jobject value) {
148 enum MqSlaveE value_e = MK(pGetEnumFromObj)(env, NS(Class_MqSlaveE), value);
149 JavaErrorCheck;
150 MK_STRN __retVal__L = MqSlaveE_ToString(value_e);
151 jstring __retVal__S = JC2O(env,__retVal__L);
152 return __retVal__S;
153error:
154 return 0;
155}
156
158JNIEXPORT jint JNICALL Java_jvmqmsgque_MqMsgque_StartE_1ToInt (JNIEnv *env, jclass class, jobject value) {
160 enum MqStartE value_e = MK(pGetEnumFromObj)(env, NS(Class_MqStartE), value);
161 JavaErrorCheck;
162 MK_I32 __retVal__L = MqStartE_ToInt(value_e);
163 jint __retVal__S = __retVal__L;
164 return __retVal__S;
165error:
166 return 0;
167}
168
170JNIEXPORT jstring JNICALL Java_jvmqmsgque_MqMsgque_StartE_1ToString (JNIEnv *env, jclass class, jobject value) {
172 enum MqStartE value_e = MK(pGetEnumFromObj)(env, NS(Class_MqStartE), value);
173 JavaErrorCheck;
174 MK_STRN __retVal__L = MqStartE_ToString(value_e);
175 jstring __retVal__S = JC2O(env,__retVal__L);
176 return __retVal__S;
177error:
178 return 0;
179}
180
182JNIEXPORT jint JNICALL Java_jvmqmsgque_MqMsgque_StatusIsEF_1ToInt (JNIEnv *env, jclass class, jobject value) {
184 enum MqStatusIsEF value_e = MK(pGetEnumFromObj)(env, NS(Class_MqStatusIsEF), value);
185 JavaErrorCheck;
186 MK_I32 __retVal__L = MqStatusIsEF_ToInt(value_e);
187 jint __retVal__S = __retVal__L;
188 return __retVal__S;
189error:
190 return 0;
191}
192
194JNIEXPORT jstring JNICALL Java_jvmqmsgque_MqMsgque_StatusIsEF_1ToString (JNIEnv *env, jclass class, jobject value) {
196 enum MqStatusIsEF value_e = MK(pGetEnumFromObj)(env, NS(Class_MqStatusIsEF), value);
197 JavaErrorCheck;
198 MK_STRN __retVal__L = MqStatusIsEF_ToString(value_e);
199 jstring __retVal__S = JC2O(env,__retVal__L);
200 return __retVal__S;
201error:
202 return 0;
203}
204
206JNIEXPORT jint JNICALL Java_jvmqmsgque_MqMsgque_WaitOnEventE_1ToInt (JNIEnv *env, jclass class, jobject value) {
208 enum MqWaitOnEventE value_e = MK(pGetEnumFromObj)(env, NS(Class_MqWaitOnEventE), value);
209 JavaErrorCheck;
210 MK_I32 __retVal__L = MqWaitOnEventE_ToInt(value_e);
211 jint __retVal__S = __retVal__L;
212 return __retVal__S;
213error:
214 return 0;
215}
216
218JNIEXPORT jstring JNICALL Java_jvmqmsgque_MqMsgque_WaitOnEventE_1ToString (JNIEnv *env, jclass class, jobject value) {
220 enum MqWaitOnEventE value_e = MK(pGetEnumFromObj)(env, NS(Class_MqWaitOnEventE), value);
221 JavaErrorCheck;
222 MK_STRN __retVal__L = MqWaitOnEventE_ToString(value_e);
223 jstring __retVal__S = JC2O(env,__retVal__L);
224 return __retVal__S;
225error:
226 return 0;
227}
228
230// MqMsgque_Enum_JV_API
231
235
236// doc-key: MqMsgque,MqMsgque-Help,sm_
237
239JNIEXPORT jstring JNICALL Java_jvmqmsgque_MqMsgque_Help (JNIEnv *env, jclass class, jstring tool) {
241 MK_STRN tool_ptr = (tool?(*env)->GetStringUTFChars(env,tool,NULL):NULL);
242 JavaErrorCheck;
243 MK_STR __retVal__L = MqHelp(tool_ptr);
244 jstring __retVal__S = JC2O(env,__retVal__L);
245 if (tool_ptr) (*env)->ReleaseStringUTFChars(env,tool,tool_ptr);
246 return __retVal__S;
247error:
248 return 0;
249}
250
252JNIEXPORT jstring JNICALL Java_jvmqmsgque_MqMsgque_HelpMsgque (JNIEnv *env, jclass class) {
254 MK_STR __retVal__L = MqHelpMsgque();
255 jstring __retVal__S = JC2O(env,__retVal__L);
256 return __retVal__S;
257}
258
260// MqMsgque_Help_JV_API
261
265
266// doc-key: MqMsgque,MqMsgque-Init,sm_
267
269JNIEXPORT jobject JNICALL Java_jvmqmsgque_MqMsgque_InitGetArg0 (JNIEnv *env, jclass class) {
271 MK_BFL __retVal__L = MqInitGetArg0();
272 jobject __retVal__S = MK(MkBufferListC_ObjNew)(MK_RT_CALL env,__retVal__L);
273 return __retVal__S;
274}
275
277JNIEXPORT jobject JNICALL Java_jvmqmsgque_MqMsgque_InitResetArg0 (JNIEnv *env, jclass class) {
279 MK_BFL __retVal__L = MqInitResetArg0();
280 jobject __retVal__S = MK(MkBufferListC_ObjNew)(MK_RT_CALL env,__retVal__L);
281 return __retVal__S;
282}
283
285JNIEXPORT void JNICALL Java_jvmqmsgque_MqMsgque_InitSetArg0 (JNIEnv *env, jclass class, jobject bfl) {
287 MK_BAC bfl_hdl = (MK_BAC)pObj2Hdl__null_allow(env,bfl);
288 JavaErrorCheck;
289 MqInitSetArg0(bfl_hdl);
290error:
291 return;
292}
293
295// MqMsgque_Init_JV_API
296
300
301// doc-key: MqMsgque,MqMsgque-Setup,sm_
302
304JNIEXPORT void JNICALL Java_jvmqmsgque_MqMsgque_Cleanup (JNIEnv *env, jclass class) {
307}
308
310JNIEXPORT void JNICALL Setup (JNIEnv *env, jclass class) {
312 MqSetupTmpl();
313}
314
316// MqMsgque_Setup_JV_API
317
318// END-MqMsgque - created by 'jv_MqC.tcl -i NHI1_HOME/theLink/c/gen/c_mqmsgque.meta' - DO NOT change
319
321// OVERLOAD
322
323#ifdef META_THREAD_POOL
324
326 (JNIEnv * env, jclass cls, jlong mainL)
327{
329}
330
331//MkObjectC.DbgM("============================================================================");
332//MkObjectC.DbgM($"Thread MAIN -> mkrt=0x{mkrt}");
333//MkObjectC.DbgM($"Thread START -> mkrt=0x{Mk.MkRuntimeGet()}, tId={System.Environment.CurrentManagedThreadId}");
334//MkObjectC.DbgM($"Thread END -> mkrt=0x{Mk.MkRuntimeGet()}, tId={System.Environment.CurrentManagedThreadId}");
335//MkObjectC.DbgM($"Start Task -> idP={Convert.ToString((long)idP, 16)}, val={(*idP).val}");
336//MkObjectC.DbgM($"Start Wait -> idP={Convert.ToString((long)idP, 16)}, val={(*idP).val}, type={(*idP).type}");
337
338// more info: https://stackoverflow.com/questions/12900695/how-to-obtain-jni-interface-pointer-jnienv-for-asynchronous-calls
339static enum MkErrorE NS(MqSysServerThreadCB) (
341 MQ_CTX const ctx,
342 struct MqSysServerThreadMainS * const argP,
343 MK_STRN name,
344 int state,
345 struct MkIdS * idP
346) {
347 SETUP_env;
348
349 if (env == NULL)
350 return MkErrorSetV_1E("[%s] 'env' pointer is NULL",name);
351
352 if (idP->ioIsPipe) {
353 jobject runnableO = (*env)->CallStaticObjectMethod(env, MQ(Class_MqMsgque), MQ(MID_Thread_Pipe_callback), (jlong) argP);
354
355 if((*env)->ExceptionCheck(env) == JNI_TRUE) {
356 OT_ERROR_LNG_2_META(ctx);
357 goto error;
358 }
359
360 idP->type = MK_ID_THREAD;
361 idP->val = (MK_IDNT) (*env)->NewWeakGlobalRef(env,runnableO);
362 idP->setByExtern = true;
363
364 } else {
365 (*env)->CallStaticObjectMethod(env, MQ(Class_MqMsgque), MQ(MID_Thread_Work_callback), (jlong) argP);
366
367 if((*env)->ExceptionCheck(env) == JNI_TRUE) {
368 OT_ERROR_LNG_2_META(ctx);
369 goto error;
370 }
371
372 idP->type = MK_ID_THREAD;
373 idP->val = (MK_IDNT) 0x1;
374 }
375
376error:
377 return MkErrorStack_0E_Check();
378}
379
380/*
381replaced by sThreadExit/sProcessExit and "true" return
382
383static void NS(MkSysExitCB) ( MK_RT_ARGS int isThread, int num ) {
384 MkRtSetup_NULL_RT;
385 SETUP_env;
386 if (isThread) {
387#ifndef META_THREAD_POOL
388 // 1. do nothing, end of "MqSysServerThreadMain" finish thread
389 // 2. "sThreadExit" already detach the thread
390 //(*MK(cached_jvm))->DetachCurrentThread(MK(cached_jvm));
391#endif
392 } else {
393 (*env)->CallStaticVoidMethod(env, NS(Class_System), NS(MID_System_exit), (jint) num);
394 }
395 // FINISH
396error:
397 return;
398}
399*/
400
401#endif // META_THREAD_POOL
402
404// MODULE
405
408
409 // BEGIN-INIT - created by 'jv_MqS.tcl -i NHI1_HOME/theLink/c/gen/c_mqmsgque.meta' - DO NOT change
410
411 NS(MqContextC_Init) (MQ_RT_CALL_ONLY) ;
412 NS(MqDumpC_Init) (MQ_RT_CALL_ONLY) ;
413 NS(MqFactoryC_Init) (MQ_RT_CALL_ONLY) ;
414
415 // END-INIT - created by 'jv_MqS.tcl -i NHI1_HOME/theLink/c/gen/c_mqmsgque.meta' - DO NOT change
416}
417
419
421
422JNIEXPORT jint JNICALL
423JNI_OnLoad(JavaVM *jvm, void *reserved)
424{
425 JNIEnv *env;
426
427 JavaErrorCheck0 ((*jvm)->GetEnv(jvm, (void*) &env, JNI_VERSION_10));
428
429 // init "LibMqMsgque"
430 MqSetup();
432
434
435 JavaErrorCheck0 ((*env)->EnsureLocalCapacity(env, 50));
436
437 jclass cls;
438 #define check(v,c) if ((v=(c))==NULL) return JNI_ERR
439#define defClass(v,n) check(cls, (*env)->FindClass(env, n));\
440 JavaErrorCheck; \
441 check(v, (*env)->NewGlobalRef(env, cls)); \
442 JavaErrorCheck;
443#define defOAtr(v,c,n,s) check(v, (*env)->GetFieldID(env,c,n,s)); \
444 JavaErrorCheck;
445#define defSAtr(v,c,n,s) check(v, (*env)->GetStaticFieldID(env,c,n,s)); \
446 JavaErrorCheck;
447#define defOMth(v,c,n,s) check(v, (*env)->GetMethodID(env,c,n,s)); \
448 JavaErrorCheck;
449#define defSMth(v,c,n,s) check(v, (*env)->GetStaticMethodID(env,c,n,s)); \
450 JavaErrorCheck;
451#define defDebug0 MB;
452
453#include "MqDefs_jv.h"
454
455#undef defDebug0
456#undef defClass
457#undef defOAtr
458#undef defSAtr
459#undef defOMth
460#undef defSMth
461
462 // class specific initialization
464
465#ifdef META_THREAD_POOL
466 MqLal.MqSysServerThreadCB = NS(MqSysServerThreadCB);
467 //MkLal.MkSysExitCB = NS(MkSysExitCB);
468#endif // META_THREAD_POOL
469
470 return JNI_VERSION_10;
471error:
472 return JNI_ERR; /* JNI version not supported */
473}
474
475JNIEXPORT void JNICALL
476JNI_OnUnload(JavaVM *jvm, void *reserved)
477{
478 JNIEnv *env;
479 void *val;
480 if ((*jvm)->GetEnv(jvm, &val, JNI_VERSION_10)) {
481 return;
482 }
483
485
486 // cleanup global variables
487 env = (JNIEnv*) val;
488
489#define defDebug0
490#define defClass(v,n) (*env)->DeleteGlobalRef(env, v);
491#define defOAtr(v,c,n,s)
492#define defSAtr(v,c,n,s)
493#define defOMth(v,c,n,s)
494#define defSMth(v,c,n,s)
495
496#include "MqDefs_jv.h"
497
498#undef defDebug0
499#undef defClass
500#undef defOAtr
501#undef defSAtr
502#undef defOMth
503#undef defSMth
504
506
507 MqCleanup();
508
509 return;
510}
#define MqCleanupTmpl()
jfieldID jfieldID_List
JNIEXPORT void JNICALL Java_jvmqmsgque_MqMsgque_MqSysServerThreadMain(JNIEnv *env, jclass cls, jlong mainL)
jclass jclass_List
#define MqSetupTmpl()
static struct MkRuntimeCallbackS sMqRuntimeCallback
jmethodID jmethodID_List
#define AllRtSetup_NULL
tag: nhi1-release-250425
struct MkBufferListS * MK_BAC
#define MkErrorStack_0E_Check()
#define MkErrorSetV_1E(printfmt,...)
MkErrorE
const MK_STRB * MK_STRN
MK_STRB * MK_STR
signed int MK_I32
void MkSysPipeHandler(MkSysPipeHandlerE keepPipe)
uintptr_t MK_IDNT
MK_ID_THREAD
MK_PIPE_KEEP
size_t MkRuntimeCallbackAdd(MK_RT mkrt, MkRuntimeCallbackS *cbdata, MkRuntimeInitF rt_callback, MK_STRN ident)
void MkRuntimeCallbackDel(MK_RT mkrt, MkRuntimeCallbackS *cbdata)
#define MK_RT_CALL
#define MK_RT_ARGS
#define MkRtSetup_NULL
#define MK_RT_ARGS_ONLY
static MK_I32 MqStartE_ToInt(enum MqStartE value)
return the MqStartE as integer …
static MK_I32 MqIdentE_ToInt(enum MqIdentE value)
return the MqIdentE as integer …
MK_STRN MqWaitOnEventE_ToString(enum MqWaitOnEventE value)
return the MqWaitOnEventE as string …
static MK_I32 MqStatusIsEF_ToInt(enum MqStatusIsEF value)
return the MqStatusIsEF as integer …
enum MkErrorE MqStartE_FromInt(MK_I32 const value, enum MqStartE *value_out)
return the MqStartE from integer …
enum MkErrorE MqIdentE_FromInt(MK_I32 const value, enum MqIdentE *value_out)
return the MqIdentE from integer …
MqWaitOnEventE
wait for an event? …
MqSlaveE
predefined slave-id for well known slaves …
MK_STRN MqStatusIsEF_ToString(enum MqStatusIsEF value)
return the MqStatusIsEF as string …
enum MkErrorE MqSlaveE_FromInt(MK_I32 const value, enum MqSlaveE *value_out)
return the MqSlaveE from integer …
MqIdentE
identify the application using prefix (default) or factory …
MK_STRN MqSlaveE_ToString(enum MqSlaveE value)
return the MqSlaveE as string …
MqStartE
User preferences on HOWTO start a new entity.
MqStatusIsEF
Information about how the context was created.
MK_STRN MqIdentE_ToString(enum MqIdentE value)
return the MqIdentE as string …
MK_STRN MqStartE_ToString(enum MqStartE value)
return the MqStartE as string …
enum MkErrorE MqStatusIsEF_FromInt(MK_I32 const value, enum MqStatusIsEF *value_out)
return the MqStatusIsEF from integer …
static MK_I32 MqWaitOnEventE_ToInt(enum MqWaitOnEventE value)
return the MqWaitOnEventE as integer …
static MK_I32 MqSlaveE_ToInt(enum MqSlaveE value)
return the MqSlaveE as integer …
enum MkErrorE MqWaitOnEventE_FromInt(MK_I32 const value, enum MqWaitOnEventE *value_out)
return the MqWaitOnEventE from integer …
JNIEXPORT jint JNICALL Java_jvmqmsgque_MqMsgque_IdentE_1ToInt(JNIEnv *env, jclass class, jobject value)
Java: [static] int IdentE_ToInt(MqIdentE value) → C-API return the MqIdentE as integer …
JNIEXPORT jobject JNICALL Java_jvmqmsgque_MqMsgque_StartE_1FromInt(JNIEnv *env, jclass class, jint value)
Java: [static] MqStartE StartE_FromInt(int value) → C-API return the MqStartE from integer …
JNIEXPORT jstring JNICALL Java_jvmqmsgque_MqMsgque_StartE_1ToString(JNIEnv *env, jclass class, jobject value)
Java: [static] String StartE_ToString(MqStartE value) → C-API return the MqStartE as string …
JNIEXPORT jobject JNICALL Java_jvmqmsgque_MqMsgque_IdentE_1FromInt(JNIEnv *env, jclass class, jint value)
Java: [static] MqIdentE IdentE_FromInt(int value) → C-API return the MqIdentE from integer …
JNIEXPORT jint JNICALL Java_jvmqmsgque_MqMsgque_SlaveE_1ToInt(JNIEnv *env, jclass class, jobject value)
Java: [static] int SlaveE_ToInt(MqSlaveE value) → C-API return the MqSlaveE as integer …
JNIEXPORT jstring JNICALL Java_jvmqmsgque_MqMsgque_StatusIsEF_1ToString(JNIEnv *env, jclass class, jobject value)
Java: [static] String StatusIsEF_ToString(MqStatusIsEF value) → C-API return the MqStatusIsEF as...
JNIEXPORT jstring JNICALL Java_jvmqmsgque_MqMsgque_IdentE_1ToString(JNIEnv *env, jclass class, jobject value)
Java: [static] String IdentE_ToString(MqIdentE value) → C-API return the MqIdentE as string …
JNIEXPORT jint JNICALL Java_jvmqmsgque_MqMsgque_WaitOnEventE_1ToInt(JNIEnv *env, jclass class, jobject value)
Java: [static] int WaitOnEventE_ToInt(MqWaitOnEventE value) → C-API return the MqWaitOnEventE as...
JNIEXPORT jint JNICALL Java_jvmqmsgque_MqMsgque_StatusIsEF_1ToInt(JNIEnv *env, jclass class, jobject value)
Java: [static] int StatusIsEF_ToInt(MqStatusIsEF value) → C-API return the MqStatusIsEF as integ...
JNIEXPORT jobject JNICALL Java_jvmqmsgque_MqMsgque_SlaveE_1FromInt(JNIEnv *env, jclass class, jint value)
Java: [static] MqSlaveE SlaveE_FromInt(int value) → C-API return the MqSlaveE from integer …
JNIEXPORT jstring JNICALL Java_jvmqmsgque_MqMsgque_WaitOnEventE_1ToString(JNIEnv *env, jclass class, jobject value)
Java: [static] String WaitOnEventE_ToString(MqWaitOnEventE value) → C-API return the MqWaitOnEve...
JNIEXPORT jobject JNICALL Java_jvmqmsgque_MqMsgque_WaitOnEventE_1FromInt(JNIEnv *env, jclass class, jint value)
Java: [static] MqWaitOnEventE WaitOnEventE_FromInt(int value) → C-API return the MqWaitOnEventE ...
JNIEXPORT jint JNICALL Java_jvmqmsgque_MqMsgque_StartE_1ToInt(JNIEnv *env, jclass class, jobject value)
Java: [static] int StartE_ToInt(MqStartE value) → C-API return the MqStartE as integer …
JNIEXPORT jobject JNICALL Java_jvmqmsgque_MqMsgque_StatusIsEF_1FromInt(JNIEnv *env, jclass class, jint value)
Java: [static] MqStatusIsEF StatusIsEF_FromInt(int value) → C-API return the MqStatusIsEF from i...
JNIEXPORT jstring JNICALL Java_jvmqmsgque_MqMsgque_SlaveE_1ToString(JNIEnv *env, jclass class, jobject value)
Java: [static] String SlaveE_ToString(MqSlaveE value) → C-API return the MqSlaveE as string …
MK_STR MqHelp(MK_STRN tool)
write jvmqmsgque specific user-help to stderr
MK_STR MqHelpMsgque(void)
return a page with the usage of all jvmqmsgque specific options
JNIEXPORT jstring JNICALL Java_jvmqmsgque_MqMsgque_Help(JNIEnv *env, jclass class, jstring tool)
Java: [static] String Help(String tool) → C-API write jvmqmsgque specific user-help to stderr
JNIEXPORT jstring JNICALL Java_jvmqmsgque_MqMsgque_HelpMsgque(JNIEnv *env, jclass class)
Java: [static] String HelpMsgque() → C-API return a page with the usage of all jvmqmsgque specif...
MK_BFL MqInitGetArg0(void)
get the process startup-prefix argument
MK_BFL MqInitResetArg0(void)
Reset the process-startup-prefix argument to an empty list …
void MqInitSetArg0(MK_BAC bfl)
set the process startup-prefix argument to bfl
JNIEXPORT jobject JNICALL Java_jvmqmsgque_MqMsgque_InitGetArg0(JNIEnv *env, jclass class)
Java: [static] MkBufferListC InitGetArg0() → C-API get the process startup-prefix argument
JNIEXPORT void JNICALL Java_jvmqmsgque_MqMsgque_InitSetArg0(JNIEnv *env, jclass class, jobject bfl)
Java: [static] InitSetArg0(?MkBufferListC bfl = null?) → C-API set the process startup-prefix ar...
JNIEXPORT jobject JNICALL Java_jvmqmsgque_MqMsgque_InitResetArg0(JNIEnv *env, jclass class)
Java: [static] MkBufferListC InitResetArg0() → C-API Reset the process-startup-prefix argument t...
void MqCleanup(void)
cleanup jvmqmsgque internal memory …
void MqSetup(void)
setup jvmqmsgque internal memory …
JNIEXPORT void JNICALL Setup(JNIEnv *env, jclass class)
Java: [static] Setup() → C-API setup jvmqmsgque internal memory …
JNIEXPORT void JNICALL Java_jvmqmsgque_MqMsgque_Cleanup(JNIEnv *env, jclass class)
Java: [static] Cleanup() → C-API cleanup jvmqmsgque internal memory …
void MqSysServerThreadMain(struct MqSysServerThreadMainS *data)
initialize a new thread …
struct MqLalS MqLal
Language Abstraction Layer in duty.
#define MQ_RT_CALL_ONLY
bool MqRuntimeThreadPoolUse
#define MQ_STATIC_RT
PUBLIC data structure for the jvmqmsgque-specific-data
MqSysServerThreadF MqSysServerThreadCB
thread server create syscall with jvmqmsgque error plugin
data used to initialize a new created thread …