コード例 #1
0
 public override Hashtable GetScheduleItemSettings( int ScheduleID )
 {
     SchedulingController s = new SchedulingController();
     return s.GetScheduleItemSettings( ScheduleID );
 }
コード例 #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" );
        }
コード例 #3
0
 public override void DeleteSchedule( ScheduleItem objScheduleItem )
 {
     SchedulingController s = new SchedulingController();
     s.DeleteSchedule( objScheduleItem.ScheduleID );
     Scheduler.CoreScheduler.RemoveFromScheduleQueue( objScheduleItem );
     DataCache.RemoveCache( "ScheduleLastPolled" );
 }
コード例 #4
0
 public override ArrayList GetScheduleProcessing()
 {
     SchedulingController s = new SchedulingController();
     return s.GetScheduleProcessing();
 }
コード例 #5
0
 public override ScheduleStatus GetScheduleStatus()
 {
     SchedulingController s = new SchedulingController();
     return s.GetScheduleStatus();
 }
コード例 #6
0
ファイル: Scheduler.cs プロジェクト: huayang912/cs-dotnetnuke
            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 );
                    }
                }
            }
コード例 #7
0
 public override ArrayList GetScheduleQueue()
 {
     SchedulingController s = new SchedulingController();
     return s.GetScheduleQueue();
 }
コード例 #8
0
 public override ScheduleItem GetSchedule( string TypeFullName, string Server )
 {
     SchedulingController s = new SchedulingController();
     return s.GetSchedule( TypeFullName, Server );
 }
コード例 #9
0
 public override ScheduleItem GetNextScheduledTask( string Server )
 {
     SchedulingController s = new SchedulingController();
     return s.GetNextScheduledTask( Server );
 }
コード例 #10
0
 public override ArrayList GetSchedule( string Server )
 {
     SchedulingController s = new SchedulingController();
     return s.GetSchedule( Server );
 }
コード例 #11
0
 public override ScheduleItem GetSchedule( int ScheduleID )
 {
     SchedulingController s = new SchedulingController();
     return s.GetSchedule( ScheduleID );
 }
コード例 #12
0
ファイル: Scheduler.cs プロジェクト: huayang912/cs-dotnetnuke
 public static void UpdateScheduleHistory( ScheduleHistoryItem objScheduleHistoryItem )
 {
     try
     {
         SchedulingController controller = new SchedulingController();
         controller.UpdateScheduleHistory( objScheduleHistoryItem );
     }
     catch( Exception exc )
     {
         Exceptions.Exceptions.ProcessSchedulerException( exc );
     }
 }
コード例 #13
0
ファイル: Scheduler.cs プロジェクト: huayang912/cs-dotnetnuke
            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;
            }
コード例 #14
0
ファイル: Scheduler.cs プロジェクト: huayang912/cs-dotnetnuke
            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 );
                    }
                }
            }
コード例 #15
0
 public override void AddScheduleItemSetting( int ScheduleID, string Name, string Value )
 {
     SchedulingController s = new SchedulingController();
     s.AddScheduleItemSetting( ScheduleID, Name, Value );
 }
コード例 #16
0
 public override ArrayList GetScheduleHistory( int ScheduleID )
 {
     SchedulingController s = new SchedulingController();
     return s.GetScheduleHistory( ScheduleID );
 }
コード例 #17
0
 public override int GetMaxThreadCount()
 {
     SchedulingController s = new SchedulingController();
     return s.GetMaxThreadCount();
 }
コード例 #18
0
ファイル: Scheduler.cs プロジェクト: huayang912/cs-dotnetnuke
 public static void PurgeScheduleHistory()
 {
     SchedulingController objSchedulingController = new SchedulingController();
     objSchedulingController.PurgeScheduleHistory();
 }