Пример #1
0
        public void Stop(AgentInstanceStopServices services)
        {
            using (_lock.Acquire()) {
                if (_filterHandle != null) {
                    FilterValueSetParam[][] addendum = null;
                    var agentInstanceContext = services.AgentInstanceContext;
                    if (agentInstanceContext.AgentInstanceFilterProxy != null) {
                        addendum = agentInstanceContext.AgentInstanceFilterProxy.GetAddendumFilters(
                            _filterSpecActivatable,
                            agentInstanceContext);
                    }

                    var filterValues = _filterSpecActivatable.GetValueSet(
                        null,
                        addendum,
                        agentInstanceContext,
                        agentInstanceContext.StatementContextFilterEvalEnv);
                    services.AgentInstanceContext.FilterService.Remove(
                        _filterHandle,
                        _filterSpecActivatable.FilterForEventType,
                        filterValues);
                }

                _filterHandle = null;
            }
        }
Пример #2
0
        // Clear out index on statement stop

        public void Stop(AgentInstanceStopServices services)
        {
            if (_eventIndex != null) {
                foreach (var table in _eventIndex) {
                    table.Destroy();
                }
            }
        }
Пример #3
0
        public static void RemoveSubview(
            View view,
            AgentInstanceStopServices services)
        {
            view.Parent = null;
            (view as AgentInstanceMgmtCallback)?.Stop(services);

            RecursiveChildRemove(view, services);
        }
Пример #4
0
 public void Stop(AgentInstanceStopServices stopServices)
 {
     try {
         _virtualDwView.Destroy();
         stopServices.AgentInstanceContext.RuntimeEnvContext.Unbind(_objectName);
     }
     catch (NamingException) {
     }
 }
Пример #5
0
 public void Stop(AgentInstanceStopServices services)
 {
     if (handle != null) {
         agentInstanceContext.AuditProvider.ScheduleRemove(
             agentInstanceContext,
             handle,
             ScheduleObjectType.view,
             timeWindowViewFactory.ViewName);
         agentInstanceContext.StatementContext.SchedulingService.Remove(handle, scheduleSlot);
     }
 }
Пример #6
0
 public void Stop(AgentInstanceStopServices services)
 {
     if (_handle != null) {
         _agentInstanceContext.AuditProvider.ScheduleRemove(
             _agentInstanceContext,
             _handle,
             ScheduleObjectType.view,
             _factory.ViewName);
         _agentInstanceContext.StatementContext.SchedulingService.Remove(_handle, _scheduleSlot);
     }
 }
Пример #7
0
            public void Stop(AgentInstanceStopServices services)
            {
                var instance = _namedWindow.GetNamedWindowInstance(services.AgentInstanceContext);
                if (instance == null) {
                    Log.Warn("Named window processor by name '" + _namedWindow.Name + "' has not been found");
                }
                else {
                    instance.Destroy();
                }

                _optionalEnvStopCallback?.Stop(services);
            }
        public void Stop(AgentInstanceStopServices services)
        {
            if (!newToOldEventMap.IsEmpty()) {
                var oldEvents = new OneEventCollection();
                foreach (var oldEvent in newToOldEventMap) {
                    oldEvents.Add(oldEvent.Value);
                }

                if (!oldEvents.IsEmpty()) {
                    Child.Update(null, oldEvents.ToArray());
                }

                newToOldEventMap.Clear();
            }
        }
Пример #9
0
        public void Stop(AgentInstanceStopServices services)
        {
            using (_lock.Acquire()) {
                if (_filterHandle != null) {
                    var filterValues = ComputeFilterValues(services.AgentInstanceContext);
                    if (filterValues != null) {
                        services.AgentInstanceContext.FilterService.Remove(
                            _filterHandle,
                            _filterSpecActivatable.FilterForEventType,
                            filterValues);
                    }
                }

                _filterHandle = null;
            }
        }
Пример #10
0
        private static void RecursiveChildRemove(
            View view,
            AgentInstanceStopServices services)
        {
            var child = view.Child;
            if (child == null) {
                return;
            }

            if (child is MergeView) {
                var mergeView = (MergeView) child;
                mergeView.RemoveParentView(view);
            }
            else {
                (child as AgentInstanceMgmtCallback)?.Stop(services);

                RecursiveChildRemove(child, services);
            }
        }
Пример #11
0
 public void Stop(AgentInstanceStopServices services)
 {
     foreach (var view in views) {
         (view as AgentInstanceMgmtCallback)?.Stop(services);
     }
 }
 public void Stop(AgentInstanceStopServices services)
 {
     // no action
 }
Пример #13
0
 public void Stop(AgentInstanceStopServices services)
 {
     child.Update(events.ToArray(), null);
     events = new List<EventBean>();
 }
Пример #14
0
 public void Stop(AgentInstanceStopServices services)
 {
     _rootState.Stop();
 }
Пример #15
0
 public void Stop(AgentInstanceStopServices services)
 {
     foreach (var entry in subViewPerKey) {
         GroupByViewUtil.RemoveSubview(entry.Value.Subview, services);
     }
 }
Пример #16
0
 public void Stop(AgentInstanceStopServices services)
 {
     ConsumerCallback.Stopped(this);
 }
Пример #17
0
 public override void Stop(AgentInstanceStopServices services)
 {
     _afterConditionState?.Destroy();
 }
 public override void Stop(AgentInstanceStopServices services)
 {
 }
Пример #19
0
 public void Stop(AgentInstanceStopServices services)
 {
     StopScheduleAndVar();
     agentInstanceContext.RemoveTerminationCallback(this);
 }
 public void Stop(AgentInstanceStopServices services)
 {
     _resultSetProcessor.Stop();
     _aggregationService.Stop();
 }
Пример #21
0
 public void Stop(AgentInstanceStopServices services)
 {
     foreach (KeyValuePair<object, View> entry in subViewPerKey) {
         GroupByViewUtil.RemoveSubview(entry.Value, services);
     }
 }
 public override void Stop(AgentInstanceStopServices services)
 {
     base.Stop(services);
     OptionalDeltaSet.Destroy();
     _outputCondition.StopOutputCondition();
 }
 public override void Stop(AgentInstanceStopServices services)
 {
     base.Stop(services);
     OptionalOutputCondition.StopOutputCondition();
 }
Пример #24
0
 public void Stop(AgentInstanceStopServices services)
 {
     _pollExecStrategy.Destroy();
     DataCache.Destroy();
 }
 public override void Stop(AgentInstanceStopServices services)
 {
     base.Stop(services);
     _outputCondition.StopOutputCondition();
     _witnessedFirstHelper.Destroy();
 }