theLink 10.0
Loading...
Searching...
No Matches
MqContextC_Service_JV_API

MqContextC - create and manage a service … More...

+ Collaboration diagram for MqContextC_Service_JV_API:

Classes

interface  jvmqmsgque.MqServiceIF
 used for callback function pointer management → C-API: MqCallbackS More...
 

Functions

native void jvmqmsgque.MqContextC.ServiceCreate (String token, MqServiceIF callback)
  Java: ctx.ServiceCreate(String token, MqServiceIF callback) C-API
create a link between a service-token and a service-callback
 
native void jvmqmsgque.MqContextC.ServiceDelete (String token)
  Java: ctx.ServiceDelete(String token) C-API
delete a service. …
 
native boolean jvmqmsgque.MqContextC.ServiceIsTransaction ()
  Java: boolean ctx.ServiceIsTransaction() C-API
check if the ongoing-service-call belongs to a transaction …
 
native void jvmqmsgque.MqContextC.ServiceProxy (String token, int id)
  Java: ctx.ServiceProxy(String token, ?int id = MqSlaveE.OTHER.get()?) C-API
create a service to link a master-context with a slave-context. …
 
native void jvmqmsgque.MqContextC.ServiceProxyCtx (String token, MqContextC target)
  Java: ctx.ServiceProxyCtx(String token, MqContextC target) C-API
same as MqServiceProxy but use an MqContextC as input.
 
native boolean jvmqmsgque.MqContextC.ServiceProxyCtxExists (String token, MqContextC target)
  Java: boolean ctx.ServiceProxyCtxExists(String token, MqContextC target) C-API
check if service who belongs to token is a proxy-service
 
native void jvmqmsgque.MqContextC.ServiceProxyRoundRobin (String token, String ident)
  Java: ctx.ServiceProxyRoundRobin(String token, String ident) C-API
create a proxy-service using Round-Robin as load-balancer …
 
void jvmqmsgque.MqContextC.ServiceProxy (String token)
  Java: ctx.ServiceProxy(String token, ?int id = MqSlaveE.OTHER.get()?) C-API
create a service to link a master-context with a slave-context. …
 
native void jvmqmsgque.MqContextC.ServiceStorage (String token)
  Java: ctx.ServiceStorage(String token) C-API
setup a service listen on a MqContextC_ServiceApi_Identifer and save all read-data-package into the STORAGE
 
native boolean jvmqmsgque.MqContextC.ServiceTokenCheck (String token)
  Java: boolean ctx.ServiceTokenCheck(String token) C-API
in an ongoing-service-call check if the current MqContextC_ServiceApi_Identifer is token
 
native boolean jvmqmsgque.MqContextC.ServiceTokenExists (String token)
  Java: boolean ctx.ServiceTokenExists(String token) C-API
check if the MqContextC_ServiceApi_Identifer token is defined as ctx service …
 
native String jvmqmsgque.MqContextC.ServiceTokenGet ()
  Java: String ctx.ServiceTokenGet() C-API
in an ongoing-service-call get the current MqContextC_ServiceApi_Identifer
 
JNIEXPORT void JNICALL Java_jvmqmsgque_MqContextC_ServiceCreate (JNIEnv *env, jobject self, jstring token, jobject callback)
  Java: ctx.ServiceCreate(String token, MqServiceIF callback) C-API
create a link between a service-token and a service-callback
 
JNIEXPORT void JNICALL Java_jvmqmsgque_MqContextC_ServiceDelete (JNIEnv *env, jobject self, jstring token)
  Java: ctx.ServiceDelete(String token) C-API
delete a service. …
 
JNIEXPORT jboolean JNICALL Java_jvmqmsgque_MqContextC_ServiceIsTransaction (JNIEnv *env, jobject self)
  Java: boolean ctx.ServiceIsTransaction() C-API
check if the ongoing-service-call belongs to a transaction …
 
JNIEXPORT void JNICALL Java_jvmqmsgque_MqContextC_ServiceProxy (JNIEnv *env, jobject self, jstring token, jint id)
  Java: ctx.ServiceProxy(String token, ?int id = MqSlaveE.OTHER.get()?) C-API
