Package psiprobe.beans.stats.providers
Class MultipleSeriesProvider
- java.lang.Object
-
- psiprobe.beans.stats.providers.AbstractSeriesProvider
-
- psiprobe.beans.stats.providers.MultipleSeriesProvider
-
- All Implemented Interfaces:
SeriesProvider
public class MultipleSeriesProvider extends AbstractSeriesProvider
Retrieves stats series with names that start with the statNamePrefix. Either all matching series or only "top" N ones can be retrieved. Determines top series by comparing max moving avg values. Derrives legend entries from series names by removing the statNamePrefix. Ignores series param (sp) and legend (s...l) request parameters.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private class
MultipleSeriesProvider.Series
The Class Series.
-
Field Summary
Fields Modifier and Type Field Description private int
movingAvgFrame
The moving avg frame.private String
statNamePrefix
The stat name prefix.private int
top
The top.-
Fields inherited from class psiprobe.beans.stats.providers.AbstractSeriesProvider
logger
-
-
Constructor Summary
Constructors Constructor Description MultipleSeriesProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getMovingAvgFrame()
Gets the moving avg frame.String
getStatNamePrefix()
Gets the stat name prefix.int
getTop()
Gets the top.void
populate(org.jfree.data.xy.DefaultTableXYDataset dataset, StatsCollection statsCollection, javax.servlet.http.HttpServletRequest request)
Populate.void
setMovingAvgFrame(int movingAvgFrame)
Sets the moving avg frame.void
setStatNamePrefix(String statNamePrefix)
Sets the stat name prefix.void
setTop(int top)
Sets the top.-
Methods inherited from class psiprobe.beans.stats.providers.AbstractSeriesProvider
toSeries
-
-
-
-
Field Detail
-
statNamePrefix
private String statNamePrefix
The stat name prefix.
-
top
private int top
The top.
-
movingAvgFrame
private int movingAvgFrame
The moving avg frame.
-
-
Method Detail
-
getStatNamePrefix
public String getStatNamePrefix()
Gets the stat name prefix.- Returns:
- the stat name prefix
-
setStatNamePrefix
public void setStatNamePrefix(String statNamePrefix)
Sets the stat name prefix.- Parameters:
statNamePrefix
- - only series with names that start with statNamePrefix are retrieved.
-
getTop
public int getTop()
Gets the top.- Returns:
- the top
-
setTop
public void setTop(int top)
Sets the top.- Parameters:
top
- - the number of top series to retrieve. If this value is greater than 0, only this many series with the greatest max moving avg values are retrieved.
-
getMovingAvgFrame
public int getMovingAvgFrame()
Gets the moving avg frame.- Returns:
- the moving avg frame
-
setMovingAvgFrame
public void setMovingAvgFrame(int movingAvgFrame)
Sets the moving avg frame.- Parameters:
movingAvgFrame
- - if this value is greater than 0, a moving avg value is calculated for every series using every Nth value, where N % movingAvgFrame == 0. Top series are identified based on a max moving avg value of each series. If the movingAvgFrame equals to 0, top series are determined based on a simple avg of all series values.
-
populate
public void populate(org.jfree.data.xy.DefaultTableXYDataset dataset, StatsCollection statsCollection, javax.servlet.http.HttpServletRequest request)
Description copied from interface:SeriesProvider
Populate.- Parameters:
dataset
- the datasetstatsCollection
- the stats collectionrequest
- the request
-
-