org.apache.hadoop.hbase.ipc
Interface HMasterRegionInterface

All Superinterfaces:
VersionedProtocol
All Known Implementing Classes:
HMaster, HMasterCommandLine.LocalHMaster

public interface HMasterRegionInterface
extends VersionedProtocol

The Master publishes this Interface for RegionServers to register themselves on.


Field Summary
static long VERSION
          This Interfaces' version.
 
Method Summary
 void regionServerReport(byte[] sn, HServerLoad hsl)
           
 org.apache.hadoop.io.MapWritable regionServerStartup(int port, long serverStartcode, long serverCurrentTime)
          Called when a region server first starts.
 void reportRSFatalError(byte[] sn, String errorMessage)
          Called by a region server to report a fatal error that is causing it to abort.
 
Methods inherited from interface org.apache.hadoop.hbase.ipc.VersionedProtocol
getProtocolSignature, getProtocolVersion
 

Field Detail

VERSION

static final long VERSION
This Interfaces' version. Version changes when the Interface changes.

See Also:
Constant Field Values
Method Detail

regionServerStartup

org.apache.hadoop.io.MapWritable regionServerStartup(int port,
                                                     long serverStartcode,
                                                     long serverCurrentTime)
                                                     throws IOException
Called when a region server first starts.

Parameters:
port - Port number this regionserver is up on.
serverStartcode - This servers' startcode.
serverCurrentTime - The current time of the region server in ms
Returns:
Configuration for the regionserver to use: e.g. filesystem, hbase rootdir, the hostname to use creating the RegionServer ServerName, etc.
Throws:
IOException - e

regionServerReport

void regionServerReport(byte[] sn,
                        HServerLoad hsl)
                        throws IOException
Parameters:
sn - ServerName.getVersionedBytes()
hsl - Server load.
Throws:
IOException

reportRSFatalError

void reportRSFatalError(byte[] sn,
                        String errorMessage)
Called by a region server to report a fatal error that is causing it to abort.

Parameters:
sn - ServerName.getVersionedBytes()
errorMessage - informative text to expose in the master logs and UI


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