net.awired.visuwall.plugin.sonar
Class SonarConnection

java.lang.Object
  extended by net.awired.visuwall.plugin.sonar.SonarConnection
All Implemented Interfaces:
BasicCapability, MetricCapability, TestCapability

public class SonarConnection
extends Object
implements MetricCapability, TestCapability


Constructor Summary
SonarConnection()
           
 
Method Summary
 TestResult analyzeIntegrationTests(SoftwareProjectId projectId)
           
 QualityResult analyzeQuality(SoftwareProjectId projectId, String... metrics)
           
 TestResult analyzeUnitTests(SoftwareProjectId projectId)
           
 void close()
           
 void connect(String url)
           
 void connect(String url, String login, String password)
           
 boolean equals(Object o)
           
 List<SoftwareProjectId> findAllSoftwareProjectIds()
           
 List<String> findProjectNames()
           
 List<SoftwareProjectId> findSoftwareProjectIdsByNames(List<String> names)
           
 List<Commiter> getBuildCommiters(SoftwareProjectId softwareProjectId, Integer buildNumber)
           
 List<Integer> getBuildNumbers(SoftwareProjectId softwareProjectId)
           
 State getBuildState(SoftwareProjectId softwareProjectId, Integer buildNumber)
           
 BuildTime getBuildTime(SoftwareProjectId softwareProjectId, Integer buildNumber)
           
 String getDescription(SoftwareProjectId softwareProjectId)
           
 Date getEstimatedFinishTime(SoftwareProjectId softwareProjectId, Integer buildNumber)
           
 int getLastBuildNumber(SoftwareProjectId softwareProjectId)
           
 String getMavenId(SoftwareProjectId softwareProjectId)
           
 Map<String,List<QualityMetric>> getMetricsByCategory()
           
 String getName(SoftwareProjectId softwareProjectId)
           
 int hashCode()
           
 SoftwareProjectId identify(ProjectKey projectKey)
           
 boolean isBuilding(SoftwareProjectId softwareProjectId, Integer buildNumber)
           
 boolean isClosed()
           
 boolean isProjectDisabled(SoftwareProjectId softwareProjectId)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SonarConnection

public SonarConnection()
Method Detail

connect

public void connect(String url)

connect

public void connect(String url,
                    String login,
                    String password)
Specified by:
connect in interface BasicCapability

getMetricsByCategory

public Map<String,List<QualityMetric>> getMetricsByCategory()
Specified by:
getMetricsByCategory in interface MetricCapability

findProjectNames

public List<String> findProjectNames()
Specified by:
findProjectNames in interface BasicCapability

close

public void close()
Specified by:
close in interface BasicCapability

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getDescription

public String getDescription(SoftwareProjectId softwareProjectId)
                      throws ProjectNotFoundException
Specified by:
getDescription in interface BasicCapability
Throws:
ProjectNotFoundException

identify

public SoftwareProjectId identify(ProjectKey projectKey)
                           throws ProjectNotFoundException
Specified by:
identify in interface BasicCapability
Throws:
ProjectNotFoundException

findAllSoftwareProjectIds

public List<SoftwareProjectId> findAllSoftwareProjectIds()
Specified by:
findAllSoftwareProjectIds in interface BasicCapability

findSoftwareProjectIdsByNames

public List<SoftwareProjectId> findSoftwareProjectIdsByNames(List<String> names)
Specified by:
findSoftwareProjectIdsByNames in interface BasicCapability

analyzeUnitTests

public TestResult analyzeUnitTests(SoftwareProjectId projectId)
Specified by:
analyzeUnitTests in interface TestCapability

analyzeIntegrationTests

public TestResult analyzeIntegrationTests(SoftwareProjectId projectId)
Specified by:
analyzeIntegrationTests in interface TestCapability

analyzeQuality

public QualityResult analyzeQuality(SoftwareProjectId projectId,
                                    String... metrics)
Specified by:
analyzeQuality in interface MetricCapability

getMavenId

public String getMavenId(SoftwareProjectId softwareProjectId)
                  throws ProjectNotFoundException,
                         MavenIdNotFoundException
Specified by:
getMavenId in interface BasicCapability
Throws:
ProjectNotFoundException
MavenIdNotFoundException

getName

public String getName(SoftwareProjectId softwareProjectId)
               throws ProjectNotFoundException
Specified by:
getName in interface BasicCapability
Throws:
ProjectNotFoundException

isClosed

public boolean isClosed()
Specified by:
isClosed in interface BasicCapability

isProjectDisabled

public boolean isProjectDisabled(SoftwareProjectId softwareProjectId)
                          throws ProjectNotFoundException
Specified by:
isProjectDisabled in interface BasicCapability
Throws:
ProjectNotFoundException

getBuildTime

public BuildTime getBuildTime(SoftwareProjectId softwareProjectId,
                              Integer buildNumber)
                       throws BuildNotFoundException,
                              ProjectNotFoundException
Throws:
BuildNotFoundException
ProjectNotFoundException

getBuildNumbers

public List<Integer> getBuildNumbers(SoftwareProjectId softwareProjectId)
                              throws ProjectNotFoundException
Throws:
ProjectNotFoundException

getBuildState

public State getBuildState(SoftwareProjectId softwareProjectId,
                           Integer buildNumber)
                    throws ProjectNotFoundException,
                           BuildNotFoundException
Throws:
ProjectNotFoundException
BuildNotFoundException

getEstimatedFinishTime

public Date getEstimatedFinishTime(SoftwareProjectId softwareProjectId,
                                   Integer buildNumber)
                            throws ProjectNotFoundException,
                                   BuildNotFoundException
Throws:
ProjectNotFoundException
BuildNotFoundException

isBuilding

public boolean isBuilding(SoftwareProjectId softwareProjectId,
                          Integer buildNumber)
                   throws ProjectNotFoundException,
                          BuildNotFoundException
Throws:
ProjectNotFoundException
BuildNotFoundException

getLastBuildNumber

public int getLastBuildNumber(SoftwareProjectId softwareProjectId)
                       throws ProjectNotFoundException,
                              BuildNumberNotFoundException
Throws:
ProjectNotFoundException
BuildNumberNotFoundException

getBuildCommiters

public List<Commiter> getBuildCommiters(SoftwareProjectId softwareProjectId,
                                        Integer buildNumber)
                                 throws BuildNotFoundException,
                                        ProjectNotFoundException
Throws:
BuildNotFoundException
ProjectNotFoundException


Copyright © 2011 Awired Network. All Rights Reserved.