create a service to link a master-context with a slave-context. …
 
JNIEXPORT void JNICALL Java_jvmqmsgque_MqContextC_ServiceProxyCtx (JNIEnv *env, jobject self, jstring token, jobject target)
  Java: ctx.ServiceProxyCtx(String token, MqContextC target) C-API
same as MqServiceProxy but use an MqContextC as input.
 
JNIEXPORT jboolean JNICALL Java_jvmqmsgque_MqContextC_ServiceProxyCtxExists (JNIEnv *env, jobject self, jstring token, jobject target)
  Java: boolean ctx.ServiceProxyCtxExists(String token, MqContextC target) C-API
check if service who belongs to token is a proxy-service
 
JNIEXPORT void JNICALL Java_jvmqmsgque_MqContextC_ServiceProxyRoundRobin (JNIEnv *env, jobject self, jstring token, jstring ident)
  Java: ctx.ServiceProxyRoundRobin(String token, String ident) C-API
create a proxy-service using Round-Robin as load-balancer …
 
JNIEXPORT void JNICALL Java_jvmqmsgque_MqContextC_ServiceStorage (JNIEnv *env, jobject self, jstring token)
  Java: ctx.ServiceStorage(String token) C-API
setup a service listen on a MqContextC_ServiceApi_Identifer and save all read-data-package into the STORAGE
 
JNIEXPORT jboolean JNICALL Java_jvmqmsgque_MqContextC_ServiceTokenCheck (JNIEnv *env, jobject self, jstring token)
  Java: boolean ctx.ServiceTokenCheck(String token) C-API
in an ongoing-service-call check if the current MqContextC_ServiceApi_Identifer is token
 
JNIEXPORT jboolean JNICALL Java_jvmqmsgque_MqContextC_ServiceTokenExists (JNIEnv *env, jobject self, jstring token)
  Java: boolean ctx.ServiceTokenExists(String token) C-API
check if the MqContextC_ServiceApi_Identifer token is defined as ctx service …
 
JNIEXPORT jstring JNICALL Java_jvmqmsgque_MqContextC_ServiceTokenGet (JNIEnv *env, jobject self)
  Java: String ctx.ServiceTokenGet() C-API
in an ongoing-service-call get the current MqContextC_ServiceApi_Identifer
 

Detailed Description

MqContextC - create and manage a service …

To provide a service is the main purpose of a server and the main-purpose of a client/server connection is to call a service and to process the result.
A service can be defined on the server or on the client. On the server a service can be initial setup with MqServerSetupIF method and finally cleanup with MqServerCleanupIF.

‍A service is created with the MqServiceCreate and deleted with the MqServiceDelete.

A service can be created and deleted during the entire life-cycle of the server or the client. If the server/client-context is deleted all services of the are deleted also.

‍A MqServiceDelete is not required.

Creating or deleting a service is like granting or revoking the right to access a single feature.

eventloop

To receive a data-package on a service the event-loop have to be active. The event-loop ia always active on an synchronous-service-call . On a server the event-loop is started with MqProcessEvent at startup.
synchronous-service-call
A synchronous-service-call always block and enter the event-loop to wait for an answer
asynchronous-service-call
A asynchronous-service-call always return immediately and the possible result is received on a callback

callback

A callback is the function called by a service and required to receive data from remote.
A callback is created with MqServiceCreate or is part of the service-call.
A callback can be a service-identifer or a service-callback.
service-call with callback
SendEND_AND_CALLBACK, SendEND_AND_SUB, SendEND_AND_TRANSACTION
service-call without callback
SendEND, SendEND_AND_WAIT

Example from MyServer.java define the service HLWO on the server-link-setup

package example;

import jvmkkernel.*;
import jvmqmsgque.*;

// package-item
final class MyServer extends MqContextC implements MqServerSetupIF {

  // Factory Constructor
  public MyServer(MqContextC tmpl) {
    super(tmpl);
  }

  // service to serve all incoming requests for token "HLWO"
  class MyFirstCallback implements MqServiceIF {
    public void Callback(MqContextC ctx) {
      SendSTART();
      SendSTR(ReadSTR() + " World");
      SendRETURN();
    }
  }

