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 a list ofHWDiskStore
objects, representing physical hard disks or other similar storage devices.java.util.List<Display>
getDisplays()
Instantiates a list ofDisplay
objects, representing monitors or other video output devices.java.util.List<GraphicsCard>
getGraphicsCards()
Instantiates a list ofGraphicsCard
objects, representing the Graphics cards.java.util.List<NetworkIF>
getNetworkIFs(boolean includeLocalInterfaces)
Gets a listNetworkIF
objects, representing a network interface.java.util.List<PowerSource>
getPowerSources()
Instantiates a list ofPowerSource
objects, representing batteries, etc.java.util.List<SoundCard>
getSoundCards()
Instantiates a list ofSoundCard
objects, representing the Sound cards.java.util.List<UsbDevice>
getUsbDevices(boolean tree)
Instantiates a list ofUsbDevice
objects, representing devices connected via a usb port (including internal devices).Methods inherited from class oshi.hardware.common.AbstractHardwareAbstractionLayer
getComputerSystem, getMemory, getNetworkIFs, getProcessor, getSensors
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface oshi.hardware.HardwareAbstractionLayer
getLogicalVolumeGroups
-
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 a list ofPowerSource
objects, representing batteries, etc.- Returns:
- A list of PowerSource objects or an empty list if none are present.
-
getDiskStores
Description copied from interface:HardwareAbstractionLayer
Instantiates a list ofHWDiskStore
objects, representing physical hard disks or other similar storage devices.- Returns:
- A list of HWDiskStore objects or an empty list if none are present.
-
getDisplays
Description copied from interface:HardwareAbstractionLayer
Instantiates a list ofDisplay
objects, representing monitors or other video output devices.- Returns:
- A list of Display objects or an empty list if none are present.
-
getNetworkIFs
Description copied from interface:HardwareAbstractionLayer
Gets a listNetworkIF
objects, representing a network interface.- Parameters:
includeLocalInterfaces
- whether to include local interfaces (loopback or no hardware address) in the result- Returns:
- A list of
NetworkIF
objects representing the interfaces
-
getUsbDevices
Description copied from interface:HardwareAbstractionLayer
Instantiates a list 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:
- A list of UsbDevice objects representing (optionally) the USB Controllers and devices connected to them, or an empty list if none are present
-
getSoundCards
Description copied from interface:HardwareAbstractionLayer
Instantiates a list ofSoundCard
objects, representing the Sound cards.- Returns:
- A list of SoundCard objects or an empty list if none are present.
-
getGraphicsCards
Description copied from interface:HardwareAbstractionLayer
Instantiates a list ofGraphicsCard
objects, representing the Graphics cards.- Returns:
- A list of objects or an empty list if none are present.
-