Class SolarisHardwareAbstractionLayer
- java.lang.Object
-
- oshi.hardware.common.AbstractHardwareAbstractionLayer
-
- oshi.hardware.platform.unix.solaris.SolarisHardwareAbstractionLayer
-
- All Implemented Interfaces:
java.io.Serializable
,HardwareAbstractionLayer
public class SolarisHardwareAbstractionLayer extends AbstractHardwareAbstractionLayer
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class oshi.hardware.common.AbstractHardwareAbstractionLayer
computerSystem, memory, processor, sensors
-
-
Constructor Summary
Constructors Constructor Description SolarisHardwareAbstractionLayer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputerSystem
getComputerSystem()
Instantiates aComputerSystem
object.HWDiskStore[]
getDiskStores()
Instantiates an array ofHWDiskStore
objects, representing a physical hard disk or other similar storage deviceDisplay[]
getDisplays()
Instantiates an array ofDisplay
objects, representing monitors or other video output devices.GlobalMemory
getMemory()
Instantiates aGlobalMemory
object.NetworkIF[]
getNetworkIFs()
Instantiates an array ofNetworkIF
objects, representing a network interfacePowerSource[]
getPowerSources()
Instantiates an array ofPowerSource
objects, representing batteries, etc.CentralProcessor
getProcessor()
Instantiates aCentralProcessor
object.Sensors
getSensors()
Instantiates aSensors
object, representing CPU temperature and fan speedSoundCard[]
getSoundCards()
Instantiates an array ofSoundCard
objects, representing the Sound cards.UsbDevice[]
getUsbDevices(boolean tree)
Instantiates an array ofUsbDevice
objects, representing devices connected via a usb port (including internal devices).
-
-
-
Method Detail
-
getComputerSystem
public ComputerSystem getComputerSystem()
Instantiates aComputerSystem
object. This represents the physical hardware, including components such as BIOS/Firmware and a motherboard, logic board, etc.- Returns:
- a
ComputerSystem
object.
-
getMemory
public GlobalMemory getMemory()
Instantiates aGlobalMemory
object.- Returns:
- A memory object.
-
getProcessor
public CentralProcessor getProcessor()
Instantiates aCentralProcessor
object. This represents one or more Logical CPUs.- Returns:
- A
CentralProcessor
object.
-
getPowerSources
public PowerSource[] getPowerSources()
Instantiates an array ofPowerSource
objects, representing batteries, etc.- Returns:
- An array of PowerSource objects or an empty array if none are present.
-
getDiskStores
public HWDiskStore[] getDiskStores()
Instantiates an array ofHWDiskStore
objects, representing a physical hard disk or other similar storage device- Returns:
- An array of HWDiskStore objects or an empty array if none are present.
-
getDisplays
public Display[] getDisplays()
Instantiates an array ofDisplay
objects, representing monitors or other video output devices.- Returns:
- An array of Display objects or an empty array if none are present.
-
getSensors
public Sensors getSensors()
Instantiates aSensors
object, representing CPU temperature and fan speed- Returns:
- A Sensors object
-
getNetworkIFs
public NetworkIF[] getNetworkIFs()
Instantiates an array ofNetworkIF
objects, representing a network interface- Returns:
- An array of HWNetworkStore objects or an empty array if none are present.
-
getUsbDevices
public UsbDevice[] getUsbDevices(boolean tree)
Instantiates an array ofUsbDevice
objects, representing devices connected via a usb port (including internal devices). If the value of tree is true, the top level devices returned from this method are the USB Controllers; connected hubs and devices in its device tree share that controller's bandwidth. If the value of tree is false, USB devices (not controllers) are listed in a single flat array.- Parameters:
tree
- WHether to display devices in a nested tree format from their controllers- Returns:
- An array of UsbDevice objects representing (optionally) the USB Controllers and devices connected to them, or an empty array if none are present
-
getSoundCards
public SoundCard[] getSoundCards()
Description copied from interface:HardwareAbstractionLayer
Instantiates an array ofSoundCard
objects, representing the Sound cards.- Returns:
- An array of SoundCard objects or an empty array if none are present.
-
-