Interface StatisticsChart

    • Method Detail

      • containsLine

        boolean containsLine​(java.lang.String name)
        Checks if the chart contains a StatisticsCollector called name.
        Returns:
        True, if collector is contained, false if not.
      • getAllLines

        java.util.List<StatisticsCollector> getAllLines()
        Get All StatisticsCollectors from this chart.
        Returns:
        The Sorted MapStatisticsCollector> containing all StatisticsCollectors.
      • getLineCount

        int getLineCount()
        Get the number of registered StatisticsCollectors.
        Returns:
        The number of collectors in this chart.
      • getViewLines

        java.util.List<StatisticsCollector> getViewLines​(java.lang.String view)
        Get all lines contained in view. If specified view does not exist, all lines contained in this chart are returned.
        Parameters:
        view - The name of the view that you want to get the StatisticsCollectors from.
      • getAllAggregatedCollectors

        java.util.List<AggregatedStatisticsCollector> getAllAggregatedCollectors()
        Get all aggregated collectors contained in this chart.
        Returns:
        All aggregated collectors in a map, where the key is the name of the aggregated collector and the value is a list containing all StatisticsCollectors.
      • getAggregatedCollector

        AggregatedStatisticsCollector getAggregatedCollector​(java.lang.String aggregatedName)
        Get all collectors that do not collect data itself but just aggregate data collected by other collectors.
        Returns:
        The name of the collectors that values should be aggregated.
      • addView

        boolean addView​(java.lang.String name,
                        java.util.List<StatisticsCollector> collectors)
        Add a view called name with the StatisticsCollectors to this chart.
        Parameters:
        name - The name of the view to add.
        collectors - The collectors to add to the view.
        Returns:
        Indicating if adding was successful.
      • addLinetoView

        boolean addLinetoView​(java.lang.String name,
                              StatisticsCollector collector)
        Add an specific StatisticsCollector to the view identified by name.
        Returns:
        Indicating if adding was successful.