Ejemplo n.º 1
0
 public override Hashtable GetScheduleItemSettings( int ScheduleID )
 {
     SchedulingController s = new SchedulingController();
     return s.GetScheduleItemSettings( ScheduleID );
 }
Ejemplo n.º 2
0
        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" );
        }
Ejemplo n.º 3
0
 public override void DeleteSchedule( ScheduleItem objScheduleItem )
 {
     SchedulingController s = new SchedulingController();
     s.DeleteSchedule( objScheduleItem.ScheduleID );
     Scheduler.CoreScheduler.RemoveFromScheduleQueue( objScheduleItem );
     DataCache.RemoveCache( "ScheduleLastPolled" );
 }
Ejemplo n.º 4
0
 public override ArrayList GetScheduleProcessing()
 {
     SchedulingController s = new SchedulingController();
     return s.GetScheduleProcessing();
 }
Ejemplo n.º 5
0
 public override ScheduleStatus GetScheduleStatus()
 {
     SchedulingController s = new SchedulingController();
     return s.GetScheduleStatus();
 }
Ejemplo n.º 6
0
            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 );
                    }
                }
            }
Ejemplo n.º 7
0
 public override ArrayList GetScheduleQueue()
 {
     SchedulingController s = new SchedulingController();
     return s.GetScheduleQueue();
 }
Ejemplo n.º 8
0
 public override ScheduleItem GetSchedule( string TypeFullName, string Server )
 {
     SchedulingController s = new SchedulingController();
     return s.GetSchedule( TypeFullName, Server );
 }
Ejemplo n.º 9
0
 public override ScheduleItem GetNextScheduledTask( string Server )
 {
     SchedulingController s = new SchedulingController();
     return s.GetNextScheduledTask( Server );
 }
Ejemplo n.º 10
0
 public override ArrayList GetSchedule( string Server )
 {
     SchedulingController s = new SchedulingController();
     return s.GetSchedule( Server );
 }
Ejemplo n.º 11
0
 public override ScheduleItem GetSchedule( int ScheduleID )
 {
     SchedulingController s = new SchedulingController();
     return s.GetSchedule( ScheduleID );
 }
Ejemplo n.º 12
0
 public static void UpdateScheduleHistory( ScheduleHistoryItem objScheduleHistoryItem )
 {
     try
     {
         SchedulingController controller = new SchedulingController();
         controller.UpdateScheduleHistory( objScheduleHistoryItem );
     }
     catch( Exception exc )
     {
         Exceptions.Exceptions.ProcessSchedulerException( exc );
     }
 }
Ejemplo n.º 13
0
            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;
            }
Ejemplo n.º 14
0
            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 );
                    }
                }
            }
Ejemplo n.º 15
0
 public override void AddScheduleItemSetting( int ScheduleID, string Name, string Value )
 {
     SchedulingController s = new SchedulingController();
     s.AddScheduleItemSetting( ScheduleID, Name, Value );
 }
Ejemplo n.º 16
0
 public override ArrayList GetScheduleHistory( int ScheduleID )
 {
     SchedulingController s = new SchedulingController();
     return s.GetScheduleHistory( ScheduleID );
 }
Ejemplo n.º 17
0
 public override int GetMaxThreadCount()
 {
     SchedulingController s = new SchedulingController();
     return s.GetMaxThreadCount();
 }
Ejemplo n.º 18
0
 public static void PurgeScheduleHistory()
 {
     SchedulingController objSchedulingController = new SchedulingController();
     objSchedulingController.PurgeScheduleHistory();
 }