Package org.ossreviewtoolkit.utils.ort
Class Environment
-
- All Implemented Interfaces:
public final class EnvironmentA description of the environment that ORT was executed in.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classEnvironment.Companion
-
Field Summary
Fields Modifier and Type Field Description private final StringortVersionprivate final StringbuildJdkprivate final StringjavaVersionprivate final Stringosprivate final Integerprocessorsprivate final LongmaxMemoryprivate final Map<String, String>variablesprivate final Map<String, String>toolVersionspublic final static Environment.CompanionCompanion
-
Method Summary
Modifier and Type Method Description final StringgetOrtVersion()The version of the OSS Review Toolkit as a string. final StringgetBuildJdk()The version of Java used to build ORT. final StringgetJavaVersion()The version of Java used to run ORT. final StringgetOs()Name of the operating system, defaults to Os.name. final IntegergetProcessors()The number of logical processors available. final LonggetMaxMemory()The maximum amount of memory available. final Map<String, String>getVariables()Map of selected environment variables that might be relevant for debugging. final Map<String, String>getToolVersions()Map of used tools and their installed versions, defaults to an empty map. -
-
Method Detail
-
getOrtVersion
final String getOrtVersion()
The version of the OSS Review Toolkit as a string.
-
getBuildJdk
final String getBuildJdk()
The version of Java used to build ORT.
-
getJavaVersion
final String getJavaVersion()
The version of Java used to run ORT.
-
getProcessors
final Integer getProcessors()
The number of logical processors available.
-
getMaxMemory
final Long getMaxMemory()
The maximum amount of memory available.
-
getVariables
final Map<String, String> getVariables()
Map of selected environment variables that might be relevant for debugging.
-
getToolVersions
final Map<String, String> getToolVersions()
Map of used tools and their installed versions, defaults to an empty map.
-
-
-
-