theLink 10.0
Loading...
Searching...
No Matches
MqContextC_Proxy_JV_API

MqContextC - copy data from the read-data-package of the sourceCtx to the send-data-package of the targetCtx More...

+ Collaboration diagram for MqContextC_Proxy_JV_API:

Functions

native void jvmqmsgque.MqContextC.ProxyForward (MqContextC targetCtx, MqDumpC dump, long timeout)
  Java: sourceCtx.ProxyForward(MqContextC targetCtx, ?MqDumpC dump = null?, ?long timeout = MkTimeoutE.DEFAULT.get()?) C-API
send the entire read-data-package-data to the link-target
 
void jvmqmsgque.MqContextC.ProxyForward (MqContextC targetCtx)
  Java: sourceCtx.ProxyForward(MqContextC targetCtx, ?MqDumpC dump = null?, ?long timeout = MkTimeoutE.DEFAULT.get()?) C-API
send the entire read-data-package-data to the link-target
 
void jvmqmsgque.MqContextC.ProxyForward (MqContextC targetCtx, MqDumpC dump)
  Java: sourceCtx.ProxyForward(MqContextC targetCtx, ?MqDumpC dump = null?, ?long timeout = MkTimeoutE.DEFAULT.get()?) C-API
send the entire read-data-package-data to the link-target
 
native void jvmqmsgque.MqContextC.ProxyItem (MqContextC targetCtx)
  Java: sourceCtx.ProxyItem(MqContextC targetCtx) C-API
Copy a single-data-item from the sourceCtx to the targetCtx.
 
JNIEXPORT void JNICALL Java_jvmqmsgque_MqContextC_ProxyForward (JNIEnv *env, jobject self, jobject targetCtx, jobject dump, jlong timeout)
  Java: sourceCtx.ProxyForward(MqContextC targetCtx, ?MqDumpC dump = null?, ?long timeout = MkTimeoutE.DEFAULT.get()?) C-API
send the entire read-data-package-data to the link-target
 
JNIEXPORT void JNICALL Java_jvmqmsgque_MqContextC_ProxyItem (JNIEnv *env, jobject self, jobject targetCtx)
  Java: sourceCtx.ProxyItem(MqContextC targetCtx) C-API
Copy a single-data-item from the sourceCtx to the targetCtx.
 

Detailed Description

MqContextC - copy data from the read-data-package of the sourceCtx to the send-data-package of the targetCtx

The proxy-feature is used in a filter-setup to process-and-forward incoming data.

See also
MqDumpC

Example: A typical proxy-setup in pseudo C++ code

void myService () {
MqContextC *ftr = SlaveGetFilter(); // get the "slave" with id "1" (the filter)
...
ftr->SendSTART(); // start the FORWARD
while (ReadItemExists()) { // read ALL data from the ORIGINAL service-call
ProxyItem(ftr); // forward a SINGEL item from "this" to "ftr"
}
...
ftr->SendEND_AND_WAIT("MYTK"); // send the data.package to "ftr"
...
SendSTART(); // start the ANSWER
while (ftr->ReadItemExists()) { // read ALL data from the "MYTK" service-call
ftr->ProxyItem(this); // forward a SINGEL item from "ftr" to "this"
}
SendRETURN(); // answer the ORIGINAL service call
}

The proxy-feature is used in a filter-setup to process-and-forward incoming data.

See also
MqDumpC

Example: A typical proxy-setup in pseudo C++ code

void myService () {
MqContextC *ftr = SlaveGetFilter(); // get the "slave" with id "1" (the filter)
...
ftr->SendSTART(); // start the FORWARD
while (ReadItemExists()) { // read ALL data from the ORIGINAL service-call
ProxyItem(ftr); // forward a SINGEL item from "this" to "ftr"
}
...
ftr->SendEND_AND_WAIT("MYTK"); // send the data.package to "ftr"
...
SendSTART(); // start the ANSWER
while (ftr->ReadItemExists()) { // read ALL data from the "MYTK" service-call
ftr->ProxyItem(this); // forward a SINGEL item from "ftr" to "this"
}
SendRETURN(); // answer the ORIGINAL service call
}

Function Documentation

◆ Java_jvmqmsgque_MqContextC_ProxyForward()

JNIEXPORT void JNICALL Java_jvmqmsgque_MqContextC_ProxyForward ( JNIEnv * env,
jobject self,
jobject targetCtx,
jobject dump,
jlong timeout )

