@InterfaceAudience.Private public class UnassignRegionHandler extends EventHandler
CloseRegionHandler, with some modifications on
fencing and retrying. But we need to keep the CloseRegionHandler as is to keep compatible
with the zk less assignment for 1.x, otherwise it is not possible to do rolling upgrade.eventType, seqids, server, waitingTimeForEvents| 构造器和说明 |
|---|
UnassignRegionHandler(HRegionServer server,
String encodedName,
long closeProcId,
boolean abort,
ServerName destination,
EventType eventType) |
| 限定符和类型 | 方法和说明 |
|---|---|
static UnassignRegionHandler |
create(HRegionServer server,
String encodedName,
long closeProcId,
boolean abort,
ServerName destination) |
protected void |
handleException(Throwable t)
Event exception handler, may be overridden
|
void |
process()
This method is the main processing loop to be implemented by the various
subclasses.
|
compareTo, getEventType, getInformativeName, getPriority, getSeqid, prepare, run, toStringpublic UnassignRegionHandler(HRegionServer server, String encodedName, long closeProcId, boolean abort, @Nullable ServerName destination, EventType eventType)
public void process()
throws IOException
EventHandlerprocess 在类中 EventHandlerIOExceptionprotected void handleException(Throwable t)
EventHandlerhandleException 在类中 EventHandlert - Throwable objectpublic static UnassignRegionHandler create(HRegionServer server, String encodedName, long closeProcId, boolean abort, @Nullable ServerName destination)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.