Package com.ferrumx.system.hardware
Class Win32_PortConnector
java.lang.Object
com.ferrumx.system.hardware.Win32_PortConnector
This class queries the Win32_PortConnector class of WMI and represents the
I/O Ports of your system's motherboard.
Fetches the following properties: Tag, ExternalReferenceDesignator, InternalReferenceDesignator
- Author:
- Egg-03
-
Method Summary
Modifier and TypeMethodDescriptionGathers a list of port IDs based on their Tag propertygetBaseboardPorts
(String portID) Gathers the port details based on the given port ID
-
Method Details
-
getBaseboardPortID
public static List<String> getBaseboardPortID() throws IOException, IndexOutOfBoundsException, ShellException, InterruptedExceptionGathers a list of port IDs based on their Tag property- Returns:
- a
List
of port 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();
-
getBaseboardPorts
public static Map<String,String> getBaseboardPorts(String portID) throws IOException, IndexOutOfBoundsException, ShellException, InterruptedException Gathers the port details based on the given port ID- Parameters:
portID
- fetched fromgetBaseboardPortID()
- Returns:
- a
Map
of the properties and values mentioned in the class description for the given port ID - 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();
-