  // define a service as link between the token "HLWO" and the class "MyFirstService"
  public void ServerSetup() {
    ServiceCreate("HLWO", new MyFirstCallback());
  }

  // -------------------------------------------------------------

  // package-main
  public static void main(String[] argv) {
  
    // create the "MyServer" factory… and return the initial (top) object
    MqContextC srv = MqFactoryC.Add(MyServer.class).New();

    try {
      srv.LinkCreate(argv);
      srv.ProcessEvent(MqWaitOnEventE.FOREVER);
    } catch (Throwable e) {
      srv.ErrorCatch(e);
    }
    srv.Exit();
  }
}

To provide a service is the main purpose of a server and the main-purpose of a client/server connection is to call a service and to process the result.
A service can be defined on the server or on the client. On the server a service can be initial setup with MqServerSetupIF method and finally cleanup with MqServerCleanupIF.

‍A service is created with the MqServiceCreate and deleted with the MqServiceDelete.

A service can be created and deleted during the entire life-cycle of the server or the client. If the server/client-context is deleted all services of the are deleted also.

‍A MqServiceDelete is not required.

Creating or deleting a service is like granting or revoking the right to access a single feature.

eventloop

To receive a data-package on a service the event-loop have to be active. The event-loop ia always active on an synchronous-service-call . On a server the event-loop is started with MqProcessEvent at startup.
synchronous-service-call
A synchronous-service-call always block and enter the event-loop to wait for an answer
asynchronous-service-call
A asynchronous-service-call always return immediately and the possible result is received on a callback

callback

A callback is the function called by a service and required to receive data from remote.
A callback is created with MqServiceCreate or is part of the service-call.
A callback can be a service-identifer or a service-callback.
service-call with callback
SendEND_AND_CALLBACK, SendEND_AND_SUB, SendEND_AND_TRANSACTION
service-call without callback
SendEND, SendEND_AND_WAIT

Example from MyServer.java define the service HLWO on the server-link-setup

package example;

import jvmkkernel.*;
import jvmqmsgque.*;

// package-item
final class MyServer extends MqContextC implements MqServerSetupIF {

  // Factory Constructor
  public MyServer(MqContextC tmpl) {
    super(tmpl);
  }

  // service to serve all incoming requests for token "HLWO"
  class MyFirstCallback implements MqServiceIF {
    public void Callback(MqContextC ctx) {
      SendSTART();
      SendSTR(ReadSTR() + " World");
      SendRETURN();
    }
  }

  // define a service as link between the token "HLWO" and the class "MyFirstService"
  public void ServerSetup() {
    ServiceCreate("HLWO", new MyFirstCallback());
  }

  // -------------------------------------------------------------

  // package-main
  public static void main(String[] argv) {
  
    // create the "MyServer" factory… and return the initial (top) object
    MqContextC srv = MqFactoryC.Add(MyServer.class).New();

    try {
      srv.LinkCreate(argv);
      srv.ProcessEvent(MqWaitOnEventE.FOREVER);
    } catch (Throwable e) {
      srv.ErrorCatch(e);
    }
    srv.Exit();
  }
}

Function Documentation

◆ Java_jvmqmsgque_MqContextC_ServiceCreate()

JNIEXPORT void JNICALL Java_jvmqmsgque_MqContextC_ServiceCreate ( JNIEnv * env,
jobject self,
jstring token,
jobject callback )

Java: ctx.ServiceCreate(String token, MqServiceIF callback) C-API
create a link between a service-token and a service-callback

Definition at line 2205 of file MqContextC_jv.c.

