1 #include "logging/TxEventLogFactory.h"
2 #include "logging/TxEventLog.h"
3 #include "logging/StUcmTasks.h"
4 #include "logging/StRecordIterator.h"
5 #include "logging/RecordList.h"
6 #include "logging/StDbFieldI.h"
7 #include "logging/StUcmJobs.h"
8 #include "logging/StUcmEvents.h"
11 using namespace TxLogging;
14 int main(
int argc ,
char *argv[])
16 TxEventLog &ucm = *TxEventLogFactory::create(
"c");
18 cout <<
"Total tasks recorded by \"Tasks\" table :=" <<ucm.queryTableSize(
"Tasks") << endl;
19 const char *username =
"starreco";
21 cout <<
"Total tasks recorded by \"Tasks\" table for <"
23 << ucm.queryTableSize(
"Tasks") << endl;
25 Iterator task = tasks.taskIterator();
29 cout <<
"*** Total " << ucm.queryTableSize(
"Jobs",r)
30 <<
" jobs were found for the current task" << endl;
38 Iterator event = events.eventIterator();
39 while(event.hasNext() ){
45 while (job.hasNext() ) {
47 cout <<
"*** Total " << ucm.queryTableSize(
"Events",r)
48 <<
" events were found for the current job" << endl;
54 Iterator event = events.eventIterator();
55 while(event.hasNext() ){
64 cout <<
" --------------------------------------" << endl;
66 cout <<
" --------------------------------------" << endl;
68 Iterator event = events.eventIterator();
69 while(event.hasNext() ){
virtual void setRequesterName(const std::string &requester)=0
virtual void logJobAttribute(const std::string &key, const std::string &value)=0