Package com.pi4j.system.impl
Class RaspiSystemInfoProvider
- java.lang.Object
-
- com.pi4j.system.impl.SystemInfoProviderBase
-
- com.pi4j.system.impl.DefaultSystemInfoProvider
-
- com.pi4j.system.impl.RaspiSystemInfoProvider
-
- All Implemented Interfaces:
SystemInfoProvider
public class RaspiSystemInfoProvider extends DefaultSystemInfoProvider implements SystemInfoProvider
Raspberry Pi platform specific implementation of the SystemInfoProvider interface.
-
-
Field Summary
Fields Modifier and Type Field Description static short
RPI_MFG_EGOMAN
static short
RPI_MFG_EMBEST
static short
RPI_MFG_EMBEST2
static short
RPI_MFG_SONY
static short
RPI_MFG_UNKNOWN
static short
RPI_MODEL_2B
static short
RPI_MODEL_3A_PLUS
static short
RPI_MODEL_3B
static short
RPI_MODEL_3B_PLUS
static short
RPI_MODEL_400
static short
RPI_MODEL_4B
static short
RPI_MODEL_A
static short
RPI_MODEL_A_PLUS
static short
RPI_MODEL_ALPHA
static short
RPI_MODEL_B
static short
RPI_MODEL_B_PLUS
static short
RPI_MODEL_CM
static short
RPI_MODEL_CM3
static short
RPI_MODEL_CM3_PLUS
static short
RPI_MODEL_CM4
static short
RPI_MODEL_UNKNOWN
static short
RPI_MODEL_ZERO
static short
RPI_MODEL_ZERO_W
static short
RPI_PROC_BCM2835
static short
RPI_PROC_BCM2836
static short
RPI_PROC_BCM2837
static short
RPI_RAM_1024
static short
RPI_RAM_256
static short
RPI_RAM_512
-
Constructor Summary
Constructors Constructor Description RaspiSystemInfoProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SystemInfo.BoardType
getBoardType()
long
getClockFrequencyArm()
long
getClockFrequencyCore()
long
getClockFrequencyDPI()
long
getClockFrequencyEMMC()
long
getClockFrequencyH264()
long
getClockFrequencyHDMI()
long
getClockFrequencyISP()
long
getClockFrequencyPixel()
long
getClockFrequencyPWM()
long
getClockFrequencyUART()
long
getClockFrequencyV3D()
long
getClockFrequencyVEC()
boolean
getCodecH264Enabled()
boolean
getCodecMPG2Enabled()
boolean
getCodecWVC1Enabled()
float
getCpuTemperature()
float
getCpuVoltage()
float
getMemoryVoltageSDRam_C()
float
getMemoryVoltageSDRam_I()
float
getMemoryVoltageSDRam_P()
String
getModelName()
String
getOsFirmwareBuild()
String
getOsFirmwareDate()
-
Methods inherited from class com.pi4j.system.impl.DefaultSystemInfoProvider
getBashVersionInfo, getBogoMIPS, getCpuArchitecture, getCpuFeatures, getCpuImplementer, getCpuInfo, getCpuPart, getCpuRevision, getCpuVariant, getHardware, getJavaRuntime, getJavaVendor, getJavaVendorUrl, getJavaVersion, getJavaVirtualMachine, getMemory, getMemoryBuffers, getMemoryCached, getMemoryFree, getMemoryShared, getMemoryTotal, getMemoryUsed, getOsArch, getOsName, getOsVersion, getProcessor, getReadElfTag, getRevision, getSerial, hasReadElfTag, isHardFloatAbi
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.pi4j.system.SystemInfoProvider
getBogoMIPS, getCpuArchitecture, getCpuFeatures, getCpuImplementer, getCpuPart, getCpuRevision, getCpuVariant, getHardware, getJavaRuntime, getJavaVendor, getJavaVendorUrl, getJavaVersion, getJavaVirtualMachine, getMemoryBuffers, getMemoryCached, getMemoryFree, getMemoryShared, getMemoryTotal, getMemoryUsed, getOsArch, getOsName, getOsVersion, getProcessor, getRevision, getSerial, isHardFloatAbi
-
-
-
-
Field Detail
-
RPI_MODEL_A
public static final short RPI_MODEL_A
- See Also:
- Constant Field Values
-
RPI_MODEL_B
public static final short RPI_MODEL_B
- See Also:
- Constant Field Values
-
RPI_MODEL_A_PLUS
public static final short RPI_MODEL_A_PLUS
- See Also:
- Constant Field Values
-
RPI_MODEL_B_PLUS
public static final short RPI_MODEL_B_PLUS
- See Also:
- Constant Field Values
-
RPI_MODEL_2B
public static final short RPI_MODEL_2B
- See Also:
- Constant Field Values
-
RPI_MODEL_ALPHA
public static final short RPI_MODEL_ALPHA
- See Also:
- Constant Field Values
-
RPI_MODEL_CM
public static final short RPI_MODEL_CM
- See Also:
- Constant Field Values
-
RPI_MODEL_UNKNOWN
public static final short RPI_MODEL_UNKNOWN
- See Also:
- Constant Field Values
-
RPI_MODEL_3B
public static final short RPI_MODEL_3B
- See Also:
- Constant Field Values
-
RPI_MODEL_ZERO
public static final short RPI_MODEL_ZERO
- See Also:
- Constant Field Values
-
RPI_MODEL_CM3
public static final short RPI_MODEL_CM3
- See Also:
- Constant Field Values
-
RPI_MODEL_ZERO_W
public static final short RPI_MODEL_ZERO_W
- See Also:
- Constant Field Values
-
RPI_MODEL_3B_PLUS
public static final short RPI_MODEL_3B_PLUS
- See Also:
- Constant Field Values
-
RPI_MODEL_3A_PLUS
public static final short RPI_MODEL_3A_PLUS
- See Also:
- Constant Field Values
-
RPI_MODEL_CM3_PLUS
public static final short RPI_MODEL_CM3_PLUS
- See Also:
- Constant Field Values
-
RPI_MODEL_4B
public static final short RPI_MODEL_4B
- See Also:
- Constant Field Values
-
RPI_MODEL_400
public static final short RPI_MODEL_400
- See Also:
- Constant Field Values
-
RPI_MODEL_CM4
public static final short RPI_MODEL_CM4
- See Also:
- Constant Field Values
-
RPI_RAM_256
public static final short RPI_RAM_256
- See Also:
- Constant Field Values
-
RPI_RAM_512
public static final short RPI_RAM_512
- See Also:
- Constant Field Values
-
RPI_RAM_1024
public static final short RPI_RAM_1024
- See Also:
- Constant Field Values
-
RPI_MFG_SONY
public static final short RPI_MFG_SONY
- See Also:
- Constant Field Values
-
RPI_MFG_EGOMAN
public static final short RPI_MFG_EGOMAN
- See Also:
- Constant Field Values
-
RPI_MFG_EMBEST
public static final short RPI_MFG_EMBEST
- See Also:
- Constant Field Values
-
RPI_MFG_UNKNOWN
public static final short RPI_MFG_UNKNOWN
- See Also:
- Constant Field Values
-
RPI_MFG_EMBEST2
public static final short RPI_MFG_EMBEST2
- See Also:
- Constant Field Values
-
RPI_PROC_BCM2835
public static final short RPI_PROC_BCM2835
- See Also:
- Constant Field Values
-
RPI_PROC_BCM2836
public static final short RPI_PROC_BCM2836
- See Also:
- Constant Field Values
-
RPI_PROC_BCM2837
public static final short RPI_PROC_BCM2837
- See Also:
- Constant Field Values
-
-
Method Detail
-
getModelName
public String getModelName() throws IOException, InterruptedException, UnsupportedOperationException
- Specified by:
getModelName
in interfaceSystemInfoProvider
- Overrides:
getModelName
in classSystemInfoProviderBase
- Throws:
IOException
InterruptedException
UnsupportedOperationException
-
getOsFirmwareBuild
public String getOsFirmwareBuild() throws IOException, InterruptedException, UnsupportedOperationException
- Specified by:
getOsFirmwareBuild
in interfaceSystemInfoProvider
- Overrides:
getOsFirmwareBuild
in classSystemInfoProviderBase
- Throws:
IOException
InterruptedException
UnsupportedOperationException
-
getOsFirmwareDate
public String getOsFirmwareDate() throws IOException, InterruptedException, ParseException, UnsupportedOperationException
- Specified by:
getOsFirmwareDate
in interfaceSystemInfoProvider
- Overrides:
getOsFirmwareDate
in classSystemInfoProviderBase
- Throws:
IOException
InterruptedException
ParseException
UnsupportedOperationException
-
getBoardType
public SystemInfo.BoardType getBoardType() throws IOException, InterruptedException, UnsupportedOperationException
- Specified by:
getBoardType
in interfaceSystemInfoProvider
- Overrides:
getBoardType
in classSystemInfoProviderBase
- Throws:
IOException
InterruptedException
UnsupportedOperationException
-
getCpuTemperature
public float getCpuTemperature() throws IOException, InterruptedException, NumberFormatException, UnsupportedOperationException
- Specified by:
getCpuTemperature
in interfaceSystemInfoProvider
- Overrides:
getCpuTemperature
in classSystemInfoProviderBase
- Throws:
IOException
InterruptedException
NumberFormatException
UnsupportedOperationException
-
getCpuVoltage
public float getCpuVoltage() throws IOException, InterruptedException, NumberFormatException, UnsupportedOperationException
- Specified by:
getCpuVoltage
in interfaceSystemInfoProvider
- Overrides:
getCpuVoltage
in classSystemInfoProviderBase
- Throws:
IOException
InterruptedException
NumberFormatException
UnsupportedOperationException
-
getMemoryVoltageSDRam_C
public float getMemoryVoltageSDRam_C() throws IOException, InterruptedException, NumberFormatException, UnsupportedOperationException
- Specified by:
getMemoryVoltageSDRam_C
in interfaceSystemInfoProvider
- Overrides:
getMemoryVoltageSDRam_C
in classSystemInfoProviderBase
- Throws:
IOException
InterruptedException
NumberFormatException
UnsupportedOperationException
-
getMemoryVoltageSDRam_I
public float getMemoryVoltageSDRam_I() throws IOException, InterruptedException, NumberFormatException, UnsupportedOperationException
- Specified by:
getMemoryVoltageSDRam_I
in interfaceSystemInfoProvider
- Overrides:
getMemoryVoltageSDRam_I
in classSystemInfoProviderBase
- Throws:
IOException
InterruptedException
NumberFormatException
UnsupportedOperationException
-
getMemoryVoltageSDRam_P
public float getMemoryVoltageSDRam_P() throws IOException, InterruptedException, NumberFormatException, UnsupportedOperationException
- Specified by:
getMemoryVoltageSDRam_P
in interfaceSystemInfoProvider
- Overrides:
getMemoryVoltageSDRam_P
in classSystemInfoProviderBase
- Throws:
IOException
InterruptedException
NumberFormatException
UnsupportedOperationException
-
getCodecH264Enabled
public boolean getCodecH264Enabled() throws IOException, InterruptedException, UnsupportedOperationException
- Specified by:
getCodecH264Enabled
in interfaceSystemInfoProvider
- Overrides:
getCodecH264Enabled
in classSystemInfoProviderBase
- Throws:
IOException
InterruptedException
UnsupportedOperationException
-
getCodecMPG2Enabled
public boolean getCodecMPG2Enabled() throws IOException, InterruptedException, UnsupportedOperationException
- Specified by:
getCodecMPG2Enabled
in interfaceSystemInfoProvider
- Overrides:
getCodecMPG2Enabled
in classSystemInfoProviderBase
- Throws:
IOException
InterruptedException
UnsupportedOperationException
-
getCodecWVC1Enabled
public boolean getCodecWVC1Enabled() throws IOException, InterruptedException, UnsupportedOperationException
- Specified by:
getCodecWVC1Enabled
in interfaceSystemInfoProvider
- Overrides:
getCodecWVC1Enabled
in classSystemInfoProviderBase
- Throws:
IOException
InterruptedException
UnsupportedOperationException
-
getClockFrequencyArm
public long getClockFrequencyArm() throws IOException, InterruptedException, UnsupportedOperationException
- Specified by:
getClockFrequencyArm
in interfaceSystemInfoProvider
- Overrides:
getClockFrequencyArm
in classSystemInfoProviderBase
- Throws:
IOException
InterruptedException
UnsupportedOperationException
-
getClockFrequencyCore
public long getClockFrequencyCore() throws IOException, InterruptedException, UnsupportedOperationException
- Specified by:
getClockFrequencyCore
in interfaceSystemInfoProvider
- Overrides:
getClockFrequencyCore
in classSystemInfoProviderBase
- Throws:
IOException
InterruptedException
UnsupportedOperationException
-
getClockFrequencyH264
public long getClockFrequencyH264() throws IOException, InterruptedException, UnsupportedOperationException
- Specified by:
getClockFrequencyH264
in interfaceSystemInfoProvider
- Overrides:
getClockFrequencyH264
in classSystemInfoProviderBase
- Throws:
IOException
InterruptedException
UnsupportedOperationException
-
getClockFrequencyISP
public long getClockFrequencyISP() throws IOException, InterruptedException, UnsupportedOperationException
- Specified by:
getClockFrequencyISP
in interfaceSystemInfoProvider
- Overrides:
getClockFrequencyISP
in classSystemInfoProviderBase
- Throws:
IOException
InterruptedException
UnsupportedOperationException
-
getClockFrequencyV3D
public long getClockFrequencyV3D() throws IOException, InterruptedException, UnsupportedOperationException
- Specified by:
getClockFrequencyV3D
in interfaceSystemInfoProvider
- Overrides:
getClockFrequencyV3D
in classSystemInfoProviderBase
- Throws:
IOException
InterruptedException
UnsupportedOperationException
-
getClockFrequencyUART
public long getClockFrequencyUART() throws IOException, InterruptedException, UnsupportedOperationException
- Specified by:
getClockFrequencyUART
in interfaceSystemInfoProvider
- Overrides:
getClockFrequencyUART
in classSystemInfoProviderBase
- Throws:
IOException
InterruptedException
UnsupportedOperationException
-
getClockFrequencyPWM
public long getClockFrequencyPWM() throws IOException, InterruptedException, UnsupportedOperationException
- Specified by:
getClockFrequencyPWM
in interfaceSystemInfoProvider
- Overrides:
getClockFrequencyPWM
in classSystemInfoProviderBase
- Throws:
IOException
InterruptedException
UnsupportedOperationException
-
getClockFrequencyEMMC
public long getClockFrequencyEMMC() throws IOException, InterruptedException, UnsupportedOperationException
- Specified by:
getClockFrequencyEMMC
in interfaceSystemInfoProvider
- Overrides:
getClockFrequencyEMMC
in classSystemInfoProviderBase
- Throws:
IOException
InterruptedException
UnsupportedOperationException
-
getClockFrequencyPixel
public long getClockFrequencyPixel() throws IOException, InterruptedException, UnsupportedOperationException
- Specified by:
getClockFrequencyPixel
in interfaceSystemInfoProvider
- Overrides:
getClockFrequencyPixel
in classSystemInfoProviderBase
- Throws:
IOException
InterruptedException
UnsupportedOperationException
-
getClockFrequencyVEC
public long getClockFrequencyVEC() throws IOException, InterruptedException, UnsupportedOperationException
- Specified by:
getClockFrequencyVEC
in interfaceSystemInfoProvider
- Overrides:
getClockFrequencyVEC
in classSystemInfoProviderBase
- Throws:
IOException
InterruptedException
UnsupportedOperationException
-
getClockFrequencyHDMI
public long getClockFrequencyHDMI() throws IOException, InterruptedException, UnsupportedOperationException
- Specified by:
getClockFrequencyHDMI
in interfaceSystemInfoProvider
- Overrides:
getClockFrequencyHDMI
in classSystemInfoProviderBase
- Throws:
IOException
InterruptedException
UnsupportedOperationException
-
getClockFrequencyDPI
public long getClockFrequencyDPI() throws IOException, InterruptedException, UnsupportedOperationException
- Specified by:
getClockFrequencyDPI
in interfaceSystemInfoProvider
- Overrides:
getClockFrequencyDPI
in classSystemInfoProviderBase
- Throws:
IOException
InterruptedException
UnsupportedOperationException
-
-