org.apache.hadoop.hbase.master.handler
Class ServerShutdownHandler
java.lang.Object
org.apache.hadoop.hbase.executor.EventHandler
org.apache.hadoop.hbase.master.handler.ServerShutdownHandler
- All Implemented Interfaces:
- java.lang.Comparable<java.lang.Runnable>, java.lang.Runnable
- Direct Known Subclasses:
- MetaServerShutdownHandler
public class ServerShutdownHandler
- extends EventHandler
Process server shutdown.
Server-to-handle must be already in the deadservers lists. See
ServerManager.expireServer(HServerInfo).
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServerShutdownHandler
public ServerShutdownHandler(Server server,
MasterServices services,
DeadServer deadServers,
HServerInfo hsi)
process
public void process()
throws java.io.IOException
- Description copied from class:
EventHandler
- This method is the main processing loop to be implemented by the various
subclasses.
- Specified by:
process in class EventHandler
- Throws:
java.io.IOException
processDeadRegion
public static boolean processDeadRegion(HRegionInfo hri,
Result result,
AssignmentManager assignmentManager,
CatalogTracker catalogTracker)
throws java.io.IOException
- Process a dead region from a dead RS. Checks if the region is disabled
or if the region has a partially completed split.
- Parameters:
hri - result - assignmentManager - catalogTracker -
- Returns:
- Returns true if specified region should be assigned, false if not.
- Throws:
java.io.IOException
Copyright © 2011 The Apache Software Foundation. All Rights Reserved.