Class LinuxPowerSourceJNA
java.lang.Object
oshi.hardware.common.AbstractPowerSource
oshi.hardware.common.platform.linux.LinuxPowerSource
oshi.hardware.platform.linux.LinuxPowerSourceJNA
- All Implemented Interfaces:
oshi.hardware.PowerSource
@ThreadSafe
public final class LinuxPowerSourceJNA
extends oshi.hardware.common.platform.linux.LinuxPowerSource
JNA-based Linux power source implementation.
-
Nested Class Summary
Nested classes/interfaces inherited from class oshi.hardware.common.platform.linux.LinuxPowerSource
oshi.hardware.common.platform.linux.LinuxPowerSource.PropNested classes/interfaces inherited from interface oshi.hardware.PowerSource
oshi.hardware.PowerSource.CapacityUnits -
Method Summary
Methods inherited from class oshi.hardware.common.platform.linux.LinuxPowerSource
buildPowerSourceMethods inherited from class oshi.hardware.common.AbstractPowerSource
getAmperage, getCapacityUnits, getChemistry, getCurrentCapacity, getCycleCount, getDesignCapacity, getDeviceName, getManufactureDate, getManufacturer, getMaxCapacity, getName, getPowerUsageRate, getRemainingCapacityPercent, getSerialNumber, getTemperature, getTimeRemainingEstimated, getTimeRemainingInstant, getVoltage, isCharging, isDischarging, isPowerOnLine, toString, updateAttributes
-
Method Details
-
queryPowerSources
- Overrides:
queryPowerSourcesin classoshi.hardware.common.platform.linux.LinuxPowerSource
-
getPowerSources
Gets Battery Information- Returns:
- A list of PowerSource objects representing batteries, etc.
-