Class LogAggregationService
java.lang.Object
org.apache.hadoop.service.AbstractService
org.apache.hadoop.yarn.server.nodemanager.containermanager.logaggregation.LogAggregationService
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.hadoop.service.Service,org.apache.hadoop.yarn.event.EventHandler<LogHandlerEvent>,LogHandler
public class LogAggregationService
extends org.apache.hadoop.service.AbstractService
implements LogHandler
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.hadoop.service.Service
org.apache.hadoop.service.Service.STATE -
Constructor Summary
ConstructorsConstructorDescriptionLogAggregationService(org.apache.hadoop.yarn.event.Dispatcher dispatcher, Context context, DeletionService deletionService, LocalDirsHandlerService dirsHandler) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcloseFileSystems(org.apache.hadoop.security.UserGroupInformation userUgi) ConcurrentMap<org.apache.hadoop.yarn.api.records.ApplicationId,AppLogAggregator> Set<org.apache.hadoop.yarn.api.records.ApplicationId>org.apache.hadoop.yarn.logaggregation.filecontroller.LogAggregationFileControllergetLogAggregationFileController(org.apache.hadoop.conf.Configuration conf) org.apache.hadoop.yarn.api.records.NodeIdlongvoidhandle(LogHandlerEvent event) protected voidinitAppAggregator(org.apache.hadoop.yarn.api.records.ApplicationId appId, String user, org.apache.hadoop.security.Credentials credentials, Map<org.apache.hadoop.yarn.api.records.ApplicationAccessType, String> appAcls, org.apache.hadoop.yarn.api.records.LogAggregationContext logAggregationContext, long recoveredLogInitedTime) protected voidserviceInit(org.apache.hadoop.conf.Configuration conf) protected voidprotected voidMethods inherited from class org.apache.hadoop.service.AbstractService
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStop
-
Constructor Details
-
LogAggregationService
public LogAggregationService(org.apache.hadoop.yarn.event.Dispatcher dispatcher, Context context, DeletionService deletionService, LocalDirsHandlerService dirsHandler)
-
-
Method Details
-
serviceInit
- Overrides:
serviceInitin classorg.apache.hadoop.service.AbstractService- Throws:
Exception
-
serviceStart
- Overrides:
serviceStartin classorg.apache.hadoop.service.AbstractService- Throws:
Exception
-
serviceStop
- Overrides:
serviceStopin classorg.apache.hadoop.service.AbstractService- Throws:
Exception
-
initAppAggregator
protected void initAppAggregator(org.apache.hadoop.yarn.api.records.ApplicationId appId, String user, org.apache.hadoop.security.Credentials credentials, Map<org.apache.hadoop.yarn.api.records.ApplicationAccessType, String> appAcls, org.apache.hadoop.yarn.api.records.LogAggregationContext logAggregationContext, long recoveredLogInitedTime) -
closeFileSystems
protected void closeFileSystems(org.apache.hadoop.security.UserGroupInformation userUgi) -
handle
- Specified by:
handlein interfaceorg.apache.hadoop.yarn.event.EventHandler<LogHandlerEvent>- Specified by:
handlein interfaceLogHandler
-
getInvalidTokenApps
- Specified by:
getInvalidTokenAppsin interfaceLogHandler
-
getAppLogAggregators
@VisibleForTesting public ConcurrentMap<org.apache.hadoop.yarn.api.records.ApplicationId,AppLogAggregator> getAppLogAggregators() -
getNodeId
@VisibleForTesting public org.apache.hadoop.yarn.api.records.NodeId getNodeId() -
getRollingMonitorInterval
@VisibleForTesting public long getRollingMonitorInterval() -
getLogAggregationFileController
@VisibleForTesting public org.apache.hadoop.yarn.logaggregation.filecontroller.LogAggregationFileController getLogAggregationFileController(org.apache.hadoop.conf.Configuration conf)
-