public abstract class DefaultSystemInfoProvider extends SystemInfoProviderBase implements SystemInfoProvider
Constructor and Description |
---|
DefaultSystemInfoProvider() |
Modifier and Type | Method and Description |
---|---|
protected String |
getBashVersionInfo() |
String |
getBogoMIPS() |
String |
getCpuArchitecture() |
String[] |
getCpuFeatures() |
String |
getCpuImplementer() |
protected String |
getCpuInfo(String target)
This method will read and parse the '/proc/cpuinfo' into a collection of properties.
|
String |
getCpuPart() |
String |
getCpuRevision() |
String |
getCpuVariant() |
String |
getHardware() |
String |
getJavaRuntime() |
String |
getJavaVendor() |
String |
getJavaVendorUrl() |
String |
getJavaVersion() |
String |
getJavaVirtualMachine() |
protected List<Long> |
getMemory() |
long |
getMemoryBuffers() |
long |
getMemoryCached() |
long |
getMemoryFree() |
long |
getMemoryShared() |
long |
getMemoryTotal() |
long |
getMemoryUsed() |
String |
getOsArch() |
String |
getOsName() |
String |
getOsVersion() |
String |
getProcessor() |
protected String |
getReadElfTag(String tag) |
String |
getRevision() |
String |
getSerial() |
protected boolean |
hasReadElfTag(String tag) |
boolean |
isHardFloatAbi() |
getBoardType, getClockFrequencyArm, getClockFrequencyCore, getClockFrequencyDPI, getClockFrequencyEMMC, getClockFrequencyH264, getClockFrequencyHDMI, getClockFrequencyISP, getClockFrequencyPixel, getClockFrequencyPWM, getClockFrequencyUART, getClockFrequencyV3D, getClockFrequencyVEC, getCodecH264Enabled, getCodecMPG2Enabled, getCodecWVC1Enabled, getCpuTemperature, getCpuVoltage, getMemoryVoltageSDRam_C, getMemoryVoltageSDRam_I, getMemoryVoltageSDRam_P, getModelName, getOsFirmwareBuild, getOsFirmwareDate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBoardType, getClockFrequencyArm, getClockFrequencyCore, getClockFrequencyDPI, getClockFrequencyEMMC, getClockFrequencyH264, getClockFrequencyHDMI, getClockFrequencyISP, getClockFrequencyPixel, getClockFrequencyPWM, getClockFrequencyUART, getClockFrequencyV3D, getClockFrequencyVEC, getCodecH264Enabled, getCodecMPG2Enabled, getCodecWVC1Enabled, getCpuTemperature, getCpuVoltage, getMemoryVoltageSDRam_C, getMemoryVoltageSDRam_I, getMemoryVoltageSDRam_P, getModelName, getOsFirmwareBuild, getOsFirmwareDate
public DefaultSystemInfoProvider()
protected String getCpuInfo(String target) throws IOException, InterruptedException, UnsupportedOperationException
target
- IOException
InterruptedException
UnsupportedOperationException
protected String getBashVersionInfo()
protected boolean hasReadElfTag(String tag)
protected String getReadElfTag(String tag)
protected List<Long> getMemory() throws IOException, InterruptedException
IOException
InterruptedException
public String getProcessor() throws IOException, InterruptedException, UnsupportedOperationException
getProcessor
in interface SystemInfoProvider
getProcessor
in class SystemInfoProviderBase
IOException
InterruptedException
UnsupportedOperationException
public String getBogoMIPS() throws IOException, InterruptedException, UnsupportedOperationException
getBogoMIPS
in interface SystemInfoProvider
getBogoMIPS
in class SystemInfoProviderBase
IOException
InterruptedException
UnsupportedOperationException
public String[] getCpuFeatures() throws IOException, InterruptedException, UnsupportedOperationException
getCpuFeatures
in interface SystemInfoProvider
getCpuFeatures
in class SystemInfoProviderBase
IOException
InterruptedException
UnsupportedOperationException
public String getCpuImplementer() throws IOException, InterruptedException, UnsupportedOperationException
getCpuImplementer
in interface SystemInfoProvider
getCpuImplementer
in class SystemInfoProviderBase
IOException
InterruptedException
UnsupportedOperationException
public String getCpuArchitecture() throws IOException, InterruptedException, UnsupportedOperationException
getCpuArchitecture
in interface SystemInfoProvider
getCpuArchitecture
in class SystemInfoProviderBase
IOException
InterruptedException
UnsupportedOperationException
public String getCpuVariant() throws IOException, InterruptedException, UnsupportedOperationException
getCpuVariant
in interface SystemInfoProvider
getCpuVariant
in class SystemInfoProviderBase
IOException
InterruptedException
UnsupportedOperationException
public String getCpuPart() throws IOException, InterruptedException, UnsupportedOperationException
getCpuPart
in interface SystemInfoProvider
getCpuPart
in class SystemInfoProviderBase
IOException
InterruptedException
UnsupportedOperationException
public String getCpuRevision() throws IOException, InterruptedException, UnsupportedOperationException
getCpuRevision
in interface SystemInfoProvider
getCpuRevision
in class SystemInfoProviderBase
IOException
InterruptedException
UnsupportedOperationException
public String getHardware() throws IOException, InterruptedException, UnsupportedOperationException
getHardware
in interface SystemInfoProvider
getHardware
in class SystemInfoProviderBase
IOException
InterruptedException
UnsupportedOperationException
public String getRevision() throws IOException, InterruptedException, UnsupportedOperationException
getRevision
in interface SystemInfoProvider
getRevision
in class SystemInfoProviderBase
IOException
InterruptedException
UnsupportedOperationException
public String getSerial() throws IOException, InterruptedException, UnsupportedOperationException
getSerial
in interface SystemInfoProvider
getSerial
in class SystemInfoProviderBase
IOException
InterruptedException
UnsupportedOperationException
public String getOsName() throws UnsupportedOperationException
getOsName
in interface SystemInfoProvider
getOsName
in class SystemInfoProviderBase
UnsupportedOperationException
public String getOsVersion() throws UnsupportedOperationException
getOsVersion
in interface SystemInfoProvider
getOsVersion
in class SystemInfoProviderBase
UnsupportedOperationException
public String getOsArch() throws UnsupportedOperationException
getOsArch
in interface SystemInfoProvider
getOsArch
in class SystemInfoProviderBase
UnsupportedOperationException
public String getJavaVendor() throws UnsupportedOperationException
getJavaVendor
in interface SystemInfoProvider
getJavaVendor
in class SystemInfoProviderBase
UnsupportedOperationException
public String getJavaVendorUrl() throws UnsupportedOperationException
getJavaVendorUrl
in interface SystemInfoProvider
getJavaVendorUrl
in class SystemInfoProviderBase
UnsupportedOperationException
public String getJavaVersion() throws UnsupportedOperationException
getJavaVersion
in interface SystemInfoProvider
getJavaVersion
in class SystemInfoProviderBase
UnsupportedOperationException
public String getJavaVirtualMachine() throws UnsupportedOperationException
getJavaVirtualMachine
in interface SystemInfoProvider
getJavaVirtualMachine
in class SystemInfoProviderBase
UnsupportedOperationException
public String getJavaRuntime() throws UnsupportedOperationException
getJavaRuntime
in interface SystemInfoProvider
getJavaRuntime
in class SystemInfoProviderBase
UnsupportedOperationException
public boolean isHardFloatAbi() throws UnsupportedOperationException
isHardFloatAbi
in interface SystemInfoProvider
isHardFloatAbi
in class SystemInfoProviderBase
UnsupportedOperationException
public long getMemoryTotal() throws IOException, InterruptedException, UnsupportedOperationException
getMemoryTotal
in interface SystemInfoProvider
getMemoryTotal
in class SystemInfoProviderBase
IOException
InterruptedException
UnsupportedOperationException
public long getMemoryUsed() throws IOException, InterruptedException, UnsupportedOperationException
getMemoryUsed
in interface SystemInfoProvider
getMemoryUsed
in class SystemInfoProviderBase
IOException
InterruptedException
UnsupportedOperationException
public long getMemoryFree() throws IOException, InterruptedException, UnsupportedOperationException
getMemoryFree
in interface SystemInfoProvider
getMemoryFree
in class SystemInfoProviderBase
IOException
InterruptedException
UnsupportedOperationException
public long getMemoryShared() throws IOException, InterruptedException, UnsupportedOperationException
getMemoryShared
in interface SystemInfoProvider
getMemoryShared
in class SystemInfoProviderBase
IOException
InterruptedException
UnsupportedOperationException
public long getMemoryBuffers() throws IOException, InterruptedException, UnsupportedOperationException
getMemoryBuffers
in interface SystemInfoProvider
getMemoryBuffers
in class SystemInfoProviderBase
IOException
InterruptedException
UnsupportedOperationException
public long getMemoryCached() throws IOException, InterruptedException, UnsupportedOperationException
getMemoryCached
in interface SystemInfoProvider
getMemoryCached
in class SystemInfoProviderBase
IOException
InterruptedException
UnsupportedOperationException
Copyright © 2012–2021 Pi4J. All rights reserved.