org.apache.hadoop.hbase.regionserver.handler
Class OpenRegionHandler

java.lang.Object
  extended by org.apache.hadoop.hbase.executor.EventHandler
      extended by org.apache.hadoop.hbase.regionserver.handler.OpenRegionHandler
All Implemented Interfaces:
Comparable<Runnable>, Runnable
Direct Known Subclasses:
OpenMetaHandler, OpenRootHandler

public class OpenRegionHandler
extends EventHandler

Handles opening of a region on a region server.

This is executed after receiving an OPEN RPC from the master or client.


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, server, waitingTimeForEvents
 
Constructor Summary
  OpenRegionHandler(Server server, RegionServerServices rsServices, HRegionInfo regionInfo)
           
protected OpenRegionHandler(Server server, RegionServerServices rsServices, HRegionInfo regionInfo, EventHandler.EventType eventType)
           
 
Method Summary
 HRegionInfo getRegionInfo()
           
 void process()
          This method is the main processing loop to be implemented by the various subclasses.
 
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

OpenRegionHandler

public OpenRegionHandler(Server server,
                         RegionServerServices rsServices,
                         HRegionInfo regionInfo)

OpenRegionHandler

protected OpenRegionHandler(Server server,
                            RegionServerServices rsServices,
                            HRegionInfo regionInfo,
                            EventHandler.EventType eventType)
Method Detail

getRegionInfo

public HRegionInfo getRegionInfo()

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


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