MqContextC - setup and manage a storage used to persist data-packages … More...
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 |
|
inline |
C++:
→ C-API ctx.StorageClose()
close the storage. …
Definition at line 2244 of file MqContextC_inline_cc.hh.
|
inline |
C++:
→ C-API MQ_LTR ctx.StorageCount()
count the number of storage-rows …
Definition at line 2290 of file MqContextC_inline_cc.hh.
|
inline |
C++:
→ C-API ctx.StorageDecrRef(MQ_LTR transLId)
decrease the internal refCount lock of the database-entry
Definition at line 2251 of file MqContextC_inline_cc.hh.
C++:
→ C-API MQ_LTR ctx.StorageDelete(MQ_LTR *transLIdP_inout = 0)
delete the storage-row identified by the transLIdP_inout …
Definition at line 2222 of file MqContextC_inline_cc.hh.
C++:
→ C-API MK_I32 ctx.StorageErrCnt(MQ_LTR transLId)
increment and return the database row-error-count for the row defined with transLId
Definition at line 2299 of file MqContextC_inline_cc.hh.
|
inline |
C++:
→ C-API MQ_LTR ctx.StorageExport()
export the read-data-package into the STORAGE …
Definition at line 2308 of file MqContextC_inline_cc.hh.
C++:
→ C-API MQ_LTR ctx.StorageImport(MQ_LTR *transLIdP_inout = 0)
import the storage-package into the read-data-package …
Definition at line 2232 of file MqContextC_inline_cc.hh.
|
inline |
C++:
→ C-API ctx.StorageIncrRef(MQ_LTR transLId)
increase the internal refCount lock of the database-entry
Definition at line 2258 of file MqContextC_inline_cc.hh.
|
inline |
C++:
→ C-API ctx.StorageLog(MK_STRN callfunc = __builtin_FUNCTION())
log the storage the status of the open transactions
Definition at line 2265 of file MqContextC_inline_cc.hh.
|
inline |
C++:
→ C-API ctx.StorageOpen(MK_STRN storageFile)
switch to a file-based-transaction-database …
Definition at line 2280 of file MqContextC_inline_cc.hh.
|
inline |
C++:
→ C-API ctx.StorageOpen(MK_STRN storageFile)
switch to a file-based-transaction-database …
Definition at line 2273 of file MqContextC_inline_cc.hh.
|
inline |
C++:
→ C-API {otherCtxP:MqContextC* otherLIdP:MQ_LTR} ctx.StorageResolve()
extract the context->link.protect.rmtTransLId
entry from the database
Definition at line 2317 of file MqContextC_inline_cc.hh.