org.apache.sirona.reporting.web.plugin.report.format
Class MapFormat

java.lang.Object
  extended by org.apache.sirona.reporting.web.plugin.report.format.MapFormat
Direct Known Subclasses:
CSVFormat, HTMLFormat

public abstract class MapFormat
extends Object


Field Summary
static Collection<String> ATTRIBUTES_ORDERED_LIST
           
static String ENCODING
           
 
Constructor Summary
MapFormat()
           
 
Method Summary
protected static Collection<String> buildMetricDataHeader()
           
static String format(Map<String,?> params, String defaultValue)
           
static String generateCounterKeyString(Counter.Key key)
           
static Collection<String> generateLine(Counter counter, Unit timeUnit, String format)
           
protected static Collection<Collection<String>> snapshot(Unit timeUnit, String format)
           
protected static Map<String,Collection<String>> snapshotByPath(Unit timeUnit, String format)
           
static Unit timeUnit(Map<String,?> params)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENCODING

public static final String ENCODING
See Also:
Constant Field Values

ATTRIBUTES_ORDERED_LIST

public static final Collection<String> ATTRIBUTES_ORDERED_LIST
Constructor Detail

MapFormat

public MapFormat()
Method Detail

buildMetricDataHeader

protected static Collection<String> buildMetricDataHeader()

format

public static String format(Map<String,?> params,
                            String defaultValue)

timeUnit

public static Unit timeUnit(Map<String,?> params)

snapshotByPath

protected static Map<String,Collection<String>> snapshotByPath(Unit timeUnit,
                                                               String format)

generateCounterKeyString

public static String generateCounterKeyString(Counter.Key key)

snapshot

protected static Collection<Collection<String>> snapshot(Unit timeUnit,
                                                         String format)

generateLine

public static Collection<String> generateLine(Counter counter,
                                              Unit timeUnit,
                                              String format)


Copyright © 2008–2014 The Apache Software Foundation. All rights reserved.