public _Runnable_381(LogAggregationService _enclosing, AppLogAggregator appLogAggregator , ApplicationId appId, UserGroupInformation userUgi) { this._enclosing = _enclosing; this.appLogAggregator = appLogAggregator; this.appId = appId; this.userUgi = userUgi; }
private void StopApp(ApplicationId appId) { // App is complete. Finish up any containers' pending log aggregation and // close the application specific logFile. AppLogAggregator aggregator = this.appLogAggregators[appId]; if (aggregator == null) { Log.Warn("Log aggregation is not initialized for " + appId + ", did it fail to start?" ); return; } aggregator.FinishLogAggregation(); }
private void StopContainer(ContainerId containerId, int exitCode) { // A container is complete. Put this containers' logs up for aggregation if // this containers' logs are needed. AppLogAggregator aggregator = this.appLogAggregators[containerId.GetApplicationAttemptId ().GetApplicationId()]; if (aggregator == null) { Log.Warn("Log aggregation is not initialized for " + containerId + ", did it fail to start?" ); return; } aggregator.StartContainerLogAggregation(containerId, exitCode == 0); }