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.
Methods inherited from interface org.apache.hadoop.ipc.VersionedProtocol |
getProtocolVersion |
register
boolean register(GroomServerStatus status)
throws 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:
IOException
report
boolean report(Directive directive)
throws IOException
- A GroomServer (periodically) reports task statuses back to the BSPMaster.
- Parameters:
directive
-
- Throws:
IOException
getSystemDir
String getSystemDir()
Copyright © 2011 The Apache Software Foundation