@InterfaceAudience.LimitedPrivate(value={"yarn","mapreduce"})
public class AggregatedLogDeletionService
extends org.apache.hadoop.service.AbstractService
Modifier and Type | Class and Description |
---|---|
static class |
AggregatedLogDeletionService.LogDeletionTask |
Constructor and Description |
---|
AggregatedLogDeletionService() |
Modifier and Type | Method and Description |
---|---|
protected org.apache.hadoop.conf.Configuration |
createConf() |
List<AggregatedLogDeletionService.LogDeletionTask> |
createLogDeletionTasks(org.apache.hadoop.conf.Configuration conf,
long retentionSecs,
org.apache.hadoop.yarn.api.ApplicationClientProtocol rmClient) |
protected org.apache.hadoop.yarn.api.ApplicationClientProtocol |
createRMClient() |
long |
getCheckIntervalMsecs() |
void |
refreshLogRetentionSettings() |
protected void |
serviceStart() |
protected void |
serviceStop() |
protected void |
stopRMClient() |
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, serviceInit, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStop
protected void serviceStart() throws Exception
serviceStart
in class org.apache.hadoop.service.AbstractService
Exception
protected void serviceStop() throws Exception
serviceStop
in class org.apache.hadoop.service.AbstractService
Exception
public void refreshLogRetentionSettings() throws IOException
IOException
@VisibleForTesting public List<AggregatedLogDeletionService.LogDeletionTask> createLogDeletionTasks(org.apache.hadoop.conf.Configuration conf, long retentionSecs, org.apache.hadoop.yarn.api.ApplicationClientProtocol rmClient) throws IOException
IOException
public long getCheckIntervalMsecs()
protected org.apache.hadoop.conf.Configuration createConf()
@VisibleForTesting protected org.apache.hadoop.yarn.api.ApplicationClientProtocol createRMClient() throws IOException
IOException
@VisibleForTesting protected void stopRMClient()
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.