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
|
Method Summary |
TestResult |
analyzeIntegrationTests(SoftwareProjectId projectId)
|
QualityResult |
analyzeQuality(SoftwareProjectId projectId,
String... metrics)
|
TestResult |
analyzeUnitTests(SoftwareProjectId projectId)
|
void |
close()
|
void |
connect(String url,
String login,
String password)
|
boolean |
equals(Object o)
|
List<Commiter> |
getBuildCommiters(SoftwareProjectId softwareProjectId,
Integer buildId)
Deprecated. |
List<Integer> |
getBuildIds(SoftwareProjectId softwareProjectId)
Deprecated. |
BuildState |
getBuildState(SoftwareProjectId softwareProjectId,
Integer buildId)
Deprecated. |
BuildTime |
getBuildTime(SoftwareProjectId softwareProjectId,
Integer buildId)
|
String |
getDescription(SoftwareProjectId softwareProjectId)
|
Date |
getEstimatedFinishTime(SoftwareProjectId softwareProjectId,
Integer buildId)
Deprecated. |
int |
getLastBuildId(SoftwareProjectId softwareProjectId)
Deprecated. |
String |
getMavenId(SoftwareProjectId softwareProjectId)
|
Map<String,List<QualityMetric>> |
getMetricsByCategory()
|
String |
getName(SoftwareProjectId softwareProjectId)
|
int |
hashCode()
|
SoftwareProjectId |
identify(ProjectKey projectKey)
|
boolean |
isBuilding(SoftwareProjectId softwareProjectId,
Integer buildId)
Deprecated. |
boolean |
isClosed()
|
boolean |
isProjectDisabled(SoftwareProjectId softwareProjectId)
|
Map<SoftwareProjectId,String> |
listSoftwareProjectIds()
|
SonarConnection
public SonarConnection()
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
listSoftwareProjectIds
public Map<SoftwareProjectId,String> listSoftwareProjectIds()
- Specified by:
listSoftwareProjectIds 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
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 buildId)
throws BuildNotFoundException,
ProjectNotFoundException
- Throws:
BuildNotFoundException
ProjectNotFoundException
getBuildIds
@Deprecated
public List<Integer> getBuildIds(SoftwareProjectId softwareProjectId)
throws ProjectNotFoundException
- Deprecated.
- Throws:
ProjectNotFoundException
getBuildState
@Deprecated
public BuildState getBuildState(SoftwareProjectId softwareProjectId,
Integer buildId)
throws ProjectNotFoundException,
BuildNotFoundException
- Deprecated.
- Throws:
ProjectNotFoundException
BuildNotFoundException
getEstimatedFinishTime
@Deprecated
public Date getEstimatedFinishTime(SoftwareProjectId softwareProjectId,
Integer buildId)
throws ProjectNotFoundException,
BuildNotFoundException
- Deprecated.
- Throws:
ProjectNotFoundException
BuildNotFoundException
isBuilding
@Deprecated
public boolean isBuilding(SoftwareProjectId softwareProjectId,
Integer buildId)
throws ProjectNotFoundException,
BuildNotFoundException
- Deprecated.
- Throws:
ProjectNotFoundException
BuildNotFoundException
getLastBuildId
@Deprecated
public int getLastBuildId(SoftwareProjectId softwareProjectId)
throws ProjectNotFoundException,
BuildIdNotFoundException
- Deprecated.
- Throws:
ProjectNotFoundException
BuildIdNotFoundException
getBuildCommiters
@Deprecated
public List<Commiter> getBuildCommiters(SoftwareProjectId softwareProjectId,
Integer buildId)
throws BuildNotFoundException,
ProjectNotFoundException
- Deprecated.
- Throws:
BuildNotFoundException
ProjectNotFoundException
Copyright © 2012 Awired Network. All Rights Reserved.