Documentation
¶
Index ¶
- Constants
- func End(workerIP string) bool
- func Map(workerIP string, m *rpc.MapInfo) bool
- func NewMaster(nWorker int, nReduce int) rpc.MasterServer
- func Reduce(workerIP string, m *rpc.ReduceInfo) bool
- func StartMaster(files []string, nWorker int, nReduce int, addr string)
- type FileInfo
- type IMDInfo
- type MapTaskInfo
- type Master
- type ReduceTaskInfo
- type WorkerInfo
Constants ¶
View Source
const ( IDLE int = iota INPROGRESS COMPLETED )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MapTaskInfo ¶
type Master ¶
type Master struct {
Workers []WorkerInfo
MapTasks []MapTaskInfo
ReduceTasks []ReduceTaskInfo
rpc.UnimplementedMasterServer
// contains filtered or unexported fields
}
func (*Master) UpdateIMDInfo ¶
func (*Master) WorkerRegister ¶
func (ms *Master) WorkerRegister(ctx context.Context, in *rpc.WorkerInfo) (*rpc.RegisterResult, error)
type ReduceTaskInfo ¶
type WorkerInfo ¶
Click to show internal directories.
Click to hide internal directories.