Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Coordinator ¶
type Coordinator struct {
// contains filtered or unexported fields
}
func MakeCoordinator ¶
func MakeCoordinator(files []string, nReduce int) *Coordinator
create a Coordinator. main/mrcoordinator.go calls this function. nReduce is the number of reduce tasks to use.
func (*Coordinator) Done ¶
func (c *Coordinator) Done() bool
main/mrcoordinator.go calls Done() periodically to find out if the entire job has finished.
func (*Coordinator) FinishTask ¶
func (c *Coordinator) FinishTask(args *CallArgs, reply *CallReply) error
type TaskStatus ¶
type TaskStatus int
const ( Idle TaskStatus = 0 InProgress TaskStatus = 1 Completed TaskStatus = 2 )
Click to show internal directories.
Click to hide internal directories.