Class SolarisHardwareAbstractionLayer
java.lang.Object
oshi.hardware.common.AbstractHardwareAbstractionLayer
oshi.hardware.platform.unix.solaris.SolarisHardwareAbstractionLayer
- All Implemented Interfaces:
HardwareAbstractionLayer
@ThreadSafe public final class SolarisHardwareAbstractionLayer extends AbstractHardwareAbstractionLayer
SolarisHardwareAbstractionLayer class.
-
Constructor Summary
Constructors Constructor Description SolarisHardwareAbstractionLayer()
-
Method Summary
Modifier and Type Method Description ComputerSystem
createComputerSystem()
Instantiates the platform-specificComputerSystem
objectGlobalMemory
createMemory()
Instantiates the platform-specificGlobalMemory
objectCentralProcessor
createProcessor()
Instantiates the platform-specificCentralProcessor
objectSensors
createSensors()
Instantiates the platform-specificSensors
objectjava.util.List<HWDiskStore>
getDiskStores()
Instantiates anUnmodifiableList
ofHWDiskStore
objects, representing physical hard disks or other similar storage devicesjava.util.List<Display>
getDisplays()
Instantiates anUnmodifiableList
ofDisplay
objects, representing monitors or other video output devices.java.util.List<GraphicsCard>
getGraphicsCards()
Instantiates anUnmodifiableList
ofGraphicsCard
objects, representing the Graphics cards.java.util.List<NetworkIF>
getNetworkIFs()
Gets a list ofNetworkIF
objects, representing a network interfacejava.util.List<PowerSource>
getPowerSources()
Instantiates anUnmodifiableList
ofPowerSource
objects, representing batteries, etc.java.util.List<SoundCard>
getSoundCards()
Instantiates anUnmodifiableList
ofSoundCard
objects, representing the Sound cards.java.util.List<UsbDevice>
getUsbDevices(boolean tree)
Instantiates anUnmodifiableList
ofUsbDevice
objects, representing devices connected via a usb port (including internal devices).Methods inherited from class oshi.hardware.common.AbstractHardwareAbstractionLayer
getComputerSystem, getMemory, getProcessor, getSensors
-
Constructor Details
-
SolarisHardwareAbstractionLayer
public SolarisHardwareAbstractionLayer()
-
-
Method Details
-
createComputerSystem
Description copied from class:AbstractHardwareAbstractionLayer
Instantiates the platform-specificComputerSystem
object- Specified by:
createComputerSystem
in classAbstractHardwareAbstractionLayer
- Returns:
- platform-specific
ComputerSystem
object
-
createMemory
Description copied from class:AbstractHardwareAbstractionLayer
Instantiates the platform-specificGlobalMemory
object- Specified by:
createMemory
in classAbstractHardwareAbstractionLayer
- Returns:
- platform-specific
GlobalMemory
object
-
createProcessor
Description copied from class:AbstractHardwareAbstractionLayer
Instantiates the platform-specificCentralProcessor
object- Specified by:
createProcessor
in classAbstractHardwareAbstractionLayer
- Returns:
- platform-specific
CentralProcessor
object
-
createSensors
Description copied from class:AbstractHardwareAbstractionLayer
Instantiates the platform-specificSensors
object- Specified by:
createSensors
in classAbstractHardwareAbstractionLayer
- Returns:
- platform-specific
Sensors
object
-
getPowerSources
Description copied from interface:HardwareAbstractionLayer
Instantiates anUnmodifiableList
ofPowerSource
objects, representing batteries, etc.- Returns:
- An
UnmodifiableList
of PowerSource objects or an empty array if none are present.
-
getDiskStores
Description copied from interface:HardwareAbstractionLayer
Instantiates anUnmodifiableList
ofHWDiskStore
objects, representing physical hard disks or other similar storage devices- Returns:
- An
UnmodifiableList
of HWDiskStore objects or an empty list if none are present.
-
getDisplays
Description copied from interface:HardwareAbstractionLayer
Instantiates anUnmodifiableList
ofDisplay
objects, representing monitors or other video output devices.- Returns:
- An
UnmodifiableList
of Display objects or an empty array if none are present.
-
getNetworkIFs
Description copied from interface:HardwareAbstractionLayer
Gets a list ofNetworkIF
objects, representing a network interface- Returns:
- An
UnmodifiableList
ofNetworkIF
objects representing the interfaces
-
getUsbDevices
Description copied from interface:HardwareAbstractionLayer
Instantiates anUnmodifiableList
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 oftree
is false, USB devices (not controllers) are listed in a single flat list.- Parameters:
tree
- Iftrue
, returns devices connected to the existing device, accessible viaUsbDevice.getConnectedDevices()
. Iffalse
returns devices as a flat list with no connected device information.- Returns:
- An
UnmodifiableList
of UsbDevice objects representing (optionally) the USB Controllers and devices connected to them, or an empty array if none are present
-
getSoundCards
Description copied from interface:HardwareAbstractionLayer
Instantiates anUnmodifiableList
ofSoundCard
objects, representing the Sound cards.- Returns:
- An
UnmodifiableList
of SoundCard objects or an empty array if none are present.
-
getGraphicsCards
Description copied from interface:HardwareAbstractionLayer
Instantiates anUnmodifiableList
ofGraphicsCard
objects, representing the Graphics cards.- Returns:
- An
UnmodifiableList
of objects or an empty array if none are present.
-