org.jppf.ui.monitoring.data
Class StatsFormatter
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.