Package org.ossreviewtoolkit.model
Class ScannerRun
-
- All Implemented Interfaces:
public final class ScannerRunThe summary of a single run of the scanner.
-
-
Field Summary
Fields Modifier and Type Field Description public final static ScannerRunEMPTYprivate final InstantstartTimeprivate final InstantendTimeprivate final Environmentenvironmentprivate final ScannerConfigurationconfigprivate final Set<ProvenanceResolutionResult>provenancesprivate final Set<ScanResult>scanResultsprivate final Map<Identifier, Set<String>>scannersprivate final Set<FileList>files
-
Constructor Summary
Constructors Constructor Description ScannerRun(Instant startTime, Instant endTime, Environment environment, ScannerConfiguration config, Set<ProvenanceResolutionResult> provenances, Set<ScanResult> scanResults, Map<Identifier, Set<String>> scanners, Set<FileList> files)
-
Method Summary
Modifier and Type Method Description final InstantgetStartTime()The Instant the scanner was started. final InstantgetEndTime()The Instant the scanner has finished. final EnvironmentgetEnvironment()The Environment in which the scanner was executed. final ScannerConfigurationgetConfig()The ScannerConfiguration used for this run. final Set<ProvenanceResolutionResult>getProvenances()The results of the provenance resolution for all projects and packages. final Set<ScanResult>getScanResults()The scan results for each resolved provenance. final Map<Identifier, Set<String>>getScanners()The names of the scanners which have been used to scan the package. final Set<FileList>getFiles()The list of files for each resolved provenance. final Map<Identifier, List<ScanResult>>getAllScanResults()final List<ScanResult>getScanResults(Identifier id)final Map<Identifier, FileList>getAllFileLists()final FileListgetFileList(Identifier id)final Map<Identifier, Set<Issue>>getIssues()-
-
Constructor Detail
-
ScannerRun
ScannerRun(Instant startTime, Instant endTime, Environment environment, ScannerConfiguration config, Set<ProvenanceResolutionResult> provenances, Set<ScanResult> scanResults, Map<Identifier, Set<String>> scanners, Set<FileList> files)
-
-
Method Detail
-
getStartTime
final Instant getStartTime()
The Instant the scanner was started.
-
getEndTime
final Instant getEndTime()
The Instant the scanner has finished.
-
getEnvironment
final Environment getEnvironment()
The Environment in which the scanner was executed.
-
getConfig
final ScannerConfiguration getConfig()
The ScannerConfiguration used for this run.
-
getProvenances
final Set<ProvenanceResolutionResult> getProvenances()
The results of the provenance resolution for all projects and packages.
-
getScanResults
final Set<ScanResult> getScanResults()
The scan results for each resolved provenance.
-
getScanners
final Map<Identifier, Set<String>> getScanners()
The names of the scanners which have been used to scan the package.
-
getAllScanResults
final Map<Identifier, List<ScanResult>> getAllScanResults()
-
getScanResults
final List<ScanResult> getScanResults(Identifier id)
-
getAllFileLists
final Map<Identifier, FileList> getAllFileLists()
-
getFileList
final FileList getFileList(Identifier id)
-
getIssues
final Map<Identifier, Set<Issue>> getIssues()
-
-
-
-