/// <exception cref="System.IO.IOException"/> private static FairScheduler MockFairSchedulerWithoutApps(RMContext rmContext) { FairScheduler fs = new _FairScheduler_207(); FairSchedulerConfiguration conf = new FairSchedulerConfiguration(); fs.SetRMContext(rmContext); fs.Init(conf); return(fs); }
/// <exception cref="System.IO.IOException"/> private static FairScheduler MockFairScheduler() { FairScheduler fs = new FairScheduler(); FairSchedulerConfiguration conf = new FairSchedulerConfiguration(); fs.SetRMContext(new RMContextImpl(null, null, null, null, null, null, new RMContainerTokenSecretManager (conf), new NMTokenSecretManagerInRM(conf), new ClientToAMTokenSecretManagerInRM (), null)); fs.Init(conf); return(fs); }