Modifier and Type | Field and Description |
---|---|
static String |
QUERY_RESULT_PURGER_ERROR_COUNTER
The Constant QUERY_RESULT_PURGER_COUNTER.
|
Constructor and Description |
---|
QueryResultPurger() |
Modifier and Type | Method and Description |
---|---|
void |
awaitTermination(long timeout,
TimeUnit unit) |
void |
init(org.apache.hadoop.conf.Configuration configuration) |
boolean |
isHealthy()
Checks the status of executor service
|
void |
purgePaths(org.apache.hadoop.fs.Path path,
DateUtil.TimeDiff retention,
boolean purgeDirectory) |
void |
run() |
void |
shutdown()
Stops query result purger
|
public static final String QUERY_RESULT_PURGER_ERROR_COUNTER
public void init(org.apache.hadoop.conf.Configuration configuration)
public void purgePaths(org.apache.hadoop.fs.Path path, DateUtil.TimeDiff retention, boolean purgeDirectory) throws IOException
IOException
public void shutdown()
public boolean isHealthy()
public void awaitTermination(long timeout, TimeUnit unit) throws InterruptedException
InterruptedException
Copyright © 2014–2016 Apache Software Foundation. All rights reserved.