= context.getRegisteringCollectors(); for (Map.Entry<ApplicationId, AppCollectorData> entry : knownCollectors.entrySet()) {
= context.getRegisteringCollectors(); if (registeringCollectors != null) { registeringCollectors.putAll(newCollectorsMap);
context.getRegisteringCollectors().remove(entry.getKey());
private void updateCollectorStatus(ApplicationImpl app) { // Remove collectors info for finished apps. // TODO check we remove related collectors info in failure cases // (YARN-3038) Map<ApplicationId, AppCollectorData> registeringCollectors = app.context.getRegisteringCollectors(); if (registeringCollectors != null) { registeringCollectors.remove(app.getAppId()); } Map<ApplicationId, AppCollectorData> knownCollectors = app.context.getKnownCollectors(); if (knownCollectors != null) { knownCollectors.remove(app.getAppId()); } // stop timelineClient when application get finished. NMTimelinePublisher nmTimelinePublisher = app.context.getNMTimelinePublisher(); if (nmTimelinePublisher != null) { nmTimelinePublisher.stopTimelineClient(app.getAppId()); } }
nodeAttributesForHeartbeat, NodeStatusUpdaterImpl.this.context .getRegisteringCollectors());