java.lang.Object
oshi.driver.windows.wmi.MSFTStorage
Utility to query WMI classes in Storage namespace assocaited with Storage Pools
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Properties for a physical disk.static enum
Properties to identify the storage pool.static enum
Properties to link a storage pool with a physical disk.static enum
Properties for a virtual disk. -
Method Summary
Modifier and TypeMethodDescriptionstatic com.sun.jna.platform.win32.COM.WbemcliUtil.WmiResult<MSFTStorage.PhysicalDiskProperty>
Query the physical disks.static com.sun.jna.platform.win32.COM.WbemcliUtil.WmiResult<MSFTStorage.StoragePoolToPhysicalDiskProperty>
Query the storage pool to physical disk connection.static com.sun.jna.platform.win32.COM.WbemcliUtil.WmiResult<MSFTStorage.StoragePoolProperty>
Query the storage pools.static com.sun.jna.platform.win32.COM.WbemcliUtil.WmiResult<MSFTStorage.VirtualDiskProperty>
Query the virtual disks.
-
Method Details
-
queryStoragePools
public static com.sun.jna.platform.win32.COM.WbemcliUtil.WmiResult<MSFTStorage.StoragePoolProperty> queryStoragePools(WmiQueryHandler h) Query the storage pools.- Parameters:
h
- An instantiatedWmiQueryHandler
. User should have already initialized COM.- Returns:
- Storage pools that are not primordial (raw disks not added to a storage space).
-
queryStoragePoolPhysicalDisks
public static com.sun.jna.platform.win32.COM.WbemcliUtil.WmiResult<MSFTStorage.StoragePoolToPhysicalDiskProperty> queryStoragePoolPhysicalDisks(WmiQueryHandler h) Query the storage pool to physical disk connection.- Parameters:
h
- An instantiatedWmiQueryHandler
. User should have already initialized COM.- Returns:
- Links between physical disks and storage pools. All raw disks will be part of the primordial pool in addition to the storage space they are a member of.
-
queryPhysicalDisks
public static com.sun.jna.platform.win32.COM.WbemcliUtil.WmiResult<MSFTStorage.PhysicalDiskProperty> queryPhysicalDisks(WmiQueryHandler h) Query the physical disks.- Parameters:
h
- An instantiatedWmiQueryHandler
. User should have already initialized COM.- Returns:
- The physical disks.
-
queryVirtualDisks
public static com.sun.jna.platform.win32.COM.WbemcliUtil.WmiResult<MSFTStorage.VirtualDiskProperty> queryVirtualDisks(WmiQueryHandler h) Query the virtual disks.- Parameters:
h
- An instantiatedWmiQueryHandler
. User should have already initialized COM.- Returns:
- The virtual disks.
-