org.apache.hadoop.hbase
Interface HMasterRegionInterface

All Superinterfaces:
VersionedProtocol
All Known Implementing Classes:
HMaster

public interface HMasterRegionInterface
extends 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)
          Called to renew lease, tell master what the region server is doing and to receive new instructions from the master
 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

See Also:
Constant Field Values
Method Detail

regionServerStartup

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)
                          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
Returns:
instructions from the master to the region server
Throws:
IOException


Copyright © 2006 The Apache Software Foundation