Package at.letto.basespringboot.service
Class BaseSystemInfoService
java.lang.Object
at.letto.basespringboot.service.BaseSystemInfoService
Service liefert alle notwendigen Systeminformation eines laufenden Spring-Boot-Containers
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate Betriebssystemprivate Stringprotected Stringprivate booleanprivate Stringprivate Stringprivate Stringprivate Stringprivate Stringprivate Stringprivate Stringprivate Stringprivate Stringprivate Stringprivate Stringprivate Stringprivate Stringprivate longprivate Stringprivate longprivate Stringprivate Stringprivate String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintlongstatic StringgetIPaddress(jakarta.servlet.http.HttpServletRequest request) intLiefert die Hauptversion von JavaLiefert die UnterVersion von Java als StringlonglonglonglonglongLiefert den gesamten freien Speicher der Festplatte in der die Anwendung liegtdoublelongbooleanisLinux()booleanisMac()booleanisPortAvailable(int port) booleanisUbuntu()boolean
-
Field Details
-
startTime
-
startTimeDateInteger
private long startTimeDateInteger -
startMilliseconds
private long startMilliseconds -
pid
-
betriebssystem
-
betriebssystemVersion
-
appHome
-
debugMode
private boolean debugMode -
localIP
-
hostname
-
linuxDistribution
-
linuxRelease
-
javaVendor
-
javaVersionNumber
-
javaSpecificationVersion
-
springVersion
-
encoding
-
fileEncoding
-
userDir
-
systemHome
-
language
-
fileSeparator
-
systemUsername
-
cmdCharset
-
-
Constructor Details
-
BaseSystemInfoService
public BaseSystemInfoService()
-
-
Method Details
-
getJavaVersion
-
isLinux
public boolean isLinux() -
isUbuntu
public boolean isUbuntu() -
isWindows
public boolean isWindows() -
isMac
public boolean isMac() -
isPortAvailable
public boolean isPortAvailable(int port) -
getPID
-
getTotalDiskSpace
public long getTotalDiskSpace()Liefert den gesamten freien Speicher der Festplatte in der die Anwendung liegt -
getFreeDiskSpace
public long getFreeDiskSpace() -
getUseableDiskSpace
public long getUseableDiskSpace() -
getCPUanzahl
public int getCPUanzahl() -
getUpTime
public double getUpTime() -
getMemoryInit
public long getMemoryInit() -
getMemoryUsed
public long getMemoryUsed() -
getMemoryMax
public long getMemoryMax() -
getMemoryInitCommited
public long getMemoryInitCommited() -
getJavaMajorVersion
public int getJavaMajorVersion()Liefert die Hauptversion von Java -
getJavaMinorVersion
Liefert die UnterVersion von Java als String -
getServiceName
-
getDebugPort
public int getDebugPort() -
getLeTToServiceInfo
-
getIPaddress
-