org.sonar.core.jobs
Class TendencyService
java.lang.Object
org.sonar.core.jobs.TendencyService
- All Implemented Interfaces:
- Extension, Job
public class TendencyService
- extends java.lang.Object
- implements Job
Field Summary |
protected java.lang.Integer |
maxResults
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
maxResults
protected java.lang.Integer maxResults
TendencyService
public TendencyService(DaoFacade dao)
shouldExecuteOnResource
public boolean shouldExecuteOnResource(Resource node)
- Specified by:
shouldExecuteOnResource
in interface Job
dependsOnMetrics
public java.util.List<Metric> dependsOnMetrics()
- Description copied from interface:
Job
- Depends of another measures on the same scope.
- Specified by:
dependsOnMetrics
in interface Job
- Returns:
- empty list if no dependencies
dependsOnJobs
public java.util.List<java.lang.Class<? extends Job>> dependsOnJobs()
- Description copied from interface:
Job
- Dependent jobs for the same scope
- Specified by:
dependsOnJobs
in interface Job
- Returns:
- empty list if no dependencies
generatesMetrics
public java.util.List<Metric> generatesMetrics()
- Specified by:
generatesMetrics
in interface Job
- Returns:
- empty list if the job does not calculate measures
shouldExecuteOnProject
public boolean shouldExecuteOnProject(Resource project)
- Specified by:
shouldExecuteOnProject
in interface Job
execute
public void execute(Resource node)
- Specified by:
execute
in interface Job
getLevel
protected java.lang.Integer getLevel(TendencyAnalyser analyser)
getMaxHistoryReturnedRecords
protected int getMaxHistoryReturnedRecords()
getValues
protected java.util.List<java.lang.Double> getValues(java.util.List<Measure> measures,
Measure newMeasure)
Copyright © 2008 SonarSource SA. All Rights Reserved.