@InterfaceAudience.Private public class ServerShutdownHandler extends EventHandler
ServerManager.expireServer(ServerName)EventHandler.EventHandlerListener| Modifier and Type | Field and Description |
|---|---|
protected DeadServer |
deadServers |
protected int |
regionAssignmentWaitTimeout |
protected ServerName |
serverName |
protected MasterServices |
services |
protected boolean |
shouldSplitHlog |
eventType, seqids, server, waitingTimeForEvents| Constructor and Description |
|---|
ServerShutdownHandler(Server server,
MasterServices services,
DeadServer deadServers,
ServerName serverName,
boolean shouldSplitHlog) |
| Modifier and Type | Method and Description |
|---|---|
String |
getInformativeName()
Event implementations should override thie class to provide an
informative name about what event they are handling.
|
void |
process()
This method is the main processing loop to be implemented by the various
subclasses.
|
static boolean |
processDeadRegion(HRegionInfo hri,
AssignmentManager assignmentManager,
CatalogTracker catalogTracker)
Process a dead region from a dead RS.
|
String |
toString() |
compareTo, getEventType, getListener, getPriority, getSeqid, handleException, prepare, run, setListenerprotected final ServerName serverName
protected final MasterServices services
protected final DeadServer deadServers
protected final boolean shouldSplitHlog
protected final int regionAssignmentWaitTimeout
public ServerShutdownHandler(Server server, MasterServices services, DeadServer deadServers, ServerName serverName, boolean shouldSplitHlog)
public String getInformativeName()
EventHandlergetInformativeName in class EventHandlerpublic String toString()
toString in class EventHandlerpublic void process()
throws IOException
EventHandlerprocess in class EventHandlerIOExceptionpublic static boolean processDeadRegion(HRegionInfo hri, AssignmentManager assignmentManager, CatalogTracker catalogTracker) throws IOException
hri - assignmentManager - catalogTracker - IOExceptionCopyright © 2014 The Apache Software Foundation. All rights reserved.