org.apache.hadoop.yarn.webapp.view
Class Jsons

java.lang.Object
  extended by org.apache.hadoop.yarn.webapp.view.Jsons

public class Jsons
extends Object

JSON helpers


Field Summary
static String _SEP
           
 
Constructor Summary
Jsons()
           
 
Method Summary
static PrintWriter appendLink(PrintWriter out, Object anchor, String prefix, String... parts)
           
static PrintWriter appendProgressBar(PrintWriter out, float progress)
           
static PrintWriter appendProgressBar(PrintWriter out, String pct)
           
static PrintWriter appendSortable(PrintWriter out, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_SEP

public static final String _SEP
See Also:
Constant Field Values
Constructor Detail

Jsons

public Jsons()
Method Detail

appendProgressBar

public static PrintWriter appendProgressBar(PrintWriter out,
                                            String pct)

appendProgressBar

public static PrintWriter appendProgressBar(PrintWriter out,
                                            float progress)

appendSortable

public static PrintWriter appendSortable(PrintWriter out,
                                         Object value)

appendLink

public static PrintWriter appendLink(PrintWriter out,
                                     Object anchor,
                                     String prefix,
                                     String... parts)


Copyright © 2012 Apache Software Foundation. All Rights Reserved.