Class SysInfo
java.lang.Object
org.craftercms.commons.monitoring.VersionInfo
org.craftercms.commons.monitoring.SysInfo
Get current version information about:
1. Current VM version runs current code.
2. Build Information from a given manifest file.
3. Name and version from a given manifest file.
-
Field Summary
Fields inherited from class org.craftercms.commons.monitoring.VersionInfo
KEY_BUILD_ON, KEY_IMPLEMENTATION_BUILD, KEY_IMPLEMENTATION_TITLE, KEY_IMPLEMENTATION_VERSION, MANIFEST_PATH, SPRING_PATH, WAR_PATH -
Method Summary
Methods inherited from class org.craftercms.commons.monitoring.VersionInfo
findManifest, getPackageBuild, getPackageBuildDate, getPackageName, getPackageVersion, getVersion, getVersion
-
Method Details
-
getInfo
Gets the current SysInfo based on Manifest and current JVM information.- Parameters:
manifest- Manifest were to get the information.- Returns:
- A
SysInfopojo with information.
-
getInfo
Gets the currentSysInfobase on a Class that will load it's manifest file.- Parameters:
clazz- Class that will load the manifest MF file- Returns:
- A
SysInfopojo with the information. - Throws:
IOException- If Unable to read the Manifest file.
-
toString
- Overrides:
toStringin classVersionInfo
-
getJavaVersion
-
getJavaVendor
-
getJavaVm
-
getOsName
-
getOsVersion
-
getOsArch
-