Class StatsFormatter

java.lang.Object
org.jppf.ui.monitoring.data.StatsFormatter

public final class StatsFormatter extends Object
This class provides a set of methods to format the statistics data received from the server.
Author:
Laurent Cohen
  • Constructor Details

    • StatsFormatter

      public StatsFormatter(Locale locale)
      Instantiation of this class is not allowed.
      Parameters:
      locale - the locale used for formatted values.
  • Method Details

    • formatValues

      public Map<Fields,String> formatValues(Map<Fields,Double> values)
      Get the map of values represented as strings for a specified data snapshot.
      Parameters:
      values - the values to convert.
      Returns:
      a map of field names to their corresponding string values.
    • formatValue

      public String formatValue(Fields field, double value)
      Format the specified value for the specified field.
      Parameters:
      field - the field for which to do the conversion.
      value - the value to format.
      Returns:
      a map of field names to their corresponding string values.