org.apache.hadoop.hbase.master.handler
Class OpenedRegionHandler
java.lang.Object
org.apache.hadoop.hbase.executor.EventHandler
org.apache.hadoop.hbase.master.handler.OpenedRegionHandler
- All Implemented Interfaces:
- Comparable<Runnable>, Runnable, TotesHRegionInfo
@InterfaceAudience.Private
public class OpenedRegionHandler
- extends EventHandler
- implements TotesHRegionInfo
Handles OPENED region event on Master.
OpenedRegionHandler
public OpenedRegionHandler(Server server,
AssignmentManager assignmentManager,
HRegionInfo regionInfo,
ServerName sn,
int expectedVersion)
getPriority
public int getPriority()
- Description copied from class:
EventHandler
- Get the priority level for this handler instance. This uses natural
ordering so lower numbers are higher priority.
Lowest priority is Integer.MAX_VALUE. Highest priority is 0.
Subclasses should override this method to allow prioritizing handlers.
Handlers with the same priority are handled in FIFO order.
- Overrides:
getPriority
in class EventHandler
- Returns:
- Integer.MAX_VALUE by default, override to set higher priorities
getHRegionInfo
public HRegionInfo getHRegionInfo()
- Specified by:
getHRegionInfo
in interface TotesHRegionInfo
- Returns:
- HRegionInfo instance.
toString
public String toString()
- Overrides:
toString
in class EventHandler
process
public void process()
- 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
Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.