Interface ISonargraphBuild
-
public interface ISonargraphBuildService interface for SonargraphBuild application.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classISonargraphBuild.Version
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description ServiceResponsecheckQualityGates()Returns the summary of quality gate results as output of theServiceResponse.ServiceResponseclose()Closes an open software system.ServiceResponseWithOutcome<java.io.File>createDynamicSystem(SystemInfo system, java.io.File qualityModelFile)Creates a new software systemServiceResponsecreateReport(ReportRequest reportRequest)Create a report for the opened and refreshed software system.ServiceResponsecreateSnapshot(java.io.File snapshotDir, java.lang.String snapshotFileName)Create a snapshot for the opened and refreshed software system.ServiceResponsefailIfExists(FailSet failSet)Checks if the specifiedFailSetmatches any issues in the opened and refreshed software system.ServiceResponsegetInitializationStatus()ServiceResponsegetScriptRunnerStatus()default ISonargraphBuild.VersiongetVersion()Return version of Sonargraph BuildServiceResponseopen(java.io.File systemDirectory)Open the specified software system.ServiceResponseopen(java.io.File systemDirectory, SystemInfo systemInfo, java.lang.String workspaceProfile, java.io.File qualityModelFile)Open the specified software system.ServiceResponseopen(java.io.File systemDirectory, SystemInfo systemInfo, java.lang.String workspaceProfile, java.io.File qualityModelFile, java.util.Map<java.lang.String,java.lang.String> instSpecificParameterMap)Open the specified software system.ServiceResponseopen(java.io.File systemDirectory, java.lang.String workspaceProfile)Deprecated.useopen(File, String, File)instead.ServiceResponseopen(java.io.File systemDirectory, java.lang.String workspaceProfile, java.io.File qualityModelFile)Deprecated.ServiceResponserefresh()Refresh the opened software system.ServiceResponseresendFaildUploads(ResendFailedUploadsRequest request)Try to re-send all failed report uploads.ServiceResponsesetVirtualModel(java.lang.String virtualModelName)Sets the specified virtual model
-
-
-
Method Detail
-
open
ServiceResponse open(java.io.File systemDirectory)
Open the specified software system.- Parameters:
systemDirectory- the directory of the software system.- Returns:
ServiceResponsecontaining status info.
-
open
@Deprecated ServiceResponse open(java.io.File systemDirectory, java.lang.String workspaceProfile)
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(java.io.File systemDirectory, java.lang.String workspaceProfile, java.io.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(java.io.File systemDirectory, SystemInfo systemInfo, java.lang.String workspaceProfile, java.io.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(java.io.File systemDirectory, SystemInfo systemInfo, java.lang.String workspaceProfile, java.io.File qualityModelFile, java.util.Map<java.lang.String,java.lang.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
default ISonargraphBuild.Version getVersion()
Return version of Sonargraph Build- Returns:
- the version
-
refresh
ServiceResponse refresh()
Refresh the opened software system.- Returns:
ServiceResponsecontaining status info.
-
createReport
ServiceResponse createReport(ReportRequest reportRequest)
Create a report for the opened and refreshed software system.- Returns:
ServiceResponsecontaining status info.
-
createSnapshot
ServiceResponse createSnapshot(java.io.File snapshotDir, java.lang.String snapshotFileName)
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
ServiceResponse resendFaildUploads(ResendFailedUploadsRequest request)
Try to re-send all failed report uploads.- Parameters:
request- the request- Returns:
ServiceResponsecontaining status info.
-
failIfExists
ServiceResponse failIfExists(FailSet failSet)
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
ServiceResponse setVirtualModel(java.lang.String virtualModelName)
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
ServiceResponseWithOutcome<java.io.File> createDynamicSystem(SystemInfo system, java.io.File qualityModelFile)
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
-
-