Package com.ferrumx.system.hardware
Class Win32_VideoController
java.lang.Object
com.ferrumx.system.hardware.Win32_VideoController
This class queries the Win32_VideoController class of WMI and represents the
basic GPU details of your system.
Fetches the following properties: Name, PNPDeviceID, CurrentBitsPerPixel, CurrentHorizontalResolution, CurrentVerticalResolution, CurrentRefreshRate, MaxRefreshRate, MinRefreshRate, AdapterDACType, AdapterRAM, DriverDate, DriverVersion, VideoProcessor
- Author:
- Egg-03
-
Method Summary
-
Method Details
-
getGPUID
public static List<String> getGPUID() throws IOException, IndexOutOfBoundsException, ShellException, InterruptedExceptionThis method fetches a list of GPU IDs found in the system- Returns:
- a
List
of GPU IDs - Throws:
IOException
- re-throws the exception thrown byCIM_ML.getPropertyValue(String, String)
when there are I/O Errors during streaming of data from and to Powershell and other generated filesIndexOutOfBoundsException
- re-throws the exception thrown byCIM_ML.getPropertyValue(String, String)
when there is a parsing error of data fetched from Windows PowershellShellException
- if any internal command used in the powershell throws errorsInterruptedException
- if the thread waiting for the process to exit, gets interrupted. When catching this exception, you may re-throw it's interrupted status by using Thread.currentThread().interrupt();
-
getGPU
public static Map<String,String> getGPU(String gpuID) throws IOException, IndexOutOfBoundsException, ShellException, InterruptedException This method fetches a list of GPUs found in the system, based on their IDs- Parameters:
gpuID
- fetched fromgetGPUID()
- Returns:
- a
Map
of GPU properties mentioned in the class description - Throws:
IOException
- re-throws the exception thrown byCIM_ML.getPropertiesAndTheirValuesWhere(String, String, String, String)
when there are I/O Errors during streaming of data from and to Powershell and other generated filesIndexOutOfBoundsException
- re-throws the exception thrown byCIM_ML.getPropertiesAndTheirValuesWhere(String, String, String, String)
when there is a parsing error of data fetched from Windows PowershellShellException
- if any internal command used in the powershell throws errorsInterruptedException
- if the thread waiting for the process to exit, gets interrupted. When catching this exception, you may re-throw it's interrupted status by using Thread.currentThread().interrupt();
-