Constructor and Description |
---|
UIUtils() |
Modifier and Type | Method and Description |
---|---|
static scala.collection.Seq<scala.xml.Node> |
basicSparkPage(scala.Function0<scala.collection.Seq<scala.xml.Node>> content,
String title)
Returns a page with the spark css/js and a simple format.
|
static scala.xml.NodeBuffer |
commonHeaderNodes() |
static String |
formatDate(java.util.Date date) |
static String |
formatDate(long timestamp) |
static String |
formatDuration(long milliseconds) |
static String |
formatDurationVerbose(long ms)
Generate a verbose human-readable string representing a duration such as "5 second 35 ms"
|
static String |
formatNumber(double records)
Generate a human-readable string representing a number (e.g.
|
static scala.collection.Seq<scala.xml.Node> |
headerSparkPage(String title,
scala.Function0<scala.collection.Seq<scala.xml.Node>> content,
SparkUITab activeTab,
scala.Option<Object> refreshInterval,
scala.Option<String> helpText)
Returns a spark page with correctly formatted headers
|
static <T> scala.collection.Seq<scala.xml.Node> |
listingTable(scala.collection.Seq<String> headers,
scala.Function1<T,scala.collection.Seq<scala.xml.Node>> generateDataRow,
scala.collection.Iterable<T> data,
boolean fixedWidth,
scala.Option<String> id,
scala.collection.Seq<String> headerClasses,
boolean stripeRowsWithCss)
Returns an HTML table constructed by generating a row for each object in a sequence.
|
static scala.collection.Seq<scala.xml.Node> |
makeProgressBar(int started,
int completed,
int failed,
int skipped,
int total) |
static String |
prependBaseUri(String basePath,
String resource) |
static String |
TABLE_CLASS_NOT_STRIPED() |
static String |
TABLE_CLASS_STRIPED() |
static String |
uiRoot() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeIfNecessary, initializeLogging, isTraceEnabled, log_, log, logDebug, logDebug, logError, logError, logInfo, logInfo, logName, logTrace, logTrace, logWarning, logWarning
public static String TABLE_CLASS_NOT_STRIPED()
public static String TABLE_CLASS_STRIPED()
public static String formatDate(java.util.Date date)
public static String formatDate(long timestamp)
public static String formatDuration(long milliseconds)
public static String formatDurationVerbose(long ms)
public static String formatNumber(double records)
public static String uiRoot()
public static String prependBaseUri(String basePath, String resource)
public static scala.xml.NodeBuffer commonHeaderNodes()
public static scala.collection.Seq<scala.xml.Node> headerSparkPage(String title, scala.Function0<scala.collection.Seq<scala.xml.Node>> content, SparkUITab activeTab, scala.Option<Object> refreshInterval, scala.Option<String> helpText)
public static scala.collection.Seq<scala.xml.Node> basicSparkPage(scala.Function0<scala.collection.Seq<scala.xml.Node>> content, String title)
public static <T> scala.collection.Seq<scala.xml.Node> listingTable(scala.collection.Seq<String> headers, scala.Function1<T,scala.collection.Seq<scala.xml.Node>> generateDataRow, scala.collection.Iterable<T> data, boolean fixedWidth, scala.Option<String> id, scala.collection.Seq<String> headerClasses, boolean stripeRowsWithCss)
public static scala.collection.Seq<scala.xml.Node> makeProgressBar(int started, int completed, int failed, int skipped, int total)