@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, 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 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) throws IOException
hri - assignmentManager - IOException