org.apache.hadoop.hbase.master.handler
Class ServerShutdownHandler

java.lang.Object
  extended by org.apache.hadoop.hbase.executor.EventHandler
      extended by org.apache.hadoop.hbase.master.handler.ServerShutdownHandler
All Implemented Interfaces:
Comparable<Runnable>, 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).


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.executor.EventHandler
EventHandler.EventHandlerListener, EventHandler.EventType
 
Field Summary
 
Fields inherited from class org.apache.hadoop.hbase.executor.EventHandler
eventType, seqids, waitingTimeForEvents
 
Constructor Summary
ServerShutdownHandler(Server server, MasterServices services, DeadServer deadServers, HServerInfo hsi)
           
 
Method Summary
 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.
 
Methods inherited from class org.apache.hadoop.hbase.executor.EventHandler
compareTo, getEventType, getListener, getPriority, getSeqid, run, setListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerShutdownHandler

public ServerShutdownHandler(Server server,
                             MasterServices services,
                             DeadServer deadServers,
                             HServerInfo hsi)
Method Detail

process

public void process()
             throws 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:
IOException

processDeadRegion

public static boolean processDeadRegion(HRegionInfo hri,
                                        Result result,
                                        AssignmentManager assignmentManager,
                                        CatalogTracker catalogTracker)
                                 throws 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:
IOException


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.