Package org.jppf.ui.monitoring.charts
Class ChartDataCache
java.lang.Object
org.jppf.ui.monitoring.charts.ChartDataCache
A cache for charts data, implemented as a singleton.
- Author:
- Laurent Cohen
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddFields(Fields[] fields, StatsHandler handler) Add the specified fields.Get the available data for the specified fields.static ChartDataCachevoidremoveFields(Fields[] fields) Remove fields that are no longer used.voidupdate(StatsHandler handler) Update the values of the fields.
-
Method Details
-
getInstance
- Returns:
- the singleton instance of this class.
-
addFields
Add the specified fields.- Parameters:
fields- the fields to add..handler- holds the updated data.
-
removeFields
Remove fields that are no longer used.- Parameters:
fields- the fields to add.
-
update
Update the values of the fields.- Parameters:
handler- holds the updated data.
-
getData
Get the available data for the specified fields.- Parameters:
fields- the fields for which to get data.- Returns:
- a mapping of fields to the associated data.
-