public SchedulerEvent(SchedulerEventScope scope, SchedulerEventType eventType, string itemKey, string fireInstanceId) { _scope = scope; _eventType = eventType; _itemKey = itemKey; _fireInstanceId = fireInstanceId; }
public void OnSchedulerEvent(SchedulerEventType type, string scheduleName) { switch (type) { case SchedulerEventType.CREATED: ListViewItem lv = SchedulesView.Items.Add(scheduleName); Schedule s = Scheduler.GetSchedule(scheduleName); lv.SubItems.Add(s.Type.ToString()); lv.SubItems.Add(s.NextInvokeTime.ToString("MM/dd/yyyy hh:mm:ss tt")); break; case SchedulerEventType.DELETED: for (int i = 0; i < SchedulesView.Items.Count; i++) { if (SchedulesView.Items[i].Text == scheduleName) { SchedulesView.Items.RemoveAt(i); } } break; case SchedulerEventType.INVOKED: for (int i = 0; i < SchedulesView.Items.Count; i++) { if (SchedulesView.Items[i].Text == scheduleName) { Schedule si = Scheduler.GetSchedule(scheduleName); SchedulesView.Items[i].SubItems[2].Text = si.NextInvokeTime.ToString("MM/dd/yyyy hh:mm:ss tt"); } } break; } SchedulesView.Refresh(); }
private void Scheduler_OnSchedulerEvent(SchedulerEventType type, string scheduleName) { if (type != SchedulerEventType.INVOKED) { return; } }
public RawSchedulerEvent(SchedulerEventScope scope, SchedulerEventType eventType, string itemKey, string fireInstanceId, Exception error, object rawJobResult) { Scope = scope; EventType = eventType; ItemKey = itemKey; FireInstanceId = fireInstanceId; Error = error; RawJobResult = rawJobResult; }
public SchedulerEvent( int id, DateTime date, SchedulerEventScope scope, SchedulerEventType eventType, string itemKey, string fireInstanceId, bool faulted, ErrorMessage[] errors) { Id = id; Date = date.UnixTicks(); Scope = scope; EventType = eventType; ItemKey = itemKey; FireInstanceId = fireInstanceId; Faulted = faulted; Errors = errors; }
public RawSchedulerEvent(SchedulerEventScope scope, SchedulerEventType eventType, string itemKey, string fireInstanceId) : this(scope, eventType, itemKey, fireInstanceId, null, null) { }
public ContainerPreemptEvent(ApplicationAttemptId aid, RMContainer container, SchedulerEventType type) : base(type) { this.aid = aid; this.container = container; }