@InterfaceAudience.Private public class StorefileRefresherChore extends ScheduledChore
Modifier and Type | Field and Description |
---|---|
(package private) static int |
DEFAULT_REGIONSERVER_STOREFILE_REFRESH_PERIOD |
private long |
hfileTtl |
private Map<String,Long> |
lastRefreshTimes |
private static org.slf4j.Logger |
LOG |
private boolean |
onlyMetaRefresh |
private int |
period |
private HRegionServer |
regionServer |
static String |
REGIONSERVER_META_STOREFILE_REFRESH_PERIOD
Whether all storefiles should be refreshed, as opposed to just hbase:meta's Meta region doesn't
have WAL replication for replicas enabled yet
|
static String |
REGIONSERVER_STOREFILE_REFRESH_PERIOD
The period (in milliseconds) for refreshing the store files for the secondary regions.
|
Constructor and Description |
---|
StorefileRefresherChore(int period,
boolean onlyMetaRefresh,
HRegionServer regionServer,
Stoppable stoppable) |
Modifier and Type | Method and Description |
---|---|
protected void |
chore()
The task to execute on each scheduled execution of the Chore
|
protected boolean |
isRegionStale(String encodedName,
long time) |
cancel, cancel, choreForTesting, cleanup, getInitialDelay, getName, getPeriod, getStopper, getTimeUnit, initialChore, isInitialChoreComplete, isScheduled, run, shutdown, shutdown, toString, triggerNow
private static final org.slf4j.Logger LOG
public static final String REGIONSERVER_STOREFILE_REFRESH_PERIOD
static final int DEFAULT_REGIONSERVER_STOREFILE_REFRESH_PERIOD
public static final String REGIONSERVER_META_STOREFILE_REFRESH_PERIOD
private HRegionServer regionServer
private long hfileTtl
private int period
private boolean onlyMetaRefresh
private Map<String,Long> lastRefreshTimes
public StorefileRefresherChore(int period, boolean onlyMetaRefresh, HRegionServer regionServer, Stoppable stoppable)
protected void chore()
ScheduledChore
chore
in class ScheduledChore
protected boolean isRegionStale(String encodedName, long time)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.