Package com.e1c.langtool.stat
Interface StatisticsService
- All Superinterfaces:
IManagedService
- All Known Implementing Classes:
StatisticsServiceImpl
Service for getting statistics and metrics.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe Constant FAMILY_JOB_NAME is common for statistics jobs. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddStatisticChangeListener(@NonNull StatisticsChangeListener l) Adds the statistics change listener.@NonNull Collection<GroupProvider>Provider of group statistics.@NonNull StatisticsManagergetManager(@NonNull org.eclipse.core.resources.IProject project) The manager manages the service.@NonNull Collection<Metric>Returns all registered metrics.@NonNull StatisticsProvidergetProvider(@NonNull org.eclipse.core.resources.IProject project) Provider of project statistics.voidRemoves the statistics change listener.Methods inherited from interface com._1c.g5.wiring.IManagedService
activate, deactivate
-
Field Details
-
FAMILY_JOB_NAME
The Constant FAMILY_JOB_NAME is common for statistics jobs.- See Also:
-
-
Method Details
-
getProvider
Provider of project statistics.- Parameters:
project- the project, cannot returnnull.- Returns:
- the provider
-
getGroupProviders
@NonNull Collection<GroupProvider> getGroupProviders()Provider of group statistics.- Returns:
- the group provider
-
getManager
The manager manages the service.- Parameters:
project- the project, cannot returnnull.- Returns:
- the manager
-
getMetrics
@NonNull Collection<Metric> getMetrics()Returns all registered metrics.- Returns:
- collection of metrics, cannot return
null.
-
addStatisticChangeListener
Adds the statistics change listener.- Parameters:
l- the listener
-
removeStatisticChangeListener
Removes the statistics change listener.- Parameters:
l- the listener
-