Пример #1
0
        public EventProcessingTemplate(bool isPri, string timeField, EventMetaData.xEvent evt, int mode = -1, List <string> queries = null)
        {
            isPrimary            = isPri;
            processTimeFieldName = timeField;
            eventName            = evt.ToString();;
            Register(evt, mode);

            if (queries != null)
            {
                preprocessingQueries = queries;
            }
        }
Пример #2
0
        //Multiple database, need to take care of that.

        public void Register(EventMetaData.xEvent evt, int mode)
        {
            string tag = "_primary";

            if (!isPrimary)
            {
                tag = "_secondary";
            }
            eventLatency = new EventLatency(eventName + tag);

            if (isPrimary)
            {
                eventLatency.primaryEvents.Add(new EventWithMode(evt, mode));
            }

            else
            {
                eventLatency.secondaryEvents.Add(new EventWithMode(evt, mode));
            }

            XELoader.AddEventLatency(eventLatency);
        }
Пример #3
0
 public EventWithMode(EventMetaData.xEvent evt, int md = -1)
 {
     e    = evt;
     mode = md;
 }