Class AbstractScannerEngineFacade
java.lang.Object
org.sonarsource.scanner.lib.internal.facade.AbstractScannerEngineFacade
- All Implemented Interfaces:
AutoCloseable,ScannerEngineFacade
- Direct Known Subclasses:
InProcessScannerEngineFacade,NewScannerEngineFacade,SimulationScannerEngineFacade
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractScannerEngineFacade(Map<String, String> bootstrapProperties, boolean isSonarQubeCloud, String serverVersion, boolean wasEngineCacheHit, JreCacheHit wasJreCacheHit) -
Method Summary
Modifier and TypeMethodDescriptionbooleanRun the analysis.protected abstract booleanGet the properties that will be passed to the bootstrapped scanner engine.Get the version of the SonarQube Server that the scanner is connected to.booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.AutoCloseable
close
-
Constructor Details
-
AbstractScannerEngineFacade
protected AbstractScannerEngineFacade(Map<String, String> bootstrapProperties, boolean isSonarQubeCloud, @Nullable String serverVersion, boolean wasEngineCacheHit, @Nullable JreCacheHit wasJreCacheHit)
-
-
Method Details
-
getServerVersion
Description copied from interface:ScannerEngineFacadeGet the version of the SonarQube Server that the scanner is connected to. Don't call this method if the scanner is connected to SonarQube Cloud.- Specified by:
getServerVersionin interfaceScannerEngineFacade- Returns:
- the version of the SonarQube Server
-
isSonarQubeCloud
public boolean isSonarQubeCloud()- Specified by:
isSonarQubeCloudin interfaceScannerEngineFacade- Returns:
- true if the scanner is connected to SonarQube Cloud, false otherwise
-
analyze
Description copied from interface:ScannerEngineFacadeRun the analysis. In case of failure, a log message should have been emitted.- Specified by:
analyzein interfaceScannerEngineFacade- Returns:
- true if the analysis succeeded, false otherwise.
-
doAnalyze
-
getBootstrapProperties
Description copied from interface:ScannerEngineFacadeGet the properties that will be passed to the bootstrapped scanner engine.- Specified by:
getBootstrapPropertiesin interfaceScannerEngineFacade
-