org.sonar.plugins.api.jobs
Class AbstractJob

java.lang.Object
  extended by org.sonar.plugins.api.jobs.AbstractJob
All Implemented Interfaces:
Extension, Job
Direct Known Subclasses:
AbstractSumChildrenJob, AbstractWeightingJob

public abstract class AbstractJob
extends java.lang.Object
implements Job


Constructor Summary
AbstractJob()
           
 
Method Summary
 java.util.List<java.lang.Class<? extends Job>> dependsOnJobs()
          Dependent jobs for the same scope
 java.util.List<ch.hortis.sonar.model.Metric> dependsOnMetrics()
          Depends of another measures on the same scope.
 java.util.List<ch.hortis.sonar.model.Metric> generatesMetrics()
           
protected abstract  Language shouldExecuteOnLanguage()
           
 boolean shouldExecuteOnProject(Resource project)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.sonar.plugins.api.jobs.Job
execute, shouldExecuteOnResource
 

Constructor Detail

AbstractJob

public AbstractJob()
Method Detail

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

dependsOnMetrics

public java.util.List<ch.hortis.sonar.model.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

generatesMetrics

public java.util.List<ch.hortis.sonar.model.Metric> generatesMetrics()
Specified by:
generatesMetrics in interface Job
Returns:
empty list if the job does not calculate measures

shouldExecuteOnLanguage

protected abstract Language shouldExecuteOnLanguage()
Returns:
null if executes on all languages

shouldExecuteOnProject

public boolean shouldExecuteOnProject(Resource project)
Specified by:
shouldExecuteOnProject in interface Job


Copyright © 2008-2009 SonarSource SA. All Rights Reserved.