private TimelineDataManager createTimelineDataManager(Configuration conf) { return new TimelineDataManager( timelineStore, new TimelineACLsManager(conf)); }
private TimelineDataManager createTimelineDataManager(Configuration conf) { TimelineACLsManager aclsMgr = new TimelineACLsManager(conf); aclsMgr.setTimelineStore(timelineStore); return new TimelineDataManager(timelineStore, aclsMgr); }
private TimelineDataManager createTimelineDataManager(Configuration conf) { return new TimelineDataManager( timelineStore, new TimelineACLsManager(conf)); }
aclManager = new TimelineACLsManager(conf); aclManager.setTimelineStore(summaryStore); summaryTdm = new TimelineDataManager(summaryStore, aclManager); summaryTdm.init(conf); summaryTdm.start();
aclManager = new TimelineACLsManager(conf); aclManager.setTimelineStore(summaryStore); summaryTdm = new TimelineDataManager(summaryStore, aclManager); summaryTdm.init(conf); addService(summaryTdm);
aclManager = new TimelineACLsManager(conf); aclManager.setTimelineStore(summaryStore); summaryTdm = new TimelineDataManager(summaryStore, aclManager); summaryTdm.init(conf); summaryTdm.start();
static TimelineDataManager getTdmWithStore(Configuration config, TimelineStore store) { TimelineACLsManager aclManager = new TimelineACLsManager(config); TimelineDataManager tdm = new TimelineDataManager(store, aclManager); tdm.init(config); return tdm; }
store.start(); TimelineDataManager tdm = new TimelineDataManager(store, aclManager); tdm.init(config);
adminACLsManager = new AdminACLsManager(conf); TimelineDataManager timelineDataManager = new TimelineDataManager(store, timelineACLsManager); timelineDataManager.init(conf); timelineDataManager.start();
@Before public void setup() throws Exception { fsPath = new File("target", this.getClass().getSimpleName() + "-tmpDir").getAbsoluteFile(); fsContext = FileContext.getLocalFSFileContext(); fsContext.delete(new Path(fsPath.getAbsolutePath()), true); Configuration conf = new YarnConfiguration(); conf.set(YarnConfiguration.TIMELINE_SERVICE_LEVELDB_PATH, fsPath.getAbsolutePath()); conf.setBoolean(YarnConfiguration.TIMELINE_SERVICE_TTL_ENABLE, false); store = new LeveldbTimelineStore(); store.init(conf); store.start(); loadTestEntityData(); loadVerificationEntityData(); loadTestDomainData(); conf.setBoolean(YarnConfiguration.YARN_ACL_ENABLE, false); aclsManager = new TimelineACLsManager(conf); aclsManager.setTimelineStore(store); dataManaer = new TimelineDataManager(store, aclsManager); conf.setBoolean(YarnConfiguration.YARN_ACL_ENABLE, true); conf.set(YarnConfiguration.YARN_ADMIN_ACL, "admin"); dataManaer.init(conf); adminACLsManager = new AdminACLsManager(conf); }
new TimelineDataManager(store, aclManager)) { tdm.init(config); tdm.start();
public synchronized TimelineStore refreshCache() throws IOException { //TODO: make a config for cache freshness if (!cacheCompleted && Time.monotonicNow() - cacheRefreshTime > 10000) { if (!isDone()) { parseSummaryLogs(); } else if (detailLogs.isEmpty()) { scanForLogs(); } if (!detailLogs.isEmpty()) { if (cacheStore == null) { cacheStore = new MemoryTimelineStore(); cacheStore.init(getConfig()); cacheStore.start(); } TimelineDataManager tdm = new TimelineDataManager(cacheStore, aclManager); tdm.init(getConfig()); tdm.start(); for (LogInfo log : detailLogs) { log.parseForCache(tdm, dirPath, isDone()); } tdm.close(); } cacheRefreshTime = Time.monotonicNow(); cacheCompleted = isDone(); } return cacheStore; }
aclsManager.setTimelineStore(store); TimelineDataManager dataManager = new TimelineDataManager(store, aclsManager); conf.setBoolean(YarnConfiguration.YARN_ACL_ENABLE, true); conf.set(YarnConfiguration.YARN_ADMIN_ACL, "foo");
@Before public void setup() throws Exception { // Only test the ACLs of the generic history TimelineACLsManager aclsManager = new TimelineACLsManager(new YarnConfiguration()); aclsManager.setTimelineStore(store); TimelineDataManager dataManager = new TimelineDataManager(store, aclsManager); dataManager.init(conf); ApplicationACLsManager appAclsManager = new ApplicationACLsManager(conf); historyManager = new ApplicationHistoryManagerOnTimelineStore(dataManager, appAclsManager); historyManager.init(conf); historyManager.start(); }
@BeforeClass public static void setup() throws Exception { Configuration conf = new YarnConfiguration(); TimelineStore store = TestApplicationHistoryManagerOnTimelineStore.createStore(MAX_APPS); TimelineACLsManager aclsManager = new TimelineACLsManager(conf); aclsManager.setTimelineStore(store); dataManager = new TimelineDataManager(store, aclsManager); dataManager.init(conf); ApplicationACLsManager appAclsManager = new ApplicationACLsManager(conf); ApplicationHistoryManagerOnTimelineStore historyManager = new ApplicationHistoryManagerOnTimelineStore(dataManager, appAclsManager); historyManager.init(conf); historyManager.start(); clientService = new ApplicationHistoryClientService(historyManager); }