@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 |
|---|---|
java.lang.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.
|
java.lang.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 shouldSplitWal
protected final int regionAssignmentWaitTimeout
public ServerShutdownHandler(Server server, MasterServices services, DeadServer deadServers, ServerName serverName, boolean shouldSplitWal)
public java.lang.String getInformativeName()
EventHandlergetInformativeName in class EventHandlerpublic java.lang.String toString()
toString in class EventHandlerpublic void process()
throws java.io.IOException
EventHandlerprocess in class EventHandlerjava.io.IOExceptionpublic static boolean processDeadRegion(HRegionInfo hri, AssignmentManager assignmentManager) throws java.io.IOException
hri - assignmentManager - java.io.IOException