Class MSFTStorage
java.lang.Object
oshi.driver.common.windows.wmi.MSFTStorage
Constants and property enums for WMI classes in the Storage namespace associated with Storage Pools.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumProperties for a physical disk.static enumProperties to identify the storage pool.static enumProperties to link a storage pool with a physical disk.static enumProperties for a virtual disk. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe WMI class name for physical disks.static final StringThe WMI class name for storage pool to physical disk associations.static final StringThe WMI class name for non-primordial storage pools.static final StringThe WMI class name for virtual disks.static final StringThe WMI namespace for storage. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionQueries physical disks.Queries storage pool to physical disk mapping.Queries storage pools.Queries virtual disks.
-
Field Details
-
STORAGE_NAMESPACE
-
MSFT_STORAGE_POOL_WHERE_IS_PRIMORDIAL_FALSE
The WMI class name for non-primordial storage pools.- See Also:
-
MSFT_STORAGE_POOL_TO_PHYSICAL_DISK
The WMI class name for storage pool to physical disk associations.- See Also:
-
MSFT_PHYSICAL_DISK
-
MSFT_VIRTUAL_DISK
-
-
Constructor Details
-
MSFTStorage
protected MSFTStorage()Constructor.
-
-
Method Details
-
queryStoragePools
Queries storage pools.- Parameters:
h- An instantiatedWmiQueryExecutor. User should have already initialized COM.- Returns:
- Storage pool information.
-
queryStoragePoolPhysicalDisks
public static WmiResult<MSFTStorage.StoragePoolToPhysicalDiskProperty> queryStoragePoolPhysicalDisks(WmiQueryExecutor h) Queries storage pool to physical disk mapping.- Parameters:
h- An instantiatedWmiQueryExecutor. User should have already initialized COM.- Returns:
- Storage pool to physical disk mapping.
-
queryPhysicalDisks
Queries physical disks.- Parameters:
h- An instantiatedWmiQueryExecutor. User should have already initialized COM.- Returns:
- Physical disk information.
-
queryVirtualDisks
Queries virtual disks.- Parameters:
h- An instantiatedWmiQueryExecutor. User should have already initialized COM.- Returns:
- Virtual disk information.
-