Invoking the copy-listing generator to create the list of files to be copied.

Setting up and launching the Hadoop MapReduce job to carry out the copy.

Based on the options, either returning a handle to the Hadoop MapReduce job immediately, or waiting until completion.

The parser elements are executed only from the command-line (or if DistCp::run() is invoked). The DistCp class may also be used programmatically, by constructing the DistCpOptions object and initializing a DistCp object appropriately.