Exemplo n.º 1
0
 public MockApplicationHistoryManagerImpl(TestAHSWebApp _enclosing, ApplicationHistoryStore
                                          store)
     : base()
 {
     this._enclosing = _enclosing;
     this.Init(new YarnConfiguration());
     this.Start();
 }
 /// <exception cref="System.Exception"/>
 protected override void ServiceInit(Configuration conf)
 {
     Log.Info("ApplicationHistory Init");
     historyStore = CreateApplicationHistoryStore(conf);
     historyStore.Init(conf);
     serverHttpAddress = WebAppUtils.GetHttpSchemePrefix(conf) + WebAppUtils.GetAHSWebAppURLWithoutScheme
                             (conf);
     base.ServiceInit(conf);
 }
        public virtual void Setup()
        {
            store = new MemoryApplicationHistoryStore();
            Configuration conf = new Configuration();

            conf.SetBoolean(YarnConfiguration.ApplicationHistoryEnabled, true);
            conf.SetClass(YarnConfiguration.ApplicationHistoryStore, typeof(MemoryApplicationHistoryStore
                                                                            ), typeof(ApplicationHistoryStore));
            writer = new _RMApplicationHistoryWriter_86(this);
            writer.Init(conf);
            writer.Start();
        }
Exemplo n.º 4
0
 public virtual void SetApplicationHistoryStore(ApplicationHistoryStore store)
 {
     this.store = store;
 }