net.awired.visuwall.plugin.sonar
Class SonarConnection
java.lang.Object
net.awired.visuwall.plugin.sonar.SonarConnection
- All Implemented Interfaces:
- BasicCapability, MetricCapability, TestCapability
public class SonarConnection
- extends Object
- implements MetricCapability, TestCapability
SonarConnection
public SonarConnection()
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.