Class SolarisPowerSource

java.lang.Object
oshi.hardware.common.AbstractPowerSource
oshi.hardware.common.platform.unix.solaris.SolarisPowerSource
All Implemented Interfaces:
PowerSource

@ThreadSafe public abstract class SolarisPowerSource extends AbstractPowerSource
Abstract base for the Solaris PowerSource. The default values and the bif/bst battery math are shared; the native battery/acpi_drv kstat read is done by the JNA and FFM subclasses, which populate a SolarisPowerSource.BatteryReadings and hand it to buildPowerSources(String, SolarisPowerSource.BatteryReadings, SolarisPowerSource.PowerSourceFactory).
  • Constructor Details

    • SolarisPowerSource

      protected SolarisPowerSource(String psName, String psDeviceName, double psRemainingCapacityPercent, double psTimeRemainingEstimated, double psTimeRemainingInstant, double psPowerUsageRate, double psVoltage, double psAmperage, boolean psPowerOnLine, boolean psCharging, boolean psDischarging, PowerSource.CapacityUnits psCapacityUnits, int psCurrentCapacity, int psMaxCapacity, int psDesignCapacity, int psCycleCount, String psChemistry, LocalDate psManufactureDate, String psManufacturer, String psSerialNumber, double psTemperature)
  • Method Details