public class ServerShutdownHandler extends EventHandler
ServerManager.expireServer(ServerName)
EventHandler.EventHandlerListener, EventHandler.EventType
Modifier and Type | Field and Description |
---|---|
protected DeadServer |
deadServers |
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 |
---|---|
static int |
fixupDaughters(Result result,
AssignmentManager assignmentManager,
CatalogTracker catalogTracker)
Check that daughter regions are up in .META.
|
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,
Result result,
AssignmentManager assignmentManager,
CatalogTracker catalogTracker)
Process a dead region from a dead RS.
|
String |
toString() |
compareTo, getEventType, getListener, getPriority, getSeqid, run, setListener
protected final ServerName serverName
protected final MasterServices services
protected final DeadServer deadServers
protected final boolean shouldSplitHlog
public ServerShutdownHandler(Server server, MasterServices services, DeadServer deadServers, ServerName serverName, boolean shouldSplitHlog)
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, Result result, AssignmentManager assignmentManager, CatalogTracker catalogTracker) throws IOException
hri
- result
- assignmentManager
- catalogTracker
- IOException
public static int fixupDaughters(Result result, AssignmentManager assignmentManager, CatalogTracker catalogTracker) throws IOException
hris
- All regions for this server in meta.result
- The contents of the parent row in .META.IOException
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.