private AppLogs getAndSetActiveLog(ApplicationId appId, Path appDirPath) { AppLogs appLogs = appIdLogMap.get(appId); if (appLogs == null) { appLogs = createAndPutAppLogsIfAbsent(appId, appDirPath, AppState.ACTIVE); } return appLogs; }
LOG.debug("Create and try to add new appLogs to appIdLogMap for {}", applicationId); appLogs = createAndPutAppLogsIfAbsent( applicationId, appDirPath, appState);