org.apache.hadoop.yarn.webapp.hamlet
Class HamletGen

java.lang.Object
  extended by 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.


Constructor Summary
HamletGen()
           
 
Method Summary
 void generate(Class<?> specClass, Class<?> implClass, String outputName, String outputPkg)
          Generate a specific Hamlet implementation from a spec.
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HamletGen

public HamletGen()
Method Detail

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. HamletSpec
implClass - a generic hamlet implementation. e.g. HamletImpl
outputName - name of the output class. e.g. Hamlet
outputPkg - 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.