@InterfaceAudience.Private public class RegionSizeReportingChore extends ScheduledChore
Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
LOG |
private MetricsRegionServer |
metrics |
(package private) static long |
REGION_SIZE_REPORTING_CHORE_DELAY_DEFAULT |
(package private) static String |
REGION_SIZE_REPORTING_CHORE_DELAY_KEY |
(package private) static int |
REGION_SIZE_REPORTING_CHORE_PERIOD_DEFAULT |
(package private) static String |
REGION_SIZE_REPORTING_CHORE_PERIOD_KEY |
(package private) static String |
REGION_SIZE_REPORTING_CHORE_TIMEUNIT_DEFAULT |
(package private) static String |
REGION_SIZE_REPORTING_CHORE_TIMEUNIT_KEY |
private RegionServerServices |
rsServices |
Constructor and Description |
---|
RegionSizeReportingChore(RegionServerServices rsServices) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
_chore() |
protected void |
chore()
The task to execute on each scheduled execution of the Chore
|
(package private) static long |
getInitialDelay(org.apache.hadoop.conf.Configuration conf)
Extracts the initial delay for the chore from the configuration.
|
(package private) HashSet<RegionInfo> |
getOnlineRegionInfos(List<? extends Region> onlineRegions) |
(package private) static int |
getPeriod(org.apache.hadoop.conf.Configuration conf)
Extracts the period for the chore from the configuration.
|
(package private) static TimeUnit |
getTimeUnit(org.apache.hadoop.conf.Configuration conf)
Extracts the time unit for the chore period and initial delay from the configuration.
|
(package private) void |
removeNonOnlineRegions(RegionSizeStore store,
Set<RegionInfo> onlineRegions) |
cancel, cancel, choreForTesting, cleanup, getInitialDelay, getName, getPeriod, getStopper, getTimeUnit, initialChore, isInitialChoreComplete, isScheduled, run, toString, triggerNow
private static final org.slf4j.Logger LOG
static final String REGION_SIZE_REPORTING_CHORE_PERIOD_KEY
static final int REGION_SIZE_REPORTING_CHORE_PERIOD_DEFAULT
static final String REGION_SIZE_REPORTING_CHORE_DELAY_KEY
static final long REGION_SIZE_REPORTING_CHORE_DELAY_DEFAULT
static final String REGION_SIZE_REPORTING_CHORE_TIMEUNIT_KEY
static final String REGION_SIZE_REPORTING_CHORE_TIMEUNIT_DEFAULT
private final RegionServerServices rsServices
private final MetricsRegionServer metrics
public RegionSizeReportingChore(RegionServerServices rsServices)
protected void chore()
ScheduledChore
chore
in class ScheduledChore
void _chore()
HashSet<RegionInfo> getOnlineRegionInfos(List<? extends Region> onlineRegions)
void removeNonOnlineRegions(RegionSizeStore store, Set<RegionInfo> onlineRegions)
static int getPeriod(org.apache.hadoop.conf.Configuration conf)
conf
- The configuration object.static long getInitialDelay(org.apache.hadoop.conf.Configuration conf)
conf
- The configuration object.static TimeUnit getTimeUnit(org.apache.hadoop.conf.Configuration conf)
REGION_SIZE_REPORTING_CHORE_TIMEUNIT_KEY
must correspond to a
TimeUnit
value.conf
- The configuration object.Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.