Package oshi.hardware.platform.unix.aix
Class AixUsbDevice
- java.lang.Object
-
- oshi.hardware.common.AbstractUsbDevice
-
- oshi.hardware.platform.unix.aix.AixUsbDevice
-
@Immutable public class AixUsbDevice extends AbstractUsbDevice
AIX Usb Device
-
-
Constructor Summary
Constructors Constructor Description AixUsbDevice(java.lang.String name, java.lang.String vendor, java.lang.String vendorId, java.lang.String productId, java.lang.String serialNumber, java.lang.String uniqueDeviceId, java.util.List<UsbDevice> connectedDevices)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.List<UsbDevice>
getUsbDevices(boolean tree, java.util.function.Supplier<java.util.List<java.lang.String>> lscfg)
Instantiates a list ofUsbDevice
objects, representing devices connected via a usb port (including internal devices).-
Methods inherited from class oshi.hardware.common.AbstractUsbDevice
compareTo, getConnectedDevices, getName, getProductId, getSerialNumber, getUniqueDeviceId, getVendor, getVendorId, toString
-
-
-
-
Constructor Detail
-
AixUsbDevice
public AixUsbDevice(java.lang.String name, java.lang.String vendor, java.lang.String vendorId, java.lang.String productId, java.lang.String serialNumber, java.lang.String uniqueDeviceId, java.util.List<UsbDevice> connectedDevices)
-
-
Method Detail
-
getUsbDevices
public static java.util.List<UsbDevice> getUsbDevices(boolean tree, java.util.function.Supplier<java.util.List<java.lang.String>> lscfg)
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
- If true, returns a list of controllers, which requires recursive iteration of connected devices. If false, returns a flat list of devices excluding controllers.lscfg
- A memoized lscfg list- Returns:
- a list of
UsbDevice
objects.
-
-