2205 {
2206 MQ_CTX hdl = (MQ_CTX)pObj2Hdl(env,"MqContextC",self);
2207 JavaErrorCheck;
2208 MkRtSetup_X(hdl);
2209 MQ_TOK token_ptr = (token?(*env)->GetStringUTFChars(env,token,NULL):NULL);
2210 JavaErrorCheck;
2211 MK_CBP callback_ptr = MK(ProcCreate)(MK_RT_CALL env, callback, NULL, NS(MID_callback), true);
2212 JavaErrorCheck;
2213 enum MkErrorE errVal = MqServiceCreate(hdl, token_ptr, NS(ServiceCall), callback_ptr, NS(ServiceFree), NULL);
2214 MkErrorC_Check(hdl, errVal)
2215 if (token_ptr) (*env)->ReleaseStringUTFChars(env,token,token_ptr);
2216error:
2217 return;
2218}
MkErrorE
MK_PTRB * MK_CBP
#define MK_RT_CALL
#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 MqServiceCreate(...)
MK_STRN MQ_TOK
MqContextC - a char[4+1] or hex[8+1] string used to unique identify a service …
PUBLIC data structure for the jvmqmsgque-specific-data

◆ Java_jvmqmsgque_MqContextC_ServiceDelete()

JNIEXPORT void JNICALL Java_jvmqmsgque_MqContextC_ServiceDelete ( JNIEnv * env,
jobject self,
jstring token )

Java: ctx.ServiceDelete(String token) C-API
delete a service. …

Definition at line 2221 of file MqContextC_jv.c.

2221 {
2222 MQ_CTX hdl = (MQ_CTX)pObj2Hdl(env,"MqContextC",self);
2223 JavaErrorCheck;
2224 MkRtSetup_X(hdl);
2225 MQ_TOK token_ptr = (token?(*env)->GetStringUTFChars(env,token,NULL):NULL);
2226 JavaErrorCheck;
2227 enum MkErrorE errVal = MqServiceDelete(hdl, token_ptr);
2228 MkErrorC_Check(hdl, errVal)
2229 if (token_ptr) (*env)->ReleaseStringUTFChars(env,token,token_ptr);
2230error:
2231 return;
2232}
#define MqServiceDelete(...)

◆ Java_jvmqmsgque_MqContextC_ServiceIsTransaction()

JNIEXPORT jboolean JNICALL Java_jvmqmsgque_MqContextC_ServiceIsTransaction ( JNIEnv * env,
jobject self )

Java: boolean ctx.ServiceIsTransaction() C-API
check if the ongoing-service-call belongs to a transaction …

Definition at line 2235 of file MqContextC_jv.c.

2235 {
2236 MQ_CTX hdl = (MQ_CTX)pObj2Hdl(env,"MqContextC",self);
2237 JavaErrorCheck;
2238 MkRtSetup_X(hdl);
2239 MK_BOOL __retVal__L = MqServiceIsTransaction(hdl);
2240 jboolean __retVal__S = __retVal__L;
2241 return __retVal__S;
2242error:
2243 return 0;
2244}
bool MK_BOOL
static bool MqServiceIsTransaction(MQ_CTX const ctx)
check if the ongoing-service-call belongs to a transaction …

◆ Java_jvmqmsgque_MqContextC_ServiceProxy()

JNIEXPORT void JNICALL Java_jvmqmsgque_MqContextC_ServiceProxy ( JNIEnv * env,
jobject self,
jstring token,
jint id )

Java: ctx.ServiceProxy(String token, ?int id = MqSlaveE.OTHER.get()?) C-API
create a service to link a master-context with a slave-context. …

Definition at line 2247 of file MqContextC_jv.c.

2247 {
2248 MQ_CTX hdl = (MQ_CTX)pObj2Hdl(env,"MqContextC",self);
2249 JavaErrorCheck;
2250 MkRtSetup_X(hdl);
2251 MQ_TOK token_ptr = (token?(*env)->GetStringUTFChars(env,token,NULL):NULL);
2252 JavaErrorCheck;
2253 enum MkErrorE errVal = MqServiceProxy(hdl, token_ptr, id);
2254 MkErrorC_Check(hdl, errVal)
2255 if (token_ptr) (*env)->ReleaseStringUTFChars(env,token,token_ptr);
2256error:
2257 return;
2258}
#define MqServiceProxy(...)

◆ Java_jvmqmsgque_MqContextC_ServiceProxyCtx()

JNIEXPORT void JNICALL Java_jvmqmsgque_MqContextC_ServiceProxyCtx ( JNIEnv * env,
jobject self,
jstring token,
jobject target )

