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.Prop

    Nested classes/interfaces inherited from interface oshi.hardware.PowerSource

    oshi.hardware.PowerSource.CapacityUnits
  • Method Summary

    Modifier and Type
    Method
    Description
    static List<oshi.hardware.PowerSource>
    Gets Battery Information
    protected List<oshi.hardware.PowerSource>
     

    Methods inherited from class oshi.hardware.common.platform.linux.LinuxPowerSource

    buildPowerSource

    Methods 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

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Method Details

    • queryPowerSources

      protected List<oshi.hardware.PowerSource> queryPowerSources()
      Overrides:
      queryPowerSources in class oshi.hardware.common.platform.linux.LinuxPowerSource
    • getPowerSources

      public static List<oshi.hardware.PowerSource> getPowerSources()
      Gets Battery Information
      Returns:
      A list of PowerSource objects representing batteries, etc.