ca.utoronto.JCVSReport
Class UpdateStatistics

java.lang.Object
  extended byca.utoronto.JCVSReport.UpdateStatistics

public class UpdateStatistics
extends Object

UpdateStatistics brings the statistics in the database up to date with the CVS repository.

Author:
David James, Polina Gohshtein

Constructor Summary
UpdateStatistics(MetricDatabase aDatabase, Cvs aCvs)
          Creates UpdateStatistics given a database and a cvs.
 
Method Summary
 void importCvsMetadata()
          Import the cvs metadata to the database
 void importStats(Report report)
          Import the statistics
 void updateCvsMetadata(Date fromDate)
          Updates the database with cvs metadata starting at a particular date.
 void updateStats(Report report)
          Update all of ring the statistics in the database up to date with the CVS repository. 1) Ask Bloof to update the database with the CVS metadata. 2) For each new revision, read the file into memory and gather the metrics that are needed for our current report
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdateStatistics

public UpdateStatistics(MetricDatabase aDatabase,
                        Cvs aCvs)
Creates UpdateStatistics given a database and a cvs.

Parameters:
aDatabase - The database to be updated
aCvs - The Cvs to be used for information retrieval
Method Detail

updateCvsMetadata

public void updateCvsMetadata(Date fromDate)
                       throws Exception
Updates the database with cvs metadata starting at a particular date.

Parameters:
fromDate - the date at which we should start the update
Throws:
Exception

importCvsMetadata

public void importCvsMetadata()
                       throws Exception
Import the cvs metadata to the database

Throws:
Exception

updateStats

public void updateStats(Report report)
                 throws Exception
Update all of ring the statistics in the database up to date with the CVS repository. 1) Ask Bloof to update the database with the CVS metadata. 2) For each new revision, read the file into memory and gather the metrics that are needed for our current report

Parameters:
report - The report object with information about metrics and graphs to be imported
Throws:
Exception

importStats

public void importStats(Report report)
                 throws Exception
Import the statistics

Parameters:
report - The report object with information about metrics and graphs to be updated
Throws:
Exception


JCVSReport: Easy Progress Reports for CVS/Java Projects. By David James.