Java: ctx.ServiceProxyCtx(String token, MqContextC target) C-API
same as MqServiceProxy but use an MqContextC as input.

Definition at line 2261 of file MqContextC_jv.c.

2261 {
2262 MQ_CTX hdl = (MQ_CTX)pObj2Hdl(env,"MqContextC",self);
2263 JavaErrorCheck;
2264 MkRtSetup_X(hdl);
2265 MQ_CTX target_hdl = (MQ_CTX)pObj2Hdl(env,"MqContextC",target);
2266 JavaErrorCheck;
2267 MQ_TOK token_ptr = (token?(*env)->GetStringUTFChars(env,token,NULL):NULL);
2268 JavaErrorCheck;
2269 enum MkErrorE errVal = MqServiceProxyCtx(hdl, token_ptr, target_hdl);
2270 MkErrorC_Check(hdl, errVal)
2271 if (token_ptr) (*env)->ReleaseStringUTFChars(env,token,token_ptr);
2272error:
2273 return;
2274}
#define MqServiceProxyCtx(...)

◆ Java_jvmqmsgque_MqContextC_ServiceProxyCtxExists()

JNIEXPORT jboolean JNICALL Java_jvmqmsgque_MqContextC_ServiceProxyCtxExists ( JNIEnv * env,
jobject self,
jstring token,
jobject target )

Java: boolean ctx.ServiceProxyCtxExists(String token, MqContextC target) C-API
check if service who belongs to token is a proxy-service

Definition at line 2277 of file MqContextC_jv.c.

2277 {
2278 MQ_CTX hdl = (MQ_CTX)pObj2Hdl(env,"MqContextC",self);
2279 JavaErrorCheck;
2280 MkRtSetup_X(hdl);
2281 MQ_CTX target_hdl = (MQ_CTX)pObj2Hdl(env,"MqContextC",target);
2282 JavaErrorCheck;
2283 MQ_TOK token_ptr = (token?(*env)->GetStringUTFChars(env,token,NULL):NULL);
2284 JavaErrorCheck;
2285 MK_BOOL __retVal__L = MqServiceProxyCtxExists(hdl, token_ptr, target_hdl);
2286 jboolean __retVal__S = __retVal__L;
2287 if (token_ptr) (*env)->ReleaseStringUTFChars(env,token,token_ptr);
2288 return __retVal__S;
2289error:
2290 return 0;
2291}
bool MqServiceProxyCtxExists(MQ_CTX const ctx, MQ_TOK const token, MQ_CTX const target)
check if service who belongs to token is a proxy-service

◆ Java_jvmqmsgque_MqContextC_ServiceProxyRoundRobin()

JNIEXPORT void JNICALL Java_jvmqmsgque_MqContextC_ServiceProxyRoundRobin ( JNIEnv * env,
jobject self,
jstring token,
jstring ident )

Java: ctx.ServiceProxyRoundRobin(String token, String ident) C-API
create a proxy-service using Round-Robin as load-balancer …

Definition at line 2294 of file MqContextC_jv.c.

2294 {
2295 MQ_CTX hdl = (MQ_CTX)pObj2Hdl(env,"MqContextC",self);
2296 JavaErrorCheck;
2297 MkRtSetup_X(hdl);
2298 MQ_TOK token_ptr = (token?(*env)->GetStringUTFChars(env,token,NULL):NULL);
2299 JavaErrorCheck;
2300 MK_STRN ident_ptr = (ident?(*env)->GetStringUTFChars(env,ident,NULL):NULL);
2301 JavaErrorCheck;
2302 enum MkErrorE errVal = MqServiceProxyRoundRobin(hdl, token_ptr, ident_ptr);
2303 MkErrorC_Check(hdl, errVal)
2304 if (token_ptr) (*env)->ReleaseStringUTFChars(env,token,token_ptr);
2305 if (ident_ptr) (*env)->ReleaseStringUTFChars(env,ident,ident_ptr);
2306error:
2307 return;
2308}
const MK_STRB * MK_STRN
#define MqServiceProxyRoundRobin(...)

◆ Java_jvmqmsgque_MqContextC_ServiceStorage()

JNIEXPORT void JNICALL Java_jvmqmsgque_MqContextC_ServiceStorage ( JNIEnv * env,
jobject self,
jstring token )

Java: ctx.ServiceStorage(String token) C-API
setup a service listen on a MqContextC_ServiceApi_Identifer and save all read-data-package into the STORAGE

Definition at line 2311 of file MqContextC_jv.c.

2311 {
2312 MQ_CTX hdl = (MQ_CTX)pObj2Hdl(env,"MqContextC",self);
2313 JavaErrorCheck;
2314 MkRtSetup_X(hdl);
2315 MQ_TOK token_ptr = (token?(*env)->GetStringUTFChars(env,token,NULL):NULL);
2316 JavaErrorCheck;
2317 enum MkErrorE errVal = MqServiceStorage(hdl, token_ptr);
2318 MkErrorC_Check(hdl, errVal)
2319 if (token_ptr) (*env)->ReleaseStringUTFChars(env,token,token_ptr);
2320error:
2321 return;
2322}
#define MqServiceStorage(...)

◆ Java_jvmqmsgque_MqContextC_ServiceTokenCheck()

JNIEXPORT jboolean JNICALL Java_jvmqmsgque_MqContextC_ServiceTokenCheck ( JNIEnv * env,
jobject self,
jstring token )

Java: boolean ctx.ServiceTokenCheck(String token) C-API
in an ongoing-service-call check if the current MqContextC_ServiceApi_Identifer is token

Definition at line 2325 of file MqContextC_jv.c.

2325 {
2326 MQ_CTX hdl = (MQ_CTX)pObj2Hdl(env,"MqContextC",self);
2327 JavaErrorCheck;
2328 MkRtSetup_X(hdl);
2329 MQ_TOK token_ptr = (token?(*env)->GetStringUTFChars(env,token,NULL):NULL);
2330 JavaErrorCheck;
2331 MK_BOOL __retVal__L = MqServiceTokenCheck(hdl, token_ptr);
2332 jboolean __retVal__S = __retVal__L;
2333 if (token_ptr) (*env)->ReleaseStringUTFChars(env,token,token_ptr);
2334 return __retVal__S;
2335error:
2336 return 0;
2337}
bool MqServiceTokenCheck(MQ_CTX const ctx, MQ_TOK const token)
in an ongoing-service-call check if the current MqContextC_ServiceApi_Identifer is token …

◆ Java_jvmqmsgque_MqContextC_ServiceTokenExists()

JNIEXPORT jboolean JNICALL Java_jvmqmsgque_MqContextC_ServiceTokenExists ( JNIEnv * env,
jobject self,
jstring token )

Java: boolean ctx.ServiceTokenExists(String token) C-API
check if the MqContextC_ServiceApi_Identifer token is defined as ctx service …

Definition at line 2340 of file MqContextC_jv.c.

2340 {
2341 MQ_CTX hdl = (MQ_CTX)pObj2Hdl(env,"MqContextC",self);
2342 JavaErrorCheck;
2343 MkRtSetup_X(hdl);
2344 MQ_TOK token_ptr = (token?(*env)->GetStringUTFChars(env,token,NULL):NULL);
2345 JavaErrorCheck;
2346 MK_BOOL __retVal__L = MqServiceTokenExists(hdl, token_ptr);
2347 jboolean __retVal__S = __retVal__L;
2348 if (token_ptr) (*env)->ReleaseStringUTFChars(env,token,token_ptr);
2349 return __retVal__S;
2350error:
2351 return 0;
2352}
bool MqServiceTokenExists(MQ_CTX const ctx, MQ_TOK const token)
check if the MqContextC_ServiceApi_Identifer token is defined as ctx service …

◆ Java_jvmqmsgque_MqContextC_ServiceTokenGet()

JNIEXPORT jstring JNICALL Java_jvmqmsgque_MqContextC_ServiceTokenGet ( JNIEnv * env,
jobject self )

Java: String ctx.ServiceTokenGet() C-API
in an ongoing-service-call get the current MqContextC_ServiceApi_Identifer

