Package io.nflow.engine.service
Class StatisticsService
- java.lang.Object
-
- io.nflow.engine.service.StatisticsService
-
@Component public class StatisticsService extends Object
Service for fetching statistics.
-
-
Constructor Summary
Constructors Constructor Description StatisticsService(StatisticsDao statisticsDao)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StatisticsgetStatistics()Return queue statistics for the executor group.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.
-
-
-
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.
-
-