com.bigdata.counters.render
Class XHTMLRenderer.HTMLValueFormatter

java.lang.Object
  extended by com.bigdata.counters.render.ValueFormatter
      extended by com.bigdata.counters.render.XHTMLRenderer.HTMLValueFormatter
Enclosing class:
XHTMLRenderer

public class XHTMLRenderer.HTMLValueFormatter
extends ValueFormatter

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

Field Summary
protected  URLQueryModel model
           
 
Fields inherited from class com.bigdata.counters.render.ValueFormatter
dateFormat, decimalFormat, integerFormat, percent_pattern, percentFormat, unitsFormat
 
Constructor Summary
XHTMLRenderer.HTMLValueFormatter(URLQueryModel model)
           
 
Method Summary
 String value(ICounter counter, Object val)
          Formats a counter value as a String AND performs any escaping necessary for inclusion in a CDATA section (we do both operations together so that we can format IServiceCounters.LOCAL_HTTPD as a link anchor.
 void writeFullPath(Writer w, String path)
          A clickable trail of the path from the root.
 void writePath(Writer w, String path, int rootDepth)
          A clickable trail of the path.
 
Methods inherited from class com.bigdata.counters.render.ValueFormatter
date
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

model

protected final URLQueryModel model
Constructor Detail

XHTMLRenderer.HTMLValueFormatter

public XHTMLRenderer.HTMLValueFormatter(URLQueryModel model)
Parameters:
model -
Method Detail

value

public String value(ICounter counter,
                    Object val)
Formats a counter value as a String AND performs any escaping necessary for inclusion in a CDATA section (we do both operations together so that we can format IServiceCounters.LOCAL_HTTPD as a link anchor.

Specified by:
value in class ValueFormatter
Parameters:
counter - The counter.
Returns:
The formatted value.

writeFullPath

public void writeFullPath(Writer w,
                          String path)
                   throws IOException
A clickable trail of the path from the root.

Specified by:
writeFullPath in class ValueFormatter
Throws:
IOException

writePath

public void writePath(Writer w,
                      String path,
                      int rootDepth)
               throws IOException
A clickable trail of the path.

Specified by:
writePath in class ValueFormatter
Parameters:
rootDepth - The path components will be shown beginning at this depth - ZERO (0) is the root.
Throws:
IOException


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