MCPcopy Create free account
hub / github.com/BWbwchen/MapReduce / Master

Struct Master

master/master.go:14–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12)
13
14type Master struct {
15 Workers []WorkerInfo
16 MapTasks []MapTaskInfo
17 ReduceTasks []ReduceTaskInfo
18 numWorkers int
19 totalWorkers int
20 numReducer int
21 enoughWorker chan bool
22 crashChan chan string
23 mux sync.Mutex
24 rpc.UnimplementedMasterServer
25}
26
27func NewMaster(nWorker int, nReduce int) rpc.MasterServer {
28 return &Master{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected