org.sonar.core.metric
Class CacheMetricFinder

java.lang.Object
  extended by org.sonar.core.metric.DefaultMetricFinder
      extended by org.sonar.core.metric.CacheMetricFinder
All Implemented Interfaces:
BatchComponent, MetricFinder, ServerComponent

public final class CacheMetricFinder
extends DefaultMetricFinder


Constructor Summary
CacheMetricFinder(DatabaseSessionFactory sessionFactory)
           
 
Method Summary
 Collection<Metric> findAll()
           
 Collection<Metric> findAll(List<String> metricKeys)
           
 Metric findById(int metricId)
           
 Metric findByKey(String key)
           
 void start()
           
 
Methods inherited from class org.sonar.core.metric.DefaultMetricFinder
doFindAll
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheMetricFinder

public CacheMetricFinder(DatabaseSessionFactory sessionFactory)
Method Detail

start

public void start()

findById

public Metric findById(int metricId)
Specified by:
findById in interface MetricFinder
Overrides:
findById in class DefaultMetricFinder

findByKey

public Metric findByKey(String key)
Specified by:
findByKey in interface MetricFinder
Overrides:
findByKey in class DefaultMetricFinder

findAll

public Collection<Metric> findAll(List<String> metricKeys)
Specified by:
findAll in interface MetricFinder
Overrides:
findAll in class DefaultMetricFinder

findAll

public Collection<Metric> findAll()
Specified by:
findAll in interface MetricFinder
Overrides:
findAll in class DefaultMetricFinder


Copyright © 2009-2012 SonarSource. All Rights Reserved.