@InterfaceAudience.Private @InterfaceStability.Evolving public class ReplicationSourceWALReader extends Thread
Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
protected BlockingQueue<org.apache.hadoop.hbase.replication.regionserver.ReplicationSourceWALReader.WALEntryBatch> |
entryBatchQueue |
protected int |
replicationBatchCountCapacity |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
ReplicationSourceWALReader(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.conf.Configuration conf,
PriorityBlockingQueue<org.apache.hadoop.fs.Path> logQueue,
long startPosition,
WALEntryFilter filter,
ReplicationSource source)
Creates a reader worker for a given WAL queue.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.fs.Path |
getCurrentPath() |
protected void |
handleEmptyWALEntryBatch(org.apache.hadoop.hbase.replication.regionserver.ReplicationSourceWALReader.WALEntryBatch batch,
org.apache.hadoop.fs.Path currentPath) |
boolean |
isReaderRunning() |
void |
run() |
void |
setReaderRunning(boolean readerRunning) |
org.apache.hadoop.hbase.replication.regionserver.ReplicationSourceWALReader.WALEntryBatch |
take()
Retrieves the next batch of WAL entries from the queue, waiting up to the specified time for a
batch to become available
|
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, yieldprotected final BlockingQueue<org.apache.hadoop.hbase.replication.regionserver.ReplicationSourceWALReader.WALEntryBatch> entryBatchQueue
protected final int replicationBatchCountCapacity
public ReplicationSourceWALReader(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.conf.Configuration conf,
PriorityBlockingQueue<org.apache.hadoop.fs.Path> logQueue,
long startPosition,
WALEntryFilter filter,
ReplicationSource source)
fs - the files system to useconf - configuration to uselogQueue - The WAL queue to read off ofstartPosition - position in the first WAL to start reading fromfilter - The filter to use while readingsource - replication sourceprotected void handleEmptyWALEntryBatch(org.apache.hadoop.hbase.replication.regionserver.ReplicationSourceWALReader.WALEntryBatch batch, org.apache.hadoop.fs.Path currentPath) throws InterruptedException
InterruptedExceptionpublic org.apache.hadoop.fs.Path getCurrentPath()
public org.apache.hadoop.hbase.replication.regionserver.ReplicationSourceWALReader.WALEntryBatch take() throws InterruptedException
InterruptedException - if interrupted while waitingpublic boolean isReaderRunning()
public void setReaderRunning(boolean readerRunning)
readerRunning - the readerRunning to setCopyright © 2007–2018 The Apache Software Foundation. All rights reserved.