Package io.nflow.engine.service
Class StatisticsService
java.lang.Object
io.nflow.engine.service.StatisticsService
Service for fetching statistics.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn queue statistics for the executor group.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 Details
-
StatisticsService
-
-
Method Details
-
getStatistics
Return queue statistics for the executor group.- Returns:
- Queue statistics.
-
getWorkflowDefinitionStatistics
public Map<String,Map<String, getWorkflowDefinitionStatisticsWorkflowDefinitionStatistics>> (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.
-