org.jppf.ui.monitoring.data
Class StatsFormatter

java.lang.Object
  extended by org.jppf.ui.monitoring.data.StatsFormatter
All Implemented Interfaces:
StatsConstants

public final class StatsFormatter
extends Object
implements StatsConstants

This class provides a set of methods to format the statistics data received from the server.

Author:
Laurent Cohen

Field Summary
 
Fields inherited from interface org.jppf.ui.monitoring.data.StatsConstants
ALL_FIELDS, CONNECTION_PROPS, EXECUTION_PROPS, NODE_EXECUTION_PROPS, QUEUE_PROPS, TRANSPORT_PROPS
 
Method Summary
protected static String formatSmallDouble(double value)
          Format a floating point value.
static Map<Fields,Double> getDoubleValuesMap(JPPFStats stats)
          Get the map of values represented as double for a specified data snapshot.
static Map<Fields,String> getStringValuesMap(JPPFStats stats)
          Get the map of values represented as strings for a specified data snapshot.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getStringValuesMap

public static Map<Fields,String> getStringValuesMap(JPPFStats stats)
Get the map of values represented as strings for a specified data snapshot.

Parameters:
stats - the data snapshot to map.
Returns:
a map of field names to their corresponding string values.

getDoubleValuesMap

public static Map<Fields,Double> getDoubleValuesMap(JPPFStats stats)
Get the map of values represented as double for a specified data snapshot.

Parameters:
stats - the data snapshot to map.
Returns:
a map of field names to their corresponding double values.

formatSmallDouble

protected static String formatSmallDouble(double value)
Format a floating point value.

Parameters:
value - the value to format.
Returns:
the formatted value as a string.


Copyright © 2005-2010 JPPF Team.