@InterfaceAudience.Private public class ReplicationSourceShipper extends Thread
| Modifier and Type | Class and Description |
|---|---|
static class |
ReplicationSourceShipper.WorkerState |
Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
protected org.apache.hadoop.hbase.replication.regionserver.ReplicationSourceWALReader |
entryReader |
protected int |
maxRetriesMultiplier |
protected PriorityBlockingQueue<org.apache.hadoop.fs.Path> |
queue |
protected long |
sleepForRetries |
protected String |
walGroupId |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
ReplicationSourceShipper(org.apache.hadoop.conf.Configuration conf,
String walGroupId,
PriorityBlockingQueue<org.apache.hadoop.fs.Path> queue,
ReplicationSourceInterface source) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isFinished() |
protected void |
noMoreData() |
protected void |
postFinish() |
void |
run() |
protected void |
setWorkerState(ReplicationSourceShipper.WorkerState state) |
boolean |
sleepForRetries(String msg,
int sleepMultiplier)
Do the sleeping logic
|
void |
startup(Thread.UncaughtExceptionHandler handler) |
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 String walGroupId
protected final PriorityBlockingQueue<org.apache.hadoop.fs.Path> queue
protected org.apache.hadoop.hbase.replication.regionserver.ReplicationSourceWALReader entryReader
protected final long sleepForRetries
protected final int maxRetriesMultiplier
public ReplicationSourceShipper(org.apache.hadoop.conf.Configuration conf,
String walGroupId,
PriorityBlockingQueue<org.apache.hadoop.fs.Path> queue,
ReplicationSourceInterface source)
protected void noMoreData()
protected void postFinish()
public void startup(Thread.UncaughtExceptionHandler handler)
protected final void setWorkerState(ReplicationSourceShipper.WorkerState state)
public boolean isFinished()
public boolean sleepForRetries(String msg, int sleepMultiplier)
msg - Why we sleepsleepMultiplier - by how many times the default sleeping time is augmentedsleepMultiplier is < maxRetriesMultiplierCopyright © 2007–2019 Cloudera. All rights reserved.