public class ManagementTrackingReport extends AbstractFileReport
The report allows configuration of severity groups as too many severities might make a report unreadable.
| Modifier and Type | Class and Description |
|---|---|
protected class |
ManagementTrackingReport.SeverityStats
This class implements statistics logic based on severities.
|
protected class |
ManagementTrackingReport.WeekStats
Object for collecting statistics based on a week.
|
| Constructor and Description |
|---|
ManagementTrackingReport()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
closeReport()
Closes a report.
|
long |
getAverageFixTime()
Returns the overall average fix time.
|
int |
getClosedCount()
Returns the overall number of open bugs.
|
int |
getMaxWeek()
Returns the maximum week number detected.
|
int |
getMinWeek()
Returns the minimum week number detected.
|
int |
getOpenCount()
Returns the overall number of open bugs.
|
Map<String,ManagementTrackingReport.SeverityStats> |
getSeverityStats()
Returns the severity statistics objects.
|
int |
getTotalCount()
Returns the overall count of bugs.
|
protected static int |
getWeek(int week)
Returns the week in year.
|
Map<Integer,ManagementTrackingReport.WeekStats> |
getWeekStats()
Returns the Week statistics objects.
|
protected static int |
getYear(int week)
Returns the year for the week ID.
|
void |
init(org.apache.commons.configuration.Configuration config)
Configures the report.
|
void |
prepareReport()
Prepares the report.
|
void |
registerBug(Issue bug)
Registers a bug for the report.
|
getOutputFile, getOutputStreamgetBugzillaSession, getMaximumBugzillaVersion, getMinimumBugzillaVersion, setBugzillaSessionpublic void closeReport()
public void init(org.apache.commons.configuration.Configuration config)
throws org.apache.commons.configuration.ConfigurationException
init in interface BugzillaReportGeneratorinit in class AbstractFileReportconfig - - the configuration objectorg.apache.commons.configuration.ConfigurationException - - when a configuration problem occursAbstractFileReport.init(org.apache.commons.configuration.Configuration)public void prepareReport()
prepareReport in interface BugzillaReportGeneratorprepareReport in class AbstractReportGeneratorBugzillaReportGenerator.prepareReport()public void registerBug(Issue bug)
bug - - the bug to collect data fromBugzillaReportGenerator.registerBug(b4j.core.Issue)public long getAverageFixTime()
public Map<String,ManagementTrackingReport.SeverityStats> getSeverityStats()
public Map<Integer,ManagementTrackingReport.WeekStats> getWeekStats()
public int getOpenCount()
Issue.isOpen()public int getClosedCount()
Issue.isClosed()public int getTotalCount()
public int getMinWeek()
public int getMaxWeek()
protected static int getWeek(int week)
week - - week IDprotected static int getYear(int week)
week - - week IDCopyright © 2012. All Rights Reserved.