com.bigdata.counters.render
Class HTMLHistoryTableRenderer

java.lang.Object
  extended by com.bigdata.counters.render.HistoryTableRenderer
      extended by com.bigdata.counters.render.HTMLHistoryTableRenderer
All Implemented Interfaces:
IRenderer

public class HTMLHistoryTableRenderer
extends HistoryTableRenderer

Version:
$Id: HTMLHistoryTableRenderer.java 2265 2009-10-26 12:51:06Z thompsonbry $
Author:
Bryan Thompson

Field Summary
 
Fields inherited from class com.bigdata.counters.render.HistoryTableRenderer
formatter, pattern, t
 
Constructor Summary
HTMLHistoryTableRenderer(HistoryTable tbl, Pattern pattern, ValueFormatter formatter)
           
 
Method Summary
protected  String attrib(String s)
           
protected  String cdata(String s)
           
 void render(Writer w)
          Generate the table.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTMLHistoryTableRenderer

public HTMLHistoryTableRenderer(HistoryTable tbl,
                                Pattern pattern,
                                ValueFormatter formatter)
Parameters:
tbl -
pattern - Used to identify capturing groups and extract column labels.
formatter -
Method Detail

render

public void render(Writer w)
            throws IOException
Generate the table.

The table has one column for each counter having history data. The 1st header row of the table has the counter path. The seconds header row has just the counter name. The data rows are the samples from each period of the history for each counter.

Parameters:
w - Where to write the data.
Throws:
IOException

cdata

protected String cdata(String s)

attrib

protected String attrib(String s)


Copyright © 2006-2009 SYSTAP, LLC. All Rights Reserved.