@InterfaceAudience.Private public final class MasterRegionWALRoller extends AbstractWALRoller<Abortable>
scheduleFlush(String, List)
method we can just schedule flush for the
master local region.AbstractWALRoller.RollController
Thread.State, Thread.UncaughtExceptionHandler
Modifier and Type | Field and Description |
---|---|
private String |
archivedWALSuffix |
private MasterRegionFlusherAndCompactor |
flusherAndCompactor |
private org.apache.hadoop.fs.FileSystem |
fs |
private org.apache.hadoop.fs.Path |
globalWALArchiveDir |
private static org.slf4j.Logger |
LOG |
private org.apache.hadoop.fs.Path |
walArchiveDir |
abortable, DEFAULT_WAL_ROLL_WAIT_TIMEOUT, WAL_ROLL_PERIOD_KEY, WAL_ROLL_RETRIES, WAL_ROLL_WAIT_TIMEOUT, wals
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Modifier | Constructor and Description |
---|---|
private |
MasterRegionWALRoller(String name,
org.apache.hadoop.conf.Configuration conf,
Abortable abortable,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path walRootDir,
org.apache.hadoop.fs.Path globalWALRootDir,
String archivedWALSuffix) |
Modifier and Type | Method and Description |
---|---|
protected void |
afterWALArchive(org.apache.hadoop.fs.Path oldPath,
org.apache.hadoop.fs.Path newPath) |
(package private) static MasterRegionWALRoller |
create(String name,
org.apache.hadoop.conf.Configuration conf,
Abortable abortable,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path walRootDir,
org.apache.hadoop.fs.Path globalWALRootDir,
String archivedWALSuffix,
long rollPeriodMs,
long flushSize) |
protected void |
scheduleFlush(String encodedRegionName,
List<byte[]> families) |
(package private) void |
setFlusherAndCompactor(MasterRegionFlusherAndCompactor flusherAndCompactor) |
addWAL, close, requestRollAll, run, waitUntilWalRollFinished, walRollFinished
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
private static final org.slf4j.Logger LOG
private volatile MasterRegionFlusherAndCompactor flusherAndCompactor
private final org.apache.hadoop.fs.FileSystem fs
private final org.apache.hadoop.fs.Path walArchiveDir
private final org.apache.hadoop.fs.Path globalWALArchiveDir
private final String archivedWALSuffix
private MasterRegionWALRoller(String name, org.apache.hadoop.conf.Configuration conf, Abortable abortable, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path walRootDir, org.apache.hadoop.fs.Path globalWALRootDir, String archivedWALSuffix)
protected void afterWALArchive(org.apache.hadoop.fs.Path oldPath, org.apache.hadoop.fs.Path newPath)
afterWALArchive
in class AbstractWALRoller<Abortable>
protected void scheduleFlush(String encodedRegionName, List<byte[]> families)
scheduleFlush
in class AbstractWALRoller<Abortable>
encodedRegionName
- Encoded name of region to flush.families
- stores of region to flush.void setFlusherAndCompactor(MasterRegionFlusherAndCompactor flusherAndCompactor)
static MasterRegionWALRoller create(String name, org.apache.hadoop.conf.Configuration conf, Abortable abortable, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path walRootDir, org.apache.hadoop.fs.Path globalWALRootDir, String archivedWALSuffix, long rollPeriodMs, long flushSize)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.