Interface ISonargraphBuild


public interface ISonargraphBuild
Service interface for SonargraphBuild application.
  • Method Details

    • open

      ServiceResponse open(File systemDirectory)
      Open the specified software system.
      Parameters:
      systemDirectory - the directory of the software system.
      Returns:
      ServiceResponse containing status info.
    • open

      @Deprecated ServiceResponse open(File systemDirectory, String workspaceProfile)
      Deprecated.
      Open the specified software system.
      Parameters:
      systemDirectory - the directory of the software system.
      workspaceProfile - the workspace profile to be used.
      Returns:
      ServiceResponse containing 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:
      ServiceResponse containing 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:
      ServiceResponse containing 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:
      ServiceResponse containing 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:
      ServiceResponse containing status info.
    • createReport

      ServiceResponse createReport(ReportRequest reportRequest)
      Create a report for the opened and refreshed software system.
      Returns:
      ServiceResponse containing status info.
    • createSnapshot

      ServiceResponse createSnapshot(File snapshotDir, 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:
      ServiceResponse containing status info.
    • resendFaildUploads

      ServiceResponse resendFaildUploads(ResendFailedUploadsRequest request)
      Try to re-send all failed report uploads.
      Parameters:
      request - the request
      Returns:
      ServiceResponse containing status info.
    • failIfExists

      ServiceResponse failIfExists(FailSet failSet)
      Checks if the specified FailSet matches any issues in the opened and refreshed software system.
      Parameters:
      failSet - FailSet containing include / exclude IssueFilters.
      Returns:
      ServiceResponse with StatusCode.OK if no issues match, StatusCode.FAILED if 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 the ServiceResponse.
      Returns:
      ServiceResponse with StatusCode.OK if all checked quality gates are passed, StatusCode.FAILED if any of the quality gates is failed.
    • close

      Closes an open software system.
      Returns:
      ServiceResponse containing status info.
    • setVirtualModel

      ServiceResponse setVirtualModel(String virtualModelName)
      Sets the specified virtual model
      Parameters:
      virtualModelName - the name of the virtual model
      Returns:
      ServiceResponse containing status info.
    • getScriptRunnerStatus

      ServiceResponse getScriptRunnerStatus()
      Returns:
      ServiceResponse containing status info.
    • createDynamicSystem

      ServiceResponseWithOutcome<File> createDynamicSystem(SystemInfo system, File qualityModelFile)
      Creates a new software system
      Parameters:
      system - the system
      qualityModelFile - 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