org.apache.hadoop.yarn.webapp.hamlet
Class HamletGen
java.lang.Object
org.apache.hadoop.yarn.webapp.hamlet.HamletGen
@InterfaceAudience.LimitedPrivate(value={"YARN","MapReduce"})
public class HamletGen- extends Object
Generates a specific hamlet implementation class from a spec class
using a generic hamlet implementation class.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HamletGen
public HamletGen()
generate
public void generate(Class<?> specClass,
Class<?> implClass,
String outputName,
String outputPkg)
throws IOException
- Generate a specific Hamlet implementation from a spec.
- Parameters:
specClass - holds hamlet interfaces. e.g. HamletSpecimplClass - a generic hamlet implementation. e.g. HamletImploutputName - name of the output class. e.g. HamletoutputPkg - package name of the output class.
- Throws:
IOException
main
public static void main(String[] args)
throws Exception
- Throws:
Exception
Copyright © 2014 Apache Software Foundation. All Rights Reserved.