Definition at line 2355 of file MqContextC_jv.c.

2355 {
2356 MQ_CTX hdl = (MQ_CTX)pObj2Hdl(env,"MqContextC",self);
2357 JavaErrorCheck;
2358 MkRtSetup_X(hdl);
2359 MQ_TOK __retVal__L = MqServiceTokenGet(hdl);
2360 jstring __retVal__S = JC2O(env,__retVal__L);
2361 return __retVal__S;
2362error:
2363 return 0;
2364}
MQ_TOK MqServiceTokenGet(MQ_CTX const ctx)
in an ongoing-service-call get the current MqContextC_ServiceApi_Identifer …

◆ ServiceCreate()

native void jvmqmsgque.MqContextC.ServiceCreate ( String token,
MqServiceIF callback )

Java: ctx.ServiceCreate(String token, MqServiceIF callback) C-API
create a link between a service-token and a service-callback

◆ ServiceDelete()

native void jvmqmsgque.MqContextC.ServiceDelete ( String token)

Java: ctx.ServiceDelete(String token) C-API
delete a service. …

◆ ServiceIsTransaction()

native boolean jvmqmsgque.MqContextC.ServiceIsTransaction ( )

Java: boolean ctx.ServiceIsTransaction() C-API
check if the ongoing-service-call belongs to a transaction …

◆ ServiceProxy() [1/2]

void jvmqmsgque.MqContextC.ServiceProxy ( String token)

Java: ctx.ServiceProxy(String token, ?int id = MqSlaveE.OTHER.get()?) C-API
create a service to link a master-context with a slave-context. …

Definition at line 1004 of file MqContextC.java.

1004 {
1005 ServiceProxy (token, MqSlaveE.OTHER.get());
1006 }
native void ServiceProxy(String token, int id)
Java: ctx.ServiceProxy(String token, ?int id = MqSlaveE.OTHER.get()?) → C-API create a service ...
MqSlaveE
predefined slave-id for well known slaves …

◆ ServiceProxy() [2/2]

native void jvmqmsgque.MqContextC.ServiceProxy ( String token,
int id )

Java: ctx.ServiceProxy(String token, ?int id = MqSlaveE.OTHER.get()?) C-API
create a service to link a master-context with a slave-context. …

+ Here is the caller graph for this function:

◆ ServiceProxyCtx()

native void jvmqmsgque.MqContextC.ServiceProxyCtx ( String token,
MqContextC target )

◆ ServiceProxyCtxExists()

native boolean jvmqmsgque.MqContextC.ServiceProxyCtxExists ( String token,
MqContextC target )

Java: boolean ctx.ServiceProxyCtxExists(String token, MqContextC target) C-API
check if service who belongs to token is a proxy-service

◆ ServiceProxyRoundRobin()

native void jvmqmsgque.MqContextC.ServiceProxyRoundRobin ( String token,
String ident )

Java: ctx.ServiceProxyRoundRobin(String token, String ident) C-API
create a proxy-service using Round-Robin as load-balancer …

◆ ServiceStorage()

native void jvmqmsgque.MqContextC.ServiceStorage ( String token)

Java: ctx.ServiceStorage(String token) C-API
setup a service listen on a MqContextC_ServiceApi_Identifer and save all read-data-package into the STORAGE

◆ ServiceTokenCheck()

native boolean jvmqmsgque.MqContextC.ServiceTokenCheck ( String token)

Java: boolean ctx.ServiceTokenCheck(String token) C-API
in an ongoing-service-call check if the current MqContextC_ServiceApi_Identifer is token

◆ ServiceTokenExists()

native boolean jvmqmsgque.MqContextC.ServiceTokenExists ( String token)

Java: boolean ctx.ServiceTokenExists(String token) C-API
check if the MqContextC_ServiceApi_Identifer token is defined as ctx service …

◆ ServiceTokenGet()

native String jvmqmsgque.MqContextC.ServiceTokenGet ( )

Java: String ctx.ServiceTokenGet() C-API
in an ongoing-service-call get the current MqContextC_ServiceApi_Identifer