JSCAPE MFT Server

com.jscape.inet.mft.subsystems.reporting.html
Class DailyStatisticsFormatter

java.lang.Object
  extended by com.jscape.inet.mft.subsystems.reporting.html.HtmlMetricsFormatter
      extended by com.jscape.inet.mft.subsystems.reporting.html.DailyStatisticsFormatter
All Implemented Interfaces:
MetricsFormatter

public class DailyStatisticsFormatter
extends HtmlMetricsFormatter

Average upload/download bytes for month days format.

Author:
Roman Sheshunov

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.jscape.inet.mft.subsystems.reporting.MetricsFormatter
MetricsFormatter.FormatterException
 
Constructor Summary
DailyStatisticsFormatter(ChartFormatter chartFormat, TableFormatter tableFormat)
           
 
Method Summary
 java.lang.String format(Metrics metrics, com.jscape.inet.mft.subsystems.reporting.FormatEnvironment environment)
          Formats the specified metrics.
 boolean supports(Metrics metrics)
          Verifies if specified metrics is supported by this formatter instance.
 
Methods inherited from class com.jscape.inet.mft.subsystems.reporting.html.HtmlMetricsFormatter
getMimeType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DailyStatisticsFormatter

public DailyStatisticsFormatter(ChartFormatter chartFormat,
                                TableFormatter tableFormat)
Method Detail

supports

public boolean supports(Metrics metrics)
Description copied from interface: MetricsFormatter
Verifies if specified metrics is supported by this formatter instance.

Parameters:
metrics - a metrics to verify
Returns:
true if metrics is supported; false otherwise

format

public java.lang.String format(Metrics metrics,
                               com.jscape.inet.mft.subsystems.reporting.FormatEnvironment environment)
                        throws MetricsFormatter.FormatterException
Description copied from interface: MetricsFormatter
Formats the specified metrics.

Specified by:
format in interface MetricsFormatter
Overrides:
format in class HtmlMetricsFormatter
Parameters:
metrics - a metrics to format
environment - an environment
Returns:
a formatted metrics data
Throws:
MetricsFormatter.FormatterException - if an error occurs

JSCAPE MFT Server

Copyright © JSCAPE LLC. 1999-2015. All Rights Reserved