org.apache.hama.ipc
Interface MasterProtocol

All Superinterfaces:
HamaRPCProtocolVersion, org.apache.hadoop.ipc.VersionedProtocol
All Known Implementing Classes:
BSPMaster

public interface MasterProtocol
extends HamaRPCProtocolVersion

A new protocol for GroomServers communicate with BSPMaster. This protocol paired with WorkerProtocl, let GroomServers enrol with BSPMaster, so that BSPMaster can dispatch tasks to GroomServers.


Field Summary
 
Fields inherited from interface org.apache.hama.ipc.HamaRPCProtocolVersion
versionID
 
Method Summary
 java.lang.String getSystemDir()
           
 boolean register(GroomServerStatus status)
          A GroomServer register with its status to BSPMaster, which will update GroomServers cache.
 boolean report(Directive directive)
          A GroomServer (periodically) reports task statuses back to the BSPMaster.
 
Methods inherited from interface org.apache.hadoop.ipc.VersionedProtocol
getProtocolVersion
 

Method Detail

register

boolean register(GroomServerStatus status)
                 throws java.io.IOException
A GroomServer register with its status to BSPMaster, which will update GroomServers cache.

Parameters:
status - to be updated in cache.
Returns:
true if successfully register with BSPMaster; false if fail.
Throws:
java.io.IOException

report

boolean report(Directive directive)
               throws java.io.IOException
A GroomServer (periodically) reports task statuses back to the BSPMaster.

Parameters:
directive -
Throws:
java.io.IOException

getSystemDir

java.lang.String getSystemDir()


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