com.atlassian.greenhopper.service.statistics
Interface StatsCollectorProvider

All Known Implementing Classes:
BacklogStatsCollectorProvider

public interface StatsCollectorProvider

Used in conjunction with the StatsService to provide statistics for a specific type of board


Method Summary
 void addSpecificQuery(com.atlassian.jira.jql.builder.JqlQueryBuilder queryBuilder, java.util.Collection<java.lang.String> ids)
          Add the type specific query part - this should translate the passed in ids in an or query that returns all issues to be counted.
 org.apache.lucene.search.HitCollector getCollector(com.opensymphony.user.User user, XProject xproject, ViewDefinition view, org.apache.lucene.search.Searchable searcher)
          Get a collector to collect stats into
 java.util.Map<java.lang.String,Summary> getSummaries(com.opensymphony.user.User user, XProject xproject, Context2 context, ViewDefinition view, java.util.Collection<java.lang.String> ids, org.apache.lucene.search.HitCollector collector)
          Get the summaries for all ids, passing in the processed collectors.
 

Method Detail

addSpecificQuery

void addSpecificQuery(com.atlassian.jira.jql.builder.JqlQueryBuilder queryBuilder,
                      java.util.Collection<java.lang.String> ids)
Add the type specific query part - this should translate the passed in ids in an or query that returns all issues to be counted.


getCollector

org.apache.lucene.search.HitCollector getCollector(com.opensymphony.user.User user,
                                                   XProject xproject,
                                                   ViewDefinition view,
                                                   org.apache.lucene.search.Searchable searcher)
Get a collector to collect stats into


getSummaries

java.util.Map<java.lang.String,Summary> getSummaries(com.opensymphony.user.User user,
                                                     XProject xproject,
                                                     Context2 context,
                                                     ViewDefinition view,
                                                     java.util.Collection<java.lang.String> ids,
                                                     org.apache.lucene.search.HitCollector collector)
Get the summaries for all ids, passing in the processed collectors. This gives the StatsCollector the chance to perform post-processing on the gathered data (if necessary)



Copyright © 2007-2011 Atlassian. All Rights Reserved.