Class Win32_NetworkAdapterSetting
java.lang.Object
com.ferrumx.system.associatedclasses.Win32_NetworkAdapterSetting
This class relates
Win32_NetworkAdapter
with Win32_NetworkAdapterConfiguration
.
Queries the Win32_NetworkAdapterSetting of WMI to fetch the "Setting" property which is used in Win32_NetworkAdapterConfiguration.
The linking happens as follows:
The NetworkAdapter ID fetched from
Win32_NetworkAdapter.getDeviceIDList()
gets passed onto getIndex(String)
which
returns the "Setting" property, which is a parameter for
Win32_NetworkAdapterConfiguration.getAdapterConfiguration(String)
- Author:
- Egg-03
-
Method Summary
-
Method Details
-
getIndex
public static String getIndex(String deviceID) throws IOException, IndexOutOfBoundsException, ShellException, InterruptedException Fetches the "Settings" property for a given Network Adapter ID- Parameters:
deviceID
- the adapter ID received fromWin32_NetworkAdapter.getDeviceIDList()
- Returns:
- the "Settings" property for a particular adapter ID
- Throws:
IOException
- in case of general I/O errorsIndexOutOfBoundsException
- in case of text parsing issues from 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();
-