@InterfaceAudience.Private public class LogRoller extends HasThread implements Closeable
Modifier and Type | Field and Description |
---|---|
private long |
checkLowReplicationInterval |
private long |
lastRollTime |
private static org.slf4j.Logger |
LOG |
private long |
rollPeriod |
private boolean |
running |
protected RegionServerServices |
services |
private int |
threadWakeFrequency |
private ConcurrentMap<WAL,Boolean> |
walNeedsRoll |
Constructor and Description |
---|
LogRoller(RegionServerServices services) |
Modifier and Type | Method and Description |
---|---|
private void |
abort(String reason,
Throwable cause) |
void |
addWAL(WAL wal) |
private void |
checkLowReplication(long now)
we need to check low replication in period, see HBASE-18132
|
void |
close() |
void |
requestRollAll() |
void |
run() |
private void |
scheduleFlush(String encodedRegionName) |
boolean |
walRollFinished()
For testing only
|
getName, getThread, interrupt, isAlive, isInterrupted, join, join, join, setDaemon, setName, setPriority, setUncaughtExceptionHandler, start
private static final org.slf4j.Logger LOG
private final ConcurrentMap<WAL,Boolean> walNeedsRoll
protected final RegionServerServices services
private volatile long lastRollTime
private final long rollPeriod
private final int threadWakeFrequency
private long checkLowReplicationInterval
private volatile boolean running
public LogRoller(RegionServerServices services)
public void requestRollAll()
private void checkLowReplication(long now)
private void scheduleFlush(String encodedRegionName)
encodedRegionName
- Encoded name of region to flush.public boolean walRollFinished()
public void close()
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.