@InterfaceAudience.Private public class LogRoller extends HasThread
| Modifier and Type | Field and Description | 
|---|---|
| private long | checkLowReplicationInterval | 
| private long | lastrolltime | 
| private static org.apache.commons.logging.Log | LOG | 
| private ReentrantLock | rollLock | 
| private AtomicBoolean | rollLog | 
| private long | rollperiod | 
| private Server | server | 
| protected RegionServerServices | services | 
| private int | threadWakeFrequency | 
| private ConcurrentHashMap<WAL,Boolean> | walNeedsRoll | 
| Constructor and Description | 
|---|
| LogRoller(Server server,
         RegionServerServices services) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addWAL(WAL wal) | 
| (package private) void | checkLowReplication(long now)we need to check low replication in period, see HBASE-18132 | 
| void | interrupt() | 
| void | requestRollAll() | 
| void | run() | 
| private void | scheduleFlush(byte[] encodedRegionName) | 
| boolean | walRollFinished()For testing only | 
getName, getThread, isAlive, isInterrupted, join, join, join, setDaemon, setName, setPriority, setUncaughtExceptionHandler, startprivate static final org.apache.commons.logging.Log LOG
private final ReentrantLock rollLock
private final AtomicBoolean rollLog
private final ConcurrentHashMap<WAL,Boolean> walNeedsRoll
private final Server server
protected final RegionServerServices services
private volatile long lastrolltime
private final long rollperiod
private final int threadWakeFrequency
private long checkLowReplicationInterval
public LogRoller(Server server, RegionServerServices services)
server - public void addWAL(WAL wal)
public void requestRollAll()
void checkLowReplication(long now)
private void scheduleFlush(byte[] encodedRegionName)
encodedRegionName - Encoded name of region to flush.public boolean walRollFinished()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.