Java: sourceCtx.ProxyForward(MqContextC targetCtx, ?MqDumpC dump = null?, ?long timeout = MkTimeoutE.DEFAULT.get()?) C-API
send the entire read-data-package-data to the link-target

Definition at line 1243 of file MqContextC_jv.c.

1243 {
1244 MQ_CTX hdl = (MQ_CTX)pObj2Hdl(env,"MqContextC",self);
1245 JavaErrorCheck;
1246 MkRtSetup_X(hdl);
1247 MQ_CTX targetCtx_hdl = (MQ_CTX)pObj2Hdl(env,"MqContextC",targetCtx);
1248 JavaErrorCheck;
1249 MQ_DMP dump_hdl = (MQ_DMP)pObj2Hdl__null_allow(env,dump);
1250 JavaErrorCheck;
1251 enum MkErrorE errVal = MqProxyForward(hdl, targetCtx_hdl, dump_hdl, timeout);
1252 MkErrorC_Check(hdl, errVal)
1253error:
1254 return;
1255}
MkErrorE
#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 MqProxyForward(...)
struct MqDumpS * MQ_DMP
class-shortcut for struct MqDumpS *, all shortcut using the XX_YYY syntax (only for public API) …
PUBLIC data structure for the jvmqmsgque-specific-data
MqDumpC - the class known as dmp or dump is used to export a jvmqmsgque data package as binary …

◆ Java_jvmqmsgque_MqContextC_ProxyItem()

JNIEXPORT void JNICALL Java_jvmqmsgque_MqContextC_ProxyItem ( JNIEnv * env,
jobject self,
jobject targetCtx )

Java: sourceCtx.ProxyItem(MqContextC targetCtx) C-API
Copy a single-data-item from the sourceCtx to the targetCtx.

Definition at line 1258 of file MqContextC_jv.c.

1258 {
1259 MQ_CTX hdl = (MQ_CTX)pObj2Hdl(env,"MqContextC",self);
1260 JavaErrorCheck;
1261 MkRtSetup_X(hdl);
1262 MQ_CTX targetCtx_hdl = (MQ_CTX)pObj2Hdl(env,"MqContextC",targetCtx);
1263 JavaErrorCheck;
1264 enum MkErrorE errVal = MqProxyItem(hdl, targetCtx_hdl);
1265 MkErrorC_Check(hdl, errVal)
1266error:
1267 return;
1268}
#define MqProxyItem(...)

◆ ProxyForward() [1/3]

void jvmqmsgque.MqContextC.ProxyForward ( MqContextC targetCtx)

Java: sourceCtx.ProxyForward(MqContextC targetCtx, ?MqDumpC dump = null?, ?long timeout = MkTimeoutE.DEFAULT.get()?) C-API
send the entire read-data-package-data to the link-target

Definition at line 628 of file MqContextC.java.

628 {
629 ProxyForward (targetCtx, (MqDumpC) null, MkTimeoutE.DEFAULT.get());
630 }
native void ProxyForward(MqContextC targetCtx, MqDumpC dump, long timeout)
Java: sourceCtx.ProxyForward(MqContextC targetCtx, ?MqDumpC dump = null?, ?long timeout = MkTimeoutE...

◆ ProxyForward() [2/3]

void jvmqmsgque.MqContextC.ProxyForward ( MqContextC targetCtx,
MqDumpC dump )

Java: sourceCtx.ProxyForward(MqContextC targetCtx, ?MqDumpC dump = null?, ?long timeout = MkTimeoutE.DEFAULT.get()?) C-API
send the entire read-data-package-data to the link-target

Definition at line 633 of file MqContextC.java.

633 {
634 ProxyForward (targetCtx, dump, MkTimeoutE.DEFAULT.get());
635 }

◆ ProxyForward() [3/3]

native void jvmqmsgque.MqContextC.ProxyForward ( MqContextC targetCtx,
MqDumpC dump,
long timeout )

Java: sourceCtx.ProxyForward(MqContextC targetCtx, ?MqDumpC dump = null?, ?long timeout = MkTimeoutE.DEFAULT.get()?) C-API
send the entire read-data-package-data to the link-target

+ Here is the caller graph for this function:

◆ ProxyItem()

native void jvmqmsgque.MqContextC.ProxyItem ( MqContextC targetCtx)

Java: sourceCtx.ProxyItem(MqContextC targetCtx) C-API
Copy a single-data-item from the sourceCtx to the targetCtx.