|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjpl.mipl.mdms.web.domain.StatsHtmlPrinter
public class StatsHtmlPrinter
Purpose: Utility that writes server metric information as a set of HTML tables.
Copyright 2006, California Institute of Technology. ALL RIGHTS RESERVED. U.S. Government Sponsorship acknowledge. 2006.
============================================================================ Modification History : ---------------------- Date Who What ---------------------------------------------------------------------------- 08/10/2006 Nick Initial Release ============================================================================
| Field Summary | |
|---|---|
static float |
DANGER_RATIO
|
protected DateFormat |
dateFormat
|
protected String |
dateFormatPattern
|
static String |
DOCTYPE
|
protected NumberFormat |
percentFormat
|
static int |
REFRESH_WAIT_SECONDS
|
| Constructor Summary | |
|---|---|
StatsHtmlPrinter()
Constructor |
|
| Method Summary | |
|---|---|
static String |
headWithTitle(String title)
|
protected void |
printContents(PrintWriter out,
DomainModel dModel,
String[] groups)
Prints the domain contents |
protected void |
printEntry(PrintWriter out,
String group,
ServerMetrics metrix)
Prints the metrics information for a given server |
void |
writeTables(PrintWriter out,
DomainModel dModel,
String[] groups)
Writes the domain contents as a set of tables |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DOCTYPE
public static final int REFRESH_WAIT_SECONDS
public static final float DANGER_RATIO
protected String dateFormatPattern
protected DateFormat dateFormat
protected NumberFormat percentFormat
| Constructor Detail |
|---|
public StatsHtmlPrinter()
| Method Detail |
|---|
public static String headWithTitle(String title)
public void writeTables(PrintWriter out,
DomainModel dModel,
String[] groups)
out - PrintWriterdModel - Domain modelgroups - Array of server groups for which information will
be printed.
protected void printContents(PrintWriter out,
DomainModel dModel,
String[] groups)
protected void printEntry(PrintWriter out,
String group,
ServerMetrics metrix)
out - Outputgroup - Server group namemetrix - Instance of metrics for a server
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||