Interface StatisticsService

All Superinterfaces:
IManagedService
All Known Implementing Classes:
StatisticsServiceImpl

public interface StatisticsService extends IManagedService
Service for getting statistics and metrics.
  • Field Details

    • FAMILY_JOB_NAME

      static final String FAMILY_JOB_NAME
      The Constant FAMILY_JOB_NAME is common for statistics jobs.
      See Also:
  • Method Details

    • getProvider

      @NonNull StatisticsProvider getProvider(@NonNull org.eclipse.core.resources.IProject project)
      Provider of project statistics.
      Parameters:
      project - the project, cannot return null.
      Returns:
      the provider
    • getGroupProviders

      @NonNull Collection<GroupProvider> getGroupProviders()
      Provider of group statistics.
      Returns:
      the group provider
    • getManager

      @NonNull StatisticsManager getManager(@NonNull org.eclipse.core.resources.IProject project)
      The manager manages the service.
      Parameters:
      project - the project, cannot return null.
      Returns:
      the manager
    • getMetrics

      @NonNull Collection<Metric> getMetrics()
      Returns all registered metrics.
      Returns:
      collection of metrics, cannot return null.
    • addStatisticChangeListener

      void addStatisticChangeListener(@NonNull StatisticsChangeListener l)
      Adds the statistics change listener.
      Parameters:
      l - the listener
    • removeStatisticChangeListener

      void removeStatisticChangeListener(@NonNull StatisticsChangeListener l)
      Removes the statistics change listener.
      Parameters:
      l - the listener