theLink 10.0
Loading...
Searching...
No Matches
LibMqMsgque_jv.c File Reference

tag: nhi1-release-250425 More...

#include "jni_h/jvmqmsgque_MqMsgque.h"
#include "LibMqMsgque_private_jv.h"
#include "MqDefs_jv.h"
+ Include dependency graph for LibMqMsgque_jv.c:

Go to the source code of this file.

Macros

#define META_FILE_NAME   "LibMqMsgque_jv.c"
 
#define defDebug0
 
#define defClass(v, n)
 
#define defOAtr(v, c, n, s)
 
#define defSAtr(v, c, n, s)
 
#define defOMth(v, c, n, s)
 
#define defSMth(v, c, n, s)
 
#define MqCleanupTmpl()
 
#define MqSetupTmpl()
 
#define check(v, c)
 
#define defClass(v, n)
 
#define defOAtr(v, c, n, s)
 
#define defSAtr(v, c, n, s)
 
#define defOMth(v, c, n, s)
 
#define defSMth(v, c, n, s)
 
#define defDebug0   MB;
 
#define defDebug0
 
#define defClass(v, n)
 
#define defOAtr(v, c, n, s)
 
#define defSAtr(v, c, n, s)
 
#define defOMth(v, c, n, s)
 
#define defSMth(v, c, n, s)
 

Functions

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 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 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 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 integer …
 
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 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 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_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_SlaveE_1ToString (JNIEnv *env, jclass class, jobject value)
  Java: [static] String SlaveE_ToString(MqSlaveE value) C-API
return the MqSlaveE as string …
 
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 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 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 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 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 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 MqWaitOnEventE as string …
 
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 specific options
 
JNIEXPORT jobject JNICALL Java_jvmqmsgque_MqMsgque_InitGetArg0 (JNIEnv *env, jclass class)
  Java: [static] MkBufferListC InitGetArg0() C-API
get the process startup-prefix argument
 
JNIEXPORT jobject JNICALL Java_jvmqmsgque_MqMsgque_InitResetArg0 (JNIEnv *env, jclass class)
  Java: [static] MkBufferListC InitResetArg0() C-API
Reset the process-startup-prefix argument to an empty list …
 
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 argument to bfl
 
JNIEXPORT void JNICALL Java_jvmqmsgque_MqMsgque_Cleanup (JNIEnv *env, jclass class)
  Java: [static] Cleanup() C-API
cleanup 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_MqSysServerThreadMain (JNIEnv *env, jclass cls, jlong mainL)
 
static enum MkErrorE jvmqmsgque_MqSysServerThreadCB (MK_RT mkrt, MQ_CTX const ctx, struct MqSysServerThreadMainS *const argP, MK_STRN name, int state, struct MkIdS *idP)
 
static void jvmqmsgque_sMqRuntimeCallback (MK_RT mkrt)
 

Variables

jclass jclass_List
 
jfieldID jfieldID_List
 
jmethodID jmethodID_List
 
static struct MkRuntimeCallbackS sMqRuntimeCallback = {0}
 
bool MqRuntimeThreadPoolUse = true
 

Detailed Description

tag: nhi1-release-250425

Definition in file LibMqMsgque_jv.c.

Macro Definition Documentation

◆ check

#define check ( v,
c )
Value:
if ((v=(c))==NULL) return JNI_ERR

◆ defClass [1/3]

#define defClass ( v,
n )
Value:
jclass v;

Definition at line 21 of file LibMqMsgque_jv.c.

◆ defClass [2/3]

#define defClass ( v,
n )
Value:
check(cls, (*env)->FindClass(env, n));\
JavaErrorCheck; \
check(v, (*env)->NewGlobalRef(env, cls)); \
JavaErrorCheck;
#define check(v, c)

Definition at line 21 of file LibMqMsgque_jv.c.

◆ defClass [3/3]

#define defClass ( v,
n )
Value:
(*env)->DeleteGlobalRef(env, v);

Definition at line 21 of file LibMqMsgque_jv.c.

◆ defDebug0 [1/3]

#define defDebug0

Definition at line 20 of file LibMqMsgque_jv.c.

◆ defDebug0 [2/3]

#define defDebug0   MB;

Definition at line 20 of file LibMqMsgque_jv.c.

◆ defDebug0 [3/3]

#define defDebug0

Definition at line 20 of file LibMqMsgque_jv.c.

◆ defOAtr [1/3]

#define defOAtr ( v,
c,
n,
s )
Value:
jfieldID v;

Definition at line 22 of file LibMqMsgque_jv.c.

◆ defOAtr [2/3]

