Interface ISonargraphBuild
public interface ISonargraphBuild
Service interface for SonargraphBuild application.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionReturns the summary of quality gate results as output of theServiceResponse.close()Closes an open software system.createDynamicSystem(SystemInfo system, File qualityModelFile) Creates a new software systemcreateReport(ReportRequest reportRequest) Create a report for the opened and refreshed software system.createSnapshot(File snapshotDir, String snapshotFileName) Create a snapshot for the opened and refreshed software system.failIfExists(FailSet failSet) Checks if the specifiedFailSetmatches any issues in the opened and refreshed software system.default ISonargraphBuild.VersionReturn version of Sonargraph BuildOpen the specified software system.open(File systemDirectory, SystemInfo systemInfo, String workspaceProfile, File qualityModelFile) Open the specified software system.open(File systemDirectory, SystemInfo systemInfo, String workspaceProfile, File qualityModelFile, Map<String, String> instSpecificParameterMap) Open the specified software system.Deprecated.Deprecated.refresh()Refresh the opened software system.Try to re-send all failed report uploads.setVirtualModel(String virtualModelName) Sets the specified virtual model
-
Method Details
-
open
Open the specified software system.- Parameters:
systemDirectory- the directory of the software system.- Returns:
ServiceResponsecontaining status info.
-
open
Deprecated.useopen(File, String, File)instead.Open the specified software system.- Parameters:
systemDirectory- the directory of the software system.workspaceProfile- the workspace profile to be used.- Returns:
ServiceResponsecontaining status info.
-
open
@Deprecated ServiceResponse open(File systemDirectory, String workspaceProfile, File qualityModelFile) Deprecated.Open the specified software system. Only one of 'systemInfo' or 'workspaceProfile' may be specified (or both might be 'null').- Parameters:
systemDirectory- the directory of the software system.workspaceProfile- the workspace profile to be used - might be 'null'.qualityModelFile- the quality model file to be used - might be 'null'.- Returns:
ServiceResponsecontaining status info.
-
open
ServiceResponse open(File systemDirectory, SystemInfo systemInfo, String workspaceProfile, File qualityModelFile) Open the specified software system. Only one of 'systemInfo' or 'workspaceProfile' may be specified (or both might be 'null').- Parameters:
systemDirectory- the directory of the software system.systemInfo- the system info - might be 'null'.workspaceProfile- the workspace profile to be used - might be 'null'.qualityModelFile- the quality model file to be used - might be 'null'.- Returns:
ServiceResponsecontaining status info.
-
open
ServiceResponse open(File systemDirectory, SystemInfo systemInfo, String workspaceProfile, File qualityModelFile, Map<String, String> instSpecificParameterMap) Open the specified software system. Only one of 'systemInfo' or 'workspaceProfile' may be specified (or both might be 'null').- Parameters:
systemDirectory- the directory of the software system.systemInfo- the system info - might be 'null'.workspaceProfile- the workspace profile to be used - might be 'null'.qualityModelFile- the quality model file to be used - might be 'null'.instSpecificParameterMap- a map containing installation specific parameters (e.g. the active C,C++ compiler definition to be used).- Returns:
ServiceResponsecontaining status info.
-
getInitializationStatus
ServiceResponse getInitializationStatus() -
getVersion
Return version of Sonargraph Build- Returns:
- the version
-
refresh
ServiceResponse refresh()Refresh the opened software system.- Returns:
ServiceResponsecontaining status info.
-
createReport
Create a report for the opened and refreshed software system.- Returns:
ServiceResponsecontaining status info.
-
createSnapshot
Create a snapshot for the opened and refreshed software system.- Parameters:
snapshotDir- the target directory for the snapshot.snapshotFileName- the filename of the snapshot (optional). If omitted, the system name + a timestamp is used.- Returns:
ServiceResponsecontaining status info.
-
resendFaildUploads
Try to re-send all failed report uploads.- Parameters:
request- the request- Returns:
ServiceResponsecontaining status info.
-
failIfExists
Checks if the specifiedFailSetmatches any issues in the opened and refreshed software system.- Parameters:
failSet-FailSetcontaining include / excludeIssueFilters.- Returns:
ServiceResponsewithStatusCode.OKif no issues match,StatusCode.FAILEDif issues match.ServiceResponse.getStatusMessage()provides info about the number of issues matched by individual filters.
-
checkQualityGates
ServiceResponse checkQualityGates()Returns the summary of quality gate results as output of theServiceResponse.- Returns:
ServiceResponsewithStatusCode.OKif all checked quality gates are passed,StatusCode.FAILEDif any of the quality gates is failed.
-
close
ServiceResponse close()Closes an open software system.- Returns:
ServiceResponsecontaining status info.
-
setVirtualModel
Sets the specified virtual model- Parameters:
virtualModelName- the name of the virtual model- Returns:
ServiceResponsecontaining status info.
-
getScriptRunnerStatus
ServiceResponse getScriptRunnerStatus()- Returns:
ServiceResponsecontaining status info.
-
createDynamicSystem
Creates a new software system- Parameters:
system- the systemqualityModelFile- optional, if specified the content of the quality model is copied into the system's file structure- Returns:
- response object containing the system directory as outcome
-
open(File, String, File)instead.