module Mapred_main:Main program for the task server and job controller, for this single job onlysig
..end
val main : Mapred_def.mapred_job -> unit
val exec_job : Mapred_def.mapred_env -> Mapred_def.mapred_job -> unit
typespec =
string * string * (Mapred_def.mapred_env -> Mapred_def.mapred_job) *
(Mapred_def.mapred_env -> Mapred_def.mapred_job -> unit)
dispatch
. A command is described
as 4-tuple (name, usage, get_job, run_job)
:
name
is the command name (taken from the command-line)usage
is a help textget_job
: must return the job definitionrun_job
: starts the jobrun_job
can parse further command-line parameters with Arg
.val dispatch : spec list -> unit
(command_name, usage, get_job, run_job)
See spec
for more information.
Note that exec_job
is a valid run_job
function, and that
Mapred_toolkit.toolkit_job
can be used for get_job
.