public override Hashtable GetScheduleItemSettings( int ScheduleID ) { SchedulingController s = new SchedulingController(); return s.GetScheduleItemSettings( ScheduleID ); }
public override void UpdateSchedule( ScheduleItem objScheduleItem ) { Scheduler.CoreScheduler.RemoveFromScheduleQueue( objScheduleItem ); SchedulingController s = new SchedulingController(); s.UpdateSchedule( objScheduleItem.ScheduleID, objScheduleItem.TypeFullName, objScheduleItem.TimeLapse, objScheduleItem.TimeLapseMeasurement, objScheduleItem.RetryTimeLapse, objScheduleItem.RetryTimeLapseMeasurement, objScheduleItem.RetainHistoryNum, objScheduleItem.AttachToEvent, objScheduleItem.CatchUpEnabled, objScheduleItem.Enabled, objScheduleItem.ObjectDependencies, objScheduleItem.Servers ); ScheduleHistoryItem objScheduleHistoryItem = new ScheduleHistoryItem( objScheduleItem ); if( objScheduleHistoryItem.TimeLapse != Null.NullInteger && objScheduleHistoryItem.TimeLapseMeasurement != Null.NullString && objScheduleHistoryItem.Enabled ) { objScheduleHistoryItem.ScheduleSource = ScheduleSource.STARTED_FROM_SCHEDULE_CHANGE; Scheduler.CoreScheduler.AddToScheduleQueue( objScheduleHistoryItem ); } DataCache.RemoveCache( "ScheduleLastPolled" ); }
public override void DeleteSchedule( ScheduleItem objScheduleItem ) { SchedulingController s = new SchedulingController(); s.DeleteSchedule( objScheduleItem.ScheduleID ); Scheduler.CoreScheduler.RemoveFromScheduleQueue( objScheduleItem ); DataCache.RemoveCache( "ScheduleLastPolled" ); }
public override ArrayList GetScheduleProcessing() { SchedulingController s = new SchedulingController(); return s.GetScheduleProcessing(); }
public override ScheduleStatus GetScheduleStatus() { SchedulingController s = new SchedulingController(); return s.GetScheduleStatus(); }
public static void LoadQueueFromTimer() { ForceReloadSchedule = false; SchedulingController s = new SchedulingController(); ArrayList a = s.GetSchedule( Globals.ServerName ); for( int i = 0; i < a.Count; i++ ) { ScheduleHistoryItem objScheduleHistoryItem; objScheduleHistoryItem = (ScheduleHistoryItem)( a[i] ); if( ! IsInQueue( objScheduleHistoryItem ) && objScheduleHistoryItem.TimeLapse != Null.NullInteger && objScheduleHistoryItem.TimeLapseMeasurement != Null.NullString && objScheduleHistoryItem.Enabled ) { if( SchedulingProvider.SchedulerMode == SchedulerMode.TIMER_METHOD ) { objScheduleHistoryItem.ScheduleSource = ScheduleSource.STARTED_FROM_TIMER; } else if( SchedulingProvider.SchedulerMode == SchedulerMode.REQUEST_METHOD ) { objScheduleHistoryItem.ScheduleSource = ScheduleSource.STARTED_FROM_BEGIN_REQUEST; } AddToScheduleQueue( objScheduleHistoryItem ); } } }
public override ArrayList GetScheduleQueue() { SchedulingController s = new SchedulingController(); return s.GetScheduleQueue(); }
public override ScheduleItem GetSchedule( string TypeFullName, string Server ) { SchedulingController s = new SchedulingController(); return s.GetSchedule( TypeFullName, Server ); }
public override ScheduleItem GetNextScheduledTask( string Server ) { SchedulingController s = new SchedulingController(); return s.GetNextScheduledTask( Server ); }
public override ArrayList GetSchedule( string Server ) { SchedulingController s = new SchedulingController(); return s.GetSchedule( Server ); }
public override ScheduleItem GetSchedule( int ScheduleID ) { SchedulingController s = new SchedulingController(); return s.GetSchedule( ScheduleID ); }
public static void UpdateScheduleHistory( ScheduleHistoryItem objScheduleHistoryItem ) { try { SchedulingController controller = new SchedulingController(); controller.UpdateScheduleHistory( objScheduleHistoryItem ); } catch( Exception exc ) { Exceptions.Exceptions.ProcessSchedulerException( exc ); } }
public static ScheduleHistoryItem AddScheduleHistory( ScheduleHistoryItem objScheduleHistoryItem ) { try { SchedulingController controller = new SchedulingController(); int historyID = controller.AddScheduleHistory( objScheduleHistoryItem ); objScheduleHistoryItem.ScheduleHistoryID = historyID; } catch( Exception exc ) { Exceptions.Exceptions.ProcessSchedulerException( exc ); } return objScheduleHistoryItem; }
public static void LoadQueueFromEvent( EventName EventName ) { SchedulingController s = new SchedulingController(); ArrayList a = s.GetScheduleByEvent( EventName.ToString(), Globals.ServerName ); for( int i = 0; i < a.Count; i++ ) { ScheduleHistoryItem scheduleItem = (ScheduleHistoryItem)( a[i] ); if( ! IsInQueue( scheduleItem ) && ! IsInProgress( scheduleItem ) && ! HasDependenciesConflict( scheduleItem ) && scheduleItem.Enabled ) { scheduleItem.ScheduleSource = ScheduleSource.STARTED_FROM_EVENT; AddToScheduleQueue( scheduleItem ); } } }
public override void AddScheduleItemSetting( int ScheduleID, string Name, string Value ) { SchedulingController s = new SchedulingController(); s.AddScheduleItemSetting( ScheduleID, Name, Value ); }
public override ArrayList GetScheduleHistory( int ScheduleID ) { SchedulingController s = new SchedulingController(); return s.GetScheduleHistory( ScheduleID ); }
public override int GetMaxThreadCount() { SchedulingController s = new SchedulingController(); return s.GetMaxThreadCount(); }
public static void PurgeScheduleHistory() { SchedulingController objSchedulingController = new SchedulingController(); objSchedulingController.PurgeScheduleHistory(); }