MqContextC - setup and manage a storage used to persist data-packages … More...
Functions | |
native int | jvmqmsgque.MqContextC.StorageDelete (int transLIdP_inout) |
Java: → C-API delete the storage-row identified by the transLIdP_inout … | |
int | jvmqmsgque.MqContextC.StorageDelete () |
Java: → C-API delete the storage-row identified by the transLIdP_inout … | |
native int | jvmqmsgque.MqContextC.StorageImport (int transLIdP_inout) |
Java: → C-API import the storage-package into the read-data-package … | |
int | jvmqmsgque.MqContextC.StorageImport () |
Java: → C-API import the storage-package into the read-data-package … | |
native void | jvmqmsgque.MqContextC.StorageClose () |
Java: → C-API close the storage. … | |
native void | jvmqmsgque.MqContextC.StorageDecrRef (int transLId) |
Java: → C-API decrease the internal refCount lock of the database-entry | |
native void | jvmqmsgque.MqContextC.StorageIncrRef (int transLId) |
Java: → C-API increase the internal refCount lock of the database-entry | |
native void | jvmqmsgque.MqContextC.StorageLog (String callfunc) |
Java: → C-API log the storage the status of the open transactions | |
void | jvmqmsgque.MqContextC.StorageLog () |
Java: → C-API log the storage the status of the open transactions | |
native void | jvmqmsgque.MqContextC.StorageOpen (String storageFile) |
Java: → C-API switch to a file-based-transaction-database … | |
native int | jvmqmsgque.MqContextC.StorageCount () |
Java: → C-API count the number of storage-rows … | |
native int | jvmqmsgque.MqContextC.StorageErrCnt (int transLId) |
Java: → C-API increment and return the database row-error-count for the row defined with transLId | |
native int | jvmqmsgque.MqContextC.StorageExport () |
Java: → C-API export the read-data-package into the STORAGE … | |
native String[] | jvmqmsgque.MqContextC.StorageResolve () |
Java: → C-API extract the context->link.protect.rmtTransLId entry from the database | |
JNIEXPORT jint JNICALL | Java_jvmqmsgque_MqContextC_StorageDelete (JNIEnv *env, jobject self, jint transLIdP_inout) |
Java: → C-API delete the storage-row identified by the transLIdP_inout … | |
JNIEXPORT jint JNICALL | Java_jvmqmsgque_MqContextC_StorageImport (JNIEnv *env, jobject self, jint transLIdP_inout) |
Java: → C-API import the storage-package into the read-data-package … | |
JNIEXPORT void JNICALL | Java_jvmqmsgque_MqContextC_StorageClose (JNIEnv *env, jobject self) |
Java: → C-API close the storage. … | |
JNIEXPORT void JNICALL | Java_jvmqmsgque_MqContextC_StorageDecrRef (JNIEnv *env, jobject self, jint transLId) |
Java: → C-API decrease the internal refCount lock of the database-entry | |
JNIEXPORT void JNICALL | Java_jvmqmsgque_MqContextC_StorageIncrRef (JNIEnv *env, jobject self, jint transLId) |
Java: → C-API increase the internal refCount lock of the database-entry | |
JNIEXPORT void JNICALL | Java_jvmqmsgque_MqContextC_StorageLog (JNIEnv *env, jobject self, jstring callfunc) |
Java: → C-API log the storage the status of the open transactions | |
JNIEXPORT void JNICALL | Java_jvmqmsgque_MqContextC_StorageOpen (JNIEnv *env, jobject self, jstring storageFile) |
Java: → C-API switch to a file-based-transaction-database … | |
JNIEXPORT jint JNICALL | Java_jvmqmsgque_MqContextC_StorageCount (JNIEnv *env, jobject self) |
Java: → C-API count the number of storage-rows … | |
JNIEXPORT jint JNICALL | Java_jvmqmsgque_MqContextC_StorageErrCnt (JNIEnv *env, jobject self, jint transLId) |
Java: → C-API increment and return the database row-error-count for the row defined with transLId | |
JNIEXPORT jint JNICALL | Java_jvmqmsgque_MqContextC_StorageExport (JNIEnv *env, jobject self) |
Java: → C-API export the read-data-package into the STORAGE … | |
JNIEXPORT jobjectArray JNICALL | Java_jvmqmsgque_MqContextC_StorageResolve (JNIEnv *env, jobject self) |
Java: → C-API extract the context->link.protect.rmtTransLId entry from the database | |
MqContextC - setup and manage a storage used to persist data-packages …
The storage is divided into: INTERNAL and EXTERNAL storage. Only the read-data-package can be stored or dumped into the storage.
The read-data-package is saved into the storage using:
ServiceStorage | setup a service listen on a MqContextC_ServiceApi_Identifer and save all read-data-package into the STORAGE … |
StorageExport | export the read-data-package into the STORAGE … |
The read-data-package is restored from the storage using:
StorageImport | import the storage-package into the read-data-package … |
ProxyForward | send the entire read-data-package-data to the link-target … |
All this usually happen in an Event Handler |
Some important facts of the storage-feature:
The following internal storages are supported:
Performance analyse:
Nhi1Exec perfclient.c --all --storage VALUE @ perfserver.c
.database | performance | host crash | application crash | info |
---|---|---|---|---|
memdb | 30.000 | data lost | data lost | non persistent |
tempdb | < 30.000 | data lost | data lost | uses memory and/or temporary file |
filedb (mem) | 10.000 | data lost | data safe | in memory filesystem |
filedb (disc) | 50 | data safe | data safe | disc-speed is the key factor |
The storage is divided into: INTERNAL and EXTERNAL storage. Only the read-data-package can be stored or dumped into the storage.
The read-data-package is saved into the storage using:
ServiceStorage | setup a service listen on a MqContextC_ServiceApi_Identifer and save all read-data-package into the STORAGE … |
StorageExport | export the read-data-package into the STORAGE … |
The read-data-package is restored from the storage using:
StorageImport | import the storage-package into the read-data-package … |
ProxyForward | send the entire read-data-package-data to the link-target … |
All this usually happen in an Event Handler |
Some important facts of the storage-feature:
The following internal storages are supported:
Performance analyse:
Nhi1Exec perfclient.c --all --storage VALUE @ perfserver.c
.database | performance | host crash | application crash | info |
---|---|---|---|---|
memdb | 30.000 | data lost | data lost | non persistent |
tempdb | < 30.000 | data lost | data lost | uses memory and/or temporary file |
filedb (mem) | 10.000 | data lost | data safe | in memory filesystem |
filedb (disc) | 50 | data safe | data safe | disc-speed is the key factor |
JNIEXPORT void JNICALL Java_jvmqmsgque_MqContextC_StorageClose | ( | JNIEnv * | env, |
jobject | self ) |
Java:
→ C-API ctx.StorageClose()
close the storage. …
Definition at line 2535 of file MqContextC_jv.c.
JNIEXPORT jint JNICALL Java_jvmqmsgque_MqContextC_StorageCount | ( | JNIEnv * | env, |
jobject | self ) |
Java:
→ C-API int ctx.StorageCount()
count the number of storage-rows …
Definition at line 2602 of file MqContextC_jv.c.
JNIEXPORT void JNICALL Java_jvmqmsgque_MqContextC_StorageDecrRef | ( | JNIEnv * | env, |
jobject | self, | ||
jint | transLId ) |
Java:
→ C-API ctx.StorageDecrRef(int transLId)
decrease the internal refCount lock of the database-entry
Definition at line 2546 of file MqContextC_jv.c.
JNIEXPORT jint JNICALL Java_jvmqmsgque_MqContextC_StorageDelete | ( | JNIEnv * | env, |
jobject | self, | ||
jint | transLIdP_inout ) |
Java:
→ C-API int ctx.StorageDelete(?int transLIdP_inout = 0?)
delete the storage-row identified by the transLIdP_inout …
Definition at line 2507 of file MqContextC_jv.c.
JNIEXPORT jint JNICALL Java_jvmqmsgque_MqContextC_StorageErrCnt | ( | JNIEnv * | env, |
jobject | self, | ||
jint | transLId ) |
Java:
→ C-API int ctx.StorageErrCnt(int transLId)
increment and return the database row-error-count for the row defined with transLId
Definition at line 2616 of file MqContextC_jv.c.
JNIEXPORT jint JNICALL Java_jvmqmsgque_MqContextC_StorageExport | ( | JNIEnv * | env, |
jobject | self ) |
Java:
→ C-API int ctx.StorageExport()
export the read-data-package into the STORAGE …
Definition at line 2630 of file MqContextC_jv.c.
JNIEXPORT jint JNICALL Java_jvmqmsgque_MqContextC_StorageImport | ( | JNIEnv * | env, |
jobject | self, | ||
jint | transLIdP_inout ) |
Java:
→ C-API int ctx.StorageImport(?int transLIdP_inout = 0?)
import the storage-package into the read-data-package …
Definition at line 2520 of file MqContextC_jv.c.
JNIEXPORT void JNICALL Java_jvmqmsgque_MqContextC_StorageIncrRef | ( | JNIEnv * | env, |
jobject | self, | ||
jint | transLId ) |
Java:
→ C-API ctx.StorageIncrRef(int transLId)
increase the internal refCount lock of the database-entry
Definition at line 2557 of file MqContextC_jv.c.
JNIEXPORT void JNICALL Java_jvmqmsgque_MqContextC_StorageLog | ( | JNIEnv * | env, |
jobject | self, | ||
jstring | callfunc ) |
Java:
→ C-API ctx.StorageLog(?String callfunc = null?)
log the storage the status of the open transactions
Definition at line 2568 of file MqContextC_jv.c.
JNIEXPORT void JNICALL Java_jvmqmsgque_MqContextC_StorageOpen | ( | JNIEnv * | env, |
jobject | self, | ||
jstring | storageFile ) |
Java:
→ C-API ctx.StorageOpen(String storageFile)
switch to a file-based-transaction-database …
Definition at line 2586 of file MqContextC_jv.c.
JNIEXPORT jobjectArray JNICALL Java_jvmqmsgque_MqContextC_StorageResolve | ( | JNIEnv * | env, |
jobject | self ) |
Java:
→ C-API {otherCtxP:MqContextC otherLIdP:int} ctx.StorageResolve()
extract the context->link.protect.rmtTransLId
entry from the database
Definition at line 2644 of file MqContextC_jv.c.
native void jvmqmsgque.MqContextC.StorageClose | ( | ) |
Java:
→ C-API ctx.StorageClose()
close the storage. …
native int jvmqmsgque.MqContextC.StorageCount | ( | ) |
Java:
→ C-API int ctx.StorageCount()
count the number of storage-rows …
native void jvmqmsgque.MqContextC.StorageDecrRef | ( | int | transLId | ) |
Java:
→ C-API ctx.StorageDecrRef(int transLId)
decrease the internal refCount lock of the database-entry
int jvmqmsgque.MqContextC.StorageDelete | ( | ) |
Java:
→ C-API int ctx.StorageDelete(?int transLIdP_inout = 0?)
delete the storage-row identified by the transLIdP_inout …
Definition at line 1088 of file MqContextC.java.
native int jvmqmsgque.MqContextC.StorageDelete | ( | int | transLIdP_inout | ) |
Java:
→ C-API int ctx.StorageDelete(?int transLIdP_inout = 0?)
delete the storage-row identified by the transLIdP_inout …
native int jvmqmsgque.MqContextC.StorageErrCnt | ( | int | transLId | ) |
Java:
→ C-API int ctx.StorageErrCnt(int transLId)
increment and return the database row-error-count for the row defined with transLId
native int jvmqmsgque.MqContextC.StorageExport | ( | ) |
Java:
→ C-API int ctx.StorageExport()
export the read-data-package into the STORAGE …
int jvmqmsgque.MqContextC.StorageImport | ( | ) |
Java:
→ C-API int ctx.StorageImport(?int transLIdP_inout = 0?)
import the storage-package into the read-data-package …
Definition at line 1096 of file MqContextC.java.
native int jvmqmsgque.MqContextC.StorageImport | ( | int | transLIdP_inout | ) |
Java:
→ C-API int ctx.StorageImport(?int transLIdP_inout = 0?)
import the storage-package into the read-data-package …
native void jvmqmsgque.MqContextC.StorageIncrRef | ( | int | transLId | ) |
Java:
→ C-API ctx.StorageIncrRef(int transLId)
increase the internal refCount lock of the database-entry
void jvmqmsgque.MqContextC.StorageLog | ( | ) |
Java:
→ C-API ctx.StorageLog(?String callfunc = null?)
log the storage the status of the open transactions
Definition at line 1115 of file MqContextC.java.
native void jvmqmsgque.MqContextC.StorageLog | ( | String | callfunc | ) |
Java:
→ C-API ctx.StorageLog(?String callfunc = null?)
log the storage the status of the open transactions
native void jvmqmsgque.MqContextC.StorageOpen | ( | String | storageFile | ) |
Java:
→ C-API ctx.StorageOpen(String storageFile)
switch to a file-based-transaction-database …
native String[] jvmqmsgque.MqContextC.StorageResolve | ( | ) |
Java:
→ C-API {otherCtxP:MqContextC otherLIdP:int} ctx.StorageResolve()
extract the context->link.protect.rmtTransLId
entry from the database