Class AixPowerSource

java.lang.Object
oshi.hardware.common.AbstractPowerSource
oshi.hardware.platform.unix.aix.AixPowerSource
All Implemented Interfaces:
oshi.hardware.PowerSource

@ThreadSafe public final class AixPowerSource extends oshi.hardware.common.AbstractPowerSource
A Power Source
  • Nested Class Summary

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

    oshi.hardware.PowerSource.CapacityUnits
  • Constructor Summary

    Constructors
    Constructor
    Description
    AixPowerSource(String name, String deviceName, double remainingCapacityPercent, double timeRemainingEstimated, double timeRemainingInstant, double powerUsageRate, double voltage, double amperage, boolean powerOnLine, boolean charging, boolean discharging, oshi.hardware.PowerSource.CapacityUnits capacityUnits, int currentCapacity, int maxCapacity, int designCapacity, int cycleCount, String chemistry, LocalDate manufactureDate, String manufacturer, String serialNumber, double temperature)
     
  • 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.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
  • Constructor Details

    • AixPowerSource

      public AixPowerSource(String name, String deviceName, double remainingCapacityPercent, double timeRemainingEstimated, double timeRemainingInstant, double powerUsageRate, double voltage, double amperage, boolean powerOnLine, boolean charging, boolean discharging, oshi.hardware.PowerSource.CapacityUnits capacityUnits, int currentCapacity, int maxCapacity, int designCapacity, int cycleCount, String chemistry, LocalDate manufactureDate, String manufacturer, String serialNumber, double temperature)
  • Method Details

    • queryPowerSources

      protected List<oshi.hardware.PowerSource> queryPowerSources()
      Specified by:
      queryPowerSources in class oshi.hardware.common.AbstractPowerSource
    • getPowerSources

      public static List<oshi.hardware.PowerSource> getPowerSources()
      Gets Battery Information. AIX does not provide any battery statistics, as most servers are not designed to be run on battery.
      Returns:
      An empty list.