org.apache.hadoop.hbase.regionserver.handler
Class HLogSplitterHandler
java.lang.Object
org.apache.hadoop.hbase.executor.EventHandler
org.apache.hadoop.hbase.regionserver.handler.HLogSplitterHandler
- All Implemented Interfaces:
- Comparable<Runnable>, Runnable
@InterfaceAudience.Private
public class HLogSplitterHandler
- extends EventHandler
Handles log splitting a wal
Methods inherited from class org.apache.hadoop.hbase.executor.EventHandler |
compareTo, getEventType, getInformativeName, getListener, getPriority, getSeqid, handleException, prepare, run, setListener, toString |
HLogSplitterHandler
public HLogSplitterHandler(Server server,
String curTask,
org.apache.commons.lang.mutable.MutableInt curTaskZKVersion,
CancelableProgressable reporter,
AtomicInteger inProgressTasks,
SplitLogWorker.TaskExecutor splitTaskExecutor,
ZooKeeperProtos.SplitLogTask.RecoveryMode mode)
process
public void process()
throws IOException
- Description copied from class:
EventHandler
- This method is the main processing loop to be implemented by the various
subclasses.
- Specified by:
process
in class EventHandler
- Throws:
IOException
endTask
public 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.
- Parameters:
slt
- ctr
-
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.