Interface MetricsService


public interface MetricsService
Collects anonymous usage statistics and reports them, if the server owner left metrics on.
  • Method Summary

    Modifier and Type
    Method
    Description
    Takes a snapshot of the current statistics.
    void
    Sends one snapshot now, outside the schedule.
    void
    Starts the reporting schedule, replacing any schedule already running.
  • Method Details

    • start

      void start()
      Starts the reporting schedule, replacing any schedule already running.
    • createMetrics

      MetricsDTO createMetrics()
      Takes a snapshot of the current statistics.
      Returns:
      the snapshot
    • send

      void send()
      Sends one snapshot now, outside the schedule.