Class 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.
    • Field Detail

      • statNamePrefix

        private String statNamePrefix
        The stat name prefix.
      • top

        private int top
        The top.
      • movingAvgFrame

        private int movingAvgFrame
        The moving avg frame.
    • Constructor Detail

      • MultipleSeriesProvider

        public MultipleSeriesProvider()
    • 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 dataset
        statsCollection - the stats collection
        request - the request