@InterfaceAudience.Private public final class MasterRegionWALRoller extends AbstractWALRoller<Abortable>
scheduleFlush(String)
method we can just schedule flush for the master
local region.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, WAL_ROLL_PERIOD_KEY, walNeedsRoll
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 |
afterRoll(WAL wal)
Called after we finish rolling the give
wal . |
(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) |
(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 afterRoll(WAL wal)
AbstractWALRoller
wal
.afterRoll
in class AbstractWALRoller<Abortable>
protected void scheduleFlush(String encodedRegionName)
scheduleFlush
in class AbstractWALRoller<Abortable>
encodedRegionName
- Encoded name 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.