Interface StatisticsService


  • public interface StatisticsService
    Service that provides insight.
    • Method Detail

      • getSystemLoad

        double[] getSystemLoad()
        Returns the system load over time, for the past two hours. Each of the entries displays the average load for the ten seconds prior to creation time of the entry. The system is whatever the JVM runs in; this may be either an actual system, or a virtual machine. Two hours of data is returned, which translates to a total of 720 entries. The entries are ordered by time, with the oldest entry at index 0 and the newest at 719.
        Returns:
        The system load over time
      • getAvailableMemory

        long[] getAvailableMemory()
        Returns the available memory over time, for the past two hours. Each of the entries displays the memory that is available to the JVM for the ten seconds prior to creation time of the entry. Two hours of data is returned, which translates to a total of 720 entries. The entries are ordered by time, with the oldest entry at index 0 and the newest at 719.
        Returns:
        The available memory over time
      • getMemoryUsage

        long[] getMemoryUsage()
        Returns the memory usage over time, for the past two hours. Each of the entries displays the memory usage of the runtime (i.e. the Java Virtual Machine) for the ten seconds prior to creation time of the entry. Two hours of data is returned, which translates to a total of 720 entries. The entries are ordered by time, with the oldest entry at index 0 and the newest at 719.
        Returns:
        The memory usage over time
      • getRequestCount

        int[] getRequestCount()
        Returns the request count over time, for the past two hours. Each of the entries displays the number of completed requests for the ten seconds prior to creation time of the entry. Two hours of data is returned, which translates to a total of 720 entries. The entries are ordered by time, with the oldest entry at index 0 and the newest at 719.
        Returns:
        The number of requests over time
      • getRequestDuration

        long[] getRequestDuration()
        Returns the request duration over time, for the past two hours. Each of the entries displays the average duration of all requests that completed during the ten seconds prior to creation time of the entry. Two hours of data is returned, which translates to a total of 720 entries. The entries are ordered by time, with the oldest entry at index 0 and the newest at 719.
        Returns:
        The average request duration over time
      • getProfiledCategories

        Set<String> getProfiledCategories()
        Retrieves the list of categories in which something has been profiled since the start of this service.
        Returns:
        All category names
      • getProfiledTime

        long[] getProfiledTime​(String category)
        Returns the spent time (in ms) on a category over time, for the past two hours. Each of the entries displays the time spent on the specified category for the ten seconds prior to creation time of the entry. Two hours hours of data is returned, which translates to a total of 720 entries. The entries are ordered by time, with the oldest entry at index 0 and the newest at 719.
        Parameters:
        category - The category to retrieve the spent time for
        Returns:
        The time spent on the category over time; returns an array filled with zeroes if no such category exists