Package oshi.hardware.platform.linux
Class LinuxGraphicsCard
- java.lang.Object
-
- oshi.hardware.common.AbstractGraphicsCard
-
- oshi.hardware.platform.linux.LinuxGraphicsCard
-
- All Implemented Interfaces:
GraphicsCard
@Immutable final class LinuxGraphicsCard extends AbstractGraphicsCard
Graphics card info obtained by lshw
-
-
Constructor Summary
Constructors Constructor Description LinuxGraphicsCard(java.lang.String name, java.lang.String deviceId, java.lang.String vendor, java.lang.String versionInfo, long vram)Constructor for LinuxGraphicsCard
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.List<GraphicsCard>getGraphicsCards()public method used byAbstractHardwareAbstractionLayerto access the graphics cards.private static java.util.List<GraphicsCard>getGraphicsCardsFromLshw()private static java.util.List<GraphicsCard>getGraphicsCardsFromLspci()private static longqueryLspciMemorySize(java.lang.String lookupDevice)-
Methods inherited from class oshi.hardware.common.AbstractGraphicsCard
getDeviceId, getName, getVendor, getVersionInfo, getVRam, toString
-
-
-
-
Constructor Detail
-
LinuxGraphicsCard
LinuxGraphicsCard(java.lang.String name, java.lang.String deviceId, java.lang.String vendor, java.lang.String versionInfo, long vram)Constructor for LinuxGraphicsCard- Parameters:
name- The namedeviceId- The device IDvendor- The vendorversionInfo- The version infovram- The VRAM
-
-
Method Detail
-
getGraphicsCards
public static java.util.List<GraphicsCard> getGraphicsCards()
public method used byAbstractHardwareAbstractionLayerto access the graphics cards.- Returns:
- List of
LinuxGraphicsCardobjects.
-
getGraphicsCardsFromLspci
private static java.util.List<GraphicsCard> getGraphicsCardsFromLspci()
-
queryLspciMemorySize
private static long queryLspciMemorySize(java.lang.String lookupDevice)
-
getGraphicsCardsFromLshw
private static java.util.List<GraphicsCard> getGraphicsCardsFromLshw()
-
-