@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 |
shouldSplitWal |
eventType, seqids, server, waitingTimeForEvents
Constructor and Description |
---|
ServerShutdownHandler(Server server,
MasterServices services,
DeadServer deadServers,
ServerName serverName,
boolean shouldSplitWal) |
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)
Process a dead region from a dead RS.
|
String |
toString() |
compareTo, getEventType, getListener, getPriority, getSeqid, handleException, prepare, run, setListener
protected final ServerName serverName
protected final MasterServices services
protected final DeadServer deadServers
protected final boolean shouldSplitWal
protected final int regionAssignmentWaitTimeout
public ServerShutdownHandler(Server server, MasterServices services, DeadServer deadServers, ServerName serverName, boolean shouldSplitWal)
public String getInformativeName()
EventHandler
getInformativeName
in class EventHandler
public String toString()
toString
in class EventHandler
public void process() throws IOException
EventHandler
process
in class EventHandler
IOException
public static boolean processDeadRegion(HRegionInfo hri, AssignmentManager assignmentManager) throws IOException
hri
- assignmentManager
- IOException
Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.