Package org.jppf.ui.monitoring.data
Class StatsFormatter
java.lang.Object
org.jppf.ui.monitoring.data.StatsFormatter
This class provides a set of methods to format the statistics data received from the server.
- Author:
- Laurent Cohen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionformatValue(Fields field, double value) Format the specified value for the specified field.formatValues(Map<Fields, Double> values) Get the map of values represented as strings for a specified data snapshot.
-
Constructor Details
-
StatsFormatter
Instantiation of this class is not allowed.- Parameters:
locale- the locale used for formatted values.
-
-
Method Details
-
formatValues
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
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.
-