Beispiel #1
0
        public void SubmitJob(Microsoft.Hpc.Scheduler.ISchedulerJob job, System.String username, System.String password)
        {
            lock (SyncRoot)
            {
                // Retrieve the scheduler job instance if we are dealing with a wrapper
                ThreadSafeSchedulerJob threadSafeSchedulerJob = job as ThreadSafeSchedulerJob;
                if (threadSafeSchedulerJob != null)
                {
                    job = threadSafeSchedulerJob.Instance;
                }

                Instance.SubmitJob(job, username, password);
            }
        }
Beispiel #2
0
        public void AddJob(Microsoft.Hpc.Scheduler.ISchedulerJob job)
        {
            lock (SyncRoot)
            {
                // Retrieve the scheduler job instance if we are dealing with a wrapper
                ThreadSafeSchedulerJob threadSafeSchedulerJob = job as ThreadSafeSchedulerJob;
                if (threadSafeSchedulerJob != null)
                {
                    job = threadSafeSchedulerJob.Instance;
                }

                Instance.AddJob(job);
            }
        }