@InterfaceAudience.Private public class HLogSplitterHandler extends EventHandler
EventHandler.EventHandlerListenereventType, seqids, server, waitingTimeForEvents| Constructor and Description |
|---|
HLogSplitterHandler(Server server,
String curTask,
org.apache.commons.lang.mutable.MutableInt curTaskZKVersion,
CancelableProgressable reporter,
AtomicInteger inProgressTasks,
SplitLogWorker.TaskExecutor splitTaskExecutor,
ZooKeeperProtos.SplitLogTask.RecoveryMode mode) |
| Modifier and Type | Method and Description |
|---|---|
static void |
endTask(ZooKeeperWatcher zkw,
SplitLogTask slt,
AtomicLong ctr,
String task,
int taskZKVersion)
endTask() can fail and the only way to recover out of it is for the
SplitLogManager to timeout the task node. |
void |
process()
This method is the main processing loop to be implemented by the various
subclasses.
|
compareTo, getEventType, getInformativeName, getListener, getPriority, getSeqid, handleException, prepare, run, setListener, toStringpublic HLogSplitterHandler(Server server, String curTask, org.apache.commons.lang.mutable.MutableInt curTaskZKVersion, CancelableProgressable reporter, AtomicInteger inProgressTasks, SplitLogWorker.TaskExecutor splitTaskExecutor, ZooKeeperProtos.SplitLogTask.RecoveryMode mode)
public void process()
throws IOException
EventHandlerprocess in class EventHandlerIOExceptionpublic static void endTask(ZooKeeperWatcher zkw, SplitLogTask slt, AtomicLong ctr, String task, int taskZKVersion)
SplitLogManager to timeout the task node.slt - ctr - Copyright © 2014 The Apache Software Foundation. All rights reserved.