Class AixPowerSource

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

@ThreadSafe public final class AixPowerSource extends AbstractPowerSource
A Power Source
  • 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, 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<PowerSource> queryPowerSources()
      Description copied from class: AbstractPowerSource
      Returns a fresh list of power sources for this platform, used by AbstractPowerSource.updateAttributes(). Each concrete subclass implements this by delegating to its own static getPowerSources() factory method.
      Specified by:
      queryPowerSources in class AbstractPowerSource
      Returns:
      A list of PowerSource objects representing batteries, etc.
    • getPowerSources

      public static List<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.