Class Win32LogicalDisk
java.lang.Object
oshi.driver.common.windows.wmi.Win32LogicalDisk
Constants and property enum for WMI class
Win32_LogicalDisk.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumLogical disk properties. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringbuildWmiClassNameWithWhere(String nameToMatch, boolean localOnly) Builds the WMI class name with optional WHERE clause for logical disk queries.queryLogicalDisk(WmiQueryExecutor h, String nameToMatch, boolean localOnly) Queries logical disk information.
-
Field Details
-
WIN32_LOGICAL_DISK
-
-
Constructor Details
-
Win32LogicalDisk
protected Win32LogicalDisk()Constructor.
-
-
Method Details
-
buildWmiClassNameWithWhere
Builds the WMI class name with optional WHERE clause for logical disk queries.- Parameters:
nameToMatch- an optional string to filter match, null otherwiselocalOnly- whether to only search local drives- Returns:
- the WMI class name with WHERE clause appended
-
queryLogicalDisk
public static WmiResult<Win32LogicalDisk.LogicalDiskProperty> queryLogicalDisk(WmiQueryExecutor h, String nameToMatch, boolean localOnly) Queries logical disk information.- Parameters:
h- An instantiatedWmiQueryExecutor.nameToMatch- an optional string to filter match, null otherwiselocalOnly- Whether to only search local drives- Returns:
- Logical Disk Information
-