#define defOAtr ( v,
c,
n,
s )
Value:
check(v, (*env)->GetFieldID(env,c,n,s)); \
JavaErrorCheck;

Definition at line 22 of file LibMqMsgque_jv.c.

◆ defOAtr [3/3]

#define defOAtr ( v,
c,
n,
s )

Definition at line 22 of file LibMqMsgque_jv.c.

◆ defOMth [1/3]

#define defOMth ( v,
c,
n,
s )
Value:
jmethodID v;

Definition at line 24 of file LibMqMsgque_jv.c.

◆ defOMth [2/3]

#define defOMth ( v,
c,
n,
s )
Value:
check(v, (*env)->GetMethodID(env,c,n,s)); \
JavaErrorCheck;

Definition at line 24 of file LibMqMsgque_jv.c.

◆ defOMth [3/3]

#define defOMth ( v,
c,
n,
s )

Definition at line 24 of file LibMqMsgque_jv.c.

◆ defSAtr [1/3]

#define defSAtr ( v,
c,
n,
s )
Value:
jfieldID v;

Definition at line 23 of file LibMqMsgque_jv.c.

◆ defSAtr [2/3]

#define defSAtr ( v,
c,
n,
s )
Value:
check(v, (*env)->GetStaticFieldID(env,c,n,s)); \
JavaErrorCheck;

Definition at line 23 of file LibMqMsgque_jv.c.

◆ defSAtr [3/3]

#define defSAtr ( v,
c,
n,
s )

Definition at line 23 of file LibMqMsgque_jv.c.

◆ defSMth [1/3]

#define defSMth ( v,
c,
n,
s )
Value:
jmethodID v;

Definition at line 25 of file LibMqMsgque_jv.c.

◆ defSMth [2/3]

#define defSMth ( v,
c,
n,
s )
Value:
check(v, (*env)->GetStaticMethodID(env,c,n,s)); \
JavaErrorCheck;

Definition at line 25 of file LibMqMsgque_jv.c.

◆ defSMth [3/3]

#define defSMth ( v,
c,
n,
s )

Definition at line 25 of file LibMqMsgque_jv.c.

◆ META_FILE_NAME

#define META_FILE_NAME   "LibMqMsgque_jv.c"

Definition at line 11 of file LibMqMsgque_jv.c.

◆ MqCleanupTmpl

#define MqCleanupTmpl ( )

Definition at line 36 of file LibMqMsgque_jv.c.

◆ MqSetupTmpl

#define MqSetupTmpl ( )

Definition at line 37 of file LibMqMsgque_jv.c.

Function Documentation

◆ Java_jvmqmsgque_MqMsgque_MqSysServerThreadMain()

JNIEXPORT void JNICALL Java_jvmqmsgque_MqMsgque_MqSysServerThreadMain ( JNIEnv * env,
jclass cls,
jlong mainL )

Definition at line 325 of file LibMqMsgque_jv.c.

327{
329}
void MqSysServerThreadMain(struct MqSysServerThreadMainS *data)
initialize a new thread …
data used to initialize a new created thread …

◆ jvmqmsgque_MqSysServerThreadCB()

static enum MkErrorE jvmqmsgque_MqSysServerThreadCB ( MK_RT mkrt,
MQ_CTX const ctx,
struct MqSysServerThreadMainS *const argP,
MK_STRN name,
int state,
struct MkIdS * idP )
static

Definition at line 339 of file LibMqMsgque_jv.c.

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}
#define MkErrorStack_0E_Check()
#define MkErrorSetV_1E(printfmt,...)
uintptr_t MK_IDNT
MK_ID_THREAD
bool setByExtern
MK_IDNT val
bool ioIsPipe
enum MkIdSE type

◆ jvmqmsgque_sMqRuntimeCallback()

static void jvmqmsgque_sMqRuntimeCallback ( MK_RT mkrt)
static

Definition at line 406 of file LibMqMsgque_jv.c.

406 {
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}
#define MQ_RT_CALL_ONLY
#define MQ_STATIC_RT

Variable Documentation

◆ jclass_List

jclass jclass_List

Definition at line 16 of file LibMqMsgque_jv.c.

◆ jfieldID_List

jfieldID jfieldID_List

Definition at line 17 of file LibMqMsgque_jv.c.

◆ jmethodID_List

jmethodID jmethodID_List

Definition at line 18 of file LibMqMsgque_jv.c.

◆ sMqRuntimeCallback

struct MkRuntimeCallbackS sMqRuntimeCallback = {0}
static

Definition at line 418 of file LibMqMsgque_jv.c.

418{0};