16#define META_CONTEXT_S &context
36 rgx =
"^(?:Filter6-1|Filter6|fs1.*)$";
46 outfile <<
"ERROR: " << err->GetText() << endl;
119 }
catch (
const exception& e) {
155 static void __attribute__ ((noreturn))
159 fprintf(stderr,
"usage: %s [OPTION]... [ARGUMENT]...\n", base);
161 fputs(
" This tool is database (MqStorage...) test tool of NHI1.\n", stderr);
163 fprintf(stderr,
" %s [ARGUMENT]... syntax:\n", base);
164 fprintf(stderr,
" aclient... %c %s ... %c aserver\n",
MK_ALFA, base,
MK_ALFA);
166 fputs(
MqHelp (NULL), stderr);
168 fprintf(stderr,
" %s [OPTION]:\n", base);
169 fputs(
" -h, --help print this help\n", stderr);
171 fputs(
" --retryCnt how often an item should be send on error (default: 3)\n", stderr);
195 Filter6 *filter = Filter6F->New();
199 }
catch (
const exception& e) {
202 return filter->
Exit();
int main(int argc, MK_STRN argv[])
static void Help(MK_STRN base)
Filter6(MK_TYP const typ, MqContextC *tmpl=NULL)
static void WRIT(MqContextC *ctx)
PUBLIC data structure for the ccmqmsgque-specific-data → C-API: libmqmsgque::MqContextS
implements the ccmqmsgque API object: ConfigSetEvent
template wrapper for libmqmsgque::MqFactoryS
implements the ccmqmsgque API object: ConfigSetServerCleanup
implements the ccmqmsgque API object: ConfigSetServerSetup
void SetEXIT(MK_STRN callfunc=__builtin_FUNCTION())
MkErrorC * ErrorCatch(std::exception *exception=NULL, MK_STRN callfunc=__builtin_FUNCTION()) const
void(*) MqTokenCCB(MqContextC *)
class-callback
MK_STRN ConfigGetName() const
C++: MK_STRN ctx.ConfigGetName() → C-API get the name of the context object
void ConfigSetIgnoreExit(MK_BOOL data)
C++: ctx.ConfigSetIgnoreExit(MK_BOOL data) → C-API set the libmqmsgque::MqSetupS::ignoreExit va...
MkErrorC * ErrorFORMAT() const
C++: MkErrorC* fmtobj.ErrorFORMAT() → C-API helper used to access MkErrorDEFAULT from MqContext...
void LinkCreate(MkBufferListC *args=NULL)
C++: ctx.LinkCreate(MkBufferListC* args = NULL) → C-API make ctx to a parent-context and setup ...
void LinkCheckOptionI32(MK_STRN opt, MK_I32 *val)
C++: ctx.LinkCreate(MkBufferListC* args = NULL) → C-API make ctx to a parent-context and setup ...
void ProcessEvent(MqWaitOnEventE wait=MQ_WAIT_NO, MK_TIME_T timeout=MK_TIMEOUT_DEFAULT)
C++: ctx.ProcessEvent(MqWaitOnEventE wait = MQ_WAIT_NO, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT) → C...
MK_I32 Exit(MK_STRN callfunc=__builtin_FUNCTION(), MK_STRN callfile=__builtin_FILE(), MK_I32 callline=__builtin_LINE())
C++: MK_I32 ctx.Exit(MK_STRN callfunc = __builtin_FUNCTION(), MK_STRN callfile = __builtin_FILE(),...
void ProxyForward(MqContextC *targetCtx, MqDumpC *dump=NULL, MK_TIME_T timeout=MK_TIMEOUT_DEFAULT)
C++: sourceCtx.ProxyForward(MqContextC* targetCtx, MqDumpC* dump = NULL, MK_TIME_T timeout = MK_TIME...
MK_STRN ReadSTR()
C++: doc_mq_cc_ReadSTR → C-API read a PRIMITIVE TYPE from the read-data-package …
void SendRETURN()
C++: ctx.SendRETURN() → C-API MqContextC - finish the send-data-block on the server and optiona...
void ServiceProxy(MQ_TOK token, MQ_SLAVE_ID id=MQ_SLAVE_OTHER)
C++: ctx.ServiceProxy(MQ_TOK token, MQ_SLAVE_ID id = MQ_SLAVE_OTHER) → C-API create a service t...
void ServiceStorage(MQ_TOK token)
C++: ctx.ServiceStorage(MQ_TOK token) → C-API setup a service listen on a MqContextC_ServiceApi...
void ServiceCreate(MQ_TOK token, MqServiceCCB callback)
C++: ctx.ServiceCreate(MQ_TOK token, MqServiceICB MqServiceCCB MqServiceIF* cal...
MqContextC * SlaveGetFilter()
C++: MqContextC* ctx.SlaveGetFilter() → C-API get the filter-ctx or the master-ctx …
MqContextC * SlaveGetMaster()
C++: MqContextC* ctx.SlaveGetMaster() → C-API opposite function of MqSlaveGetFilter
MK_I32 StorageErrCnt(MQ_LTR transLId)
C++: MK_I32 ctx.StorageErrCnt(MQ_LTR transLId) → C-API increment and return the database row-er...
MQ_LTR StorageDelete(MQ_LTR *transLIdP_inout=0)
C++: MQ_LTR ctx.StorageDelete(MQ_LTR *transLIdP_inout = 0) → C-API delete the storage-row ident...
MQ_LTR StorageExport()
C++: MQ_LTR ctx.StorageExport() → C-API export the read-data-package into the STORAGE …
void StorageDecrRef(MQ_LTR transLId)
C++: ctx.StorageDecrRef(MQ_LTR transLId) → C-API decrease the internal refCount lock of the dat...
MQ_LTR StorageCount()
C++: MQ_LTR ctx.StorageCount() → C-API count the number of storage-rows …
MQ_LTR StorageImport(MQ_LTR *transLIdP_inout=0)
C++: MQ_LTR ctx.StorageImport(MQ_LTR *transLIdP_inout = 0) → C-API import the storage-package i...
@ MQ_WAIT_FOREVER
Wait maximum timeout seconds for an event or raise an timeout-error …
@ MQ_SLAVE_MASTER
internal: the master-slave-id, (on a slave get the master)
MK_STR MqHelp(MK_STRN tool)
write ccmqmsgque specific user-help to stderr
static void CcMqSetup()
C++: [static] MqMsgque::Setup() → C-API setup ccmqmsgque internal memory …
int MQ_LTR
32bit longterm transaction token because PHP-32 does NOT support long long
namespace for the CcMqMsgque "C++"-API