org.apache.hadoop.hbase.ipc
Interface HMasterRegionInterface

All Superinterfaces:
org.apache.hadoop.ipc.VersionedProtocol
All Known Implementing Classes:
HMaster

public interface HMasterRegionInterface
extends org.apache.hadoop.ipc.VersionedProtocol

HRegionServers interact with the HMasterRegionInterface to report on local goings-on and to obtain data-handling instructions from the HMaster.


Field Summary
static long versionID
          Interface version number.
 
Method Summary
 HMsg[] regionServerReport(HServerInfo info, HMsg[] msgs, HRegionInfo[] mostLoadedRegions)
          Called to renew lease, tell master what the region server is doing and to receive new instructions from the master
 org.apache.hadoop.io.MapWritable regionServerStartup(HServerInfo info)
          Called when a region server first starts
 
Methods inherited from interface org.apache.hadoop.ipc.VersionedProtocol
getProtocolVersion
 

Field Detail

versionID

static final long versionID
Interface version number. Version 2 was when the regionServerStartup was changed to return a MapWritable instead of a HbaseMapWritable as part of HBASE-82 changes. Version 3 was when HMsg was refactored so it could carry optional messages (HBASE-504).

See Also:
Constant Field Values
Method Detail

regionServerStartup

org.apache.hadoop.io.MapWritable regionServerStartup(HServerInfo info)
                                                     throws IOException
Called when a region server first starts

Parameters:
info -
Returns:
Configuration for the regionserver to use: e.g. filesystem, hbase rootdir, etc.
Throws:
IOException

regionServerReport

HMsg[] regionServerReport(HServerInfo info,
                          HMsg[] msgs,
                          HRegionInfo[] mostLoadedRegions)
                          throws IOException
Called to renew lease, tell master what the region server is doing and to receive new instructions from the master

Parameters:
info - server's address and start code
msgs - things the region server wants to tell the master
mostLoadedRegions - Array of HRegionInfos that should contain the reporting server's most loaded regions. These are candidates for being rebalanced.
Returns:
instructions from the master to the region server
Throws:
IOException


Copyright © 2008 The Apache Software Foundation