|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.util.ProgramDriver
public class ProgramDriver
A driver that is used to run programs added to it
Constructor Summary | |
---|---|
ProgramDriver()
|
Method Summary | |
---|---|
void |
addClass(java.lang.String name,
java.lang.Class mainClass,
java.lang.String description)
This is the method that adds the classed to the repository |
void |
driver(java.lang.String[] args)
This is a driver for the example programs. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProgramDriver()
Method Detail |
---|
public void addClass(java.lang.String name, java.lang.Class mainClass, java.lang.String description) throws java.lang.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 class
java.lang.NoSuchMethodException
java.lang.SecurityException
java.lang.Throwable
public void driver(java.lang.String[] args) throws java.lang.Throwable
args
- The argument from the user. args[0] is the command to run.
java.lang.NoSuchMethodException
java.lang.SecurityException
java.lang.IllegalAccessException
java.lang.IllegalArgumentException
java.lang.Throwable
- Anything thrown by the example program's main
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |