@InterfaceAudience.LimitedPrivate(value={"HDFS","MapReduce"}) @InterfaceStability.Unstable public class ProgramDriver extends Object
| Constructor and Description |
|---|
ProgramDriver() |
| Modifier and Type | Method and Description |
|---|---|
void |
addClass(String name,
Class mainClass,
String description)
This is the method that adds the classed to the repository
|
void |
driver(String[] argv)
API compatible with Hadoop 1.x
|
int |
run(String[] args)
This is a driver for the example programs.
|
public void addClass(String name, Class mainClass, String description) throws Throwable
name - The name of the string you want the class instance to be called withmainClass - The class that you want to add to the repositorydescription - The description of the classNoSuchMethodExceptionSecurityExceptionThrowablepublic int run(String[] args) throws Throwable
args - The argument from the user. args[0] is the command to run.NoSuchMethodExceptionSecurityExceptionIllegalAccessExceptionIllegalArgumentExceptionThrowable - Anything thrown by the example program's mainCopyright © 2013 Apache Software Foundation. All rights reserved.