Class StatisticsService


  • @Component
    public class StatisticsService
    extends Object
    Service for fetching statistics.
    • Constructor Detail

      • StatisticsService

        @Inject
        public StatisticsService​(StatisticsDao statisticsDao)
    • Method Detail

      • getStatistics

        public Statistics getStatistics()
        Return queue statistics for the executor group.
        Returns:
        Queue statistics.
      • getWorkflowDefinitionStatistics

        public Map<String,​Map<String,​WorkflowDefinitionStatistics>> getWorkflowDefinitionStatistics​(String type,
                                                                                                                org.joda.time.DateTime createdAfter,
                                                                                                                org.joda.time.DateTime createdBefore,
                                                                                                                org.joda.time.DateTime modifiedAfter,
                                                                                                                org.joda.time.DateTime modifiedBefore)
        Return statistics for a given workflow definition type.
        Parameters:
        type - The workflow definition type.
        createdAfter - If given, count only workflow instances created after this time.
        createdBefore - If given, count only workflow instances created before this time.
        modifiedAfter - If given, count only workflow instances modified after this time.
        modifiedBefore - If given, count only workflow instances modified after this time.
        Returns:
        The statistics per workflow state and status.