Package com.pnfsoftware.jeb.client
Class SystemInformation
java.lang.Object
com.pnfsoftware.jeb.client.SystemInformation
Utility routines to retrieve system information such as java version, OS name, locale, etc.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringthe computer name, may be empty but never nullstatic final Stringthe java.vendor property, may be empty but never nullstatic final Stringthe java.version property, may be empty but never nullstatic final Stringthe system's locale, may be empty but never nullstatic final Stringthe os.arch property, may be empty but never nullstatic final Stringthe operating system full name, may be empty but never nullstatic final Stringthe os.name property, may be empty but never nullstatic final Stringthe os.version property, may be empty but never nullstatic final Stringthe user.name property, may be empty but never null -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringdetermineLinuxOSFullname(String releaseFilePath) Determine the full Linux distribution name from anos-releasefile.static StringGet the current working directory.static StringChange the current working directory.
-
Field Details
-
javavendor
the java.vendor property, may be empty but never null -
javaversion
the java.version property, may be empty but never null -
osname
the os.name property, may be empty but never null -
osarch
the os.arch property, may be empty but never null -
osversion
the os.version property, may be empty but never null -
username
the user.name property, may be empty but never null -
compname
the computer name, may be empty but never null -
localeinfo
the system's locale, may be empty but never null -
osfullname
the operating system full name, may be empty but never null
-
-
Constructor Details
-
SystemInformation
public SystemInformation()
-
-
Method Details
-
getCurrentDirectory
Get the current working directory.- Returns:
- the current directory
-
setCurrentDirectory
Change the current working directory.- Parameters:
cd- the new current directory- Returns:
- the previous current directory
-
determineLinuxOSFullname
Determine the full Linux distribution name from anos-releasefile.- Parameters:
releaseFilePath- path to anos-release-compatible file- Returns:
- the resolved distribution name, or an empty string if unavailable
-