org.apache.hadoop.yarn.server.nodemanager.containermanager.loghandler
Class NonAggregatingLogHandler
java.lang.Object
org.apache.hadoop.yarn.service.AbstractService
org.apache.hadoop.yarn.server.nodemanager.containermanager.loghandler.NonAggregatingLogHandler
- All Implemented Interfaces:
- org.apache.hadoop.yarn.event.EventHandler<LogHandlerEvent>, LogHandler, org.apache.hadoop.yarn.service.Service
public class NonAggregatingLogHandler
- extends org.apache.hadoop.yarn.service.AbstractService
- implements LogHandler
Log Handler which schedules deletion of log files based on the configured log
retention time.
| Nested classes/interfaces inherited from interface org.apache.hadoop.yarn.service.Service |
org.apache.hadoop.yarn.service.Service.STATE |
| Methods inherited from class org.apache.hadoop.yarn.service.AbstractService |
getConfig, getName, getServiceState, getStartTime, register, start, unregister |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NonAggregatingLogHandler
public NonAggregatingLogHandler(org.apache.hadoop.yarn.event.Dispatcher dispatcher,
DeletionService delService,
LocalDirsHandlerService dirsHandler)
init
public void init(org.apache.hadoop.conf.Configuration conf)
- Specified by:
init in interface org.apache.hadoop.yarn.service.Service- Overrides:
init in class org.apache.hadoop.yarn.service.AbstractService
stop
public void stop()
- Specified by:
stop in interface org.apache.hadoop.yarn.service.Service- Overrides:
stop in class org.apache.hadoop.yarn.service.AbstractService
handle
public void handle(LogHandlerEvent event)
- Specified by:
handle in interface org.apache.hadoop.yarn.event.EventHandler<LogHandlerEvent>- Specified by:
handle in interface LogHandler
Copyright © 2013 Apache Software Foundation. All Rights Reserved.