Package oshi.driver.windows.wmi
Class MSFTStorage
java.lang.Object
oshi.driver.windows.wmi.MSFTStorage
@ThreadSafe public final class MSFTStorage extends java.lang.Object
Utility to query WMI classes in Storage namespace assocaited with Storage
Pools
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMSFTStorage.PhysicalDiskPropertyProperties for a physical disk.static classMSFTStorage.StoragePoolPropertyProperties to identify the storage pool.static classMSFTStorage.StoragePoolToPhysicalDiskPropertyProperties to link a storage pool with a physical disk.static classMSFTStorage.VirtualDiskPropertyProperties for a virtual disk. -
Method Summary
Modifier and Type Method Description static com.sun.jna.platform.win32.COM.WbemcliUtil.WmiResult<MSFTStorage.PhysicalDiskProperty>queryPhysicalDisks()Query the physical disks.static com.sun.jna.platform.win32.COM.WbemcliUtil.WmiResult<MSFTStorage.StoragePoolToPhysicalDiskProperty>queryStoragePoolPhysicalDisks()Query the storage pool to physical disk connection.static com.sun.jna.platform.win32.COM.WbemcliUtil.WmiResult<MSFTStorage.StoragePoolProperty>queryStoragePools()Query the storage pools.static com.sun.jna.platform.win32.COM.WbemcliUtil.WmiResult<MSFTStorage.VirtualDiskProperty>queryVirtualDisks()Query the virtual disks.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
queryStoragePools
public static com.sun.jna.platform.win32.COM.WbemcliUtil.WmiResult<MSFTStorage.StoragePoolProperty> queryStoragePools()Query the storage pools.- 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()Query the storage pool to physical disk connection.- 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()Query the physical disks.- Returns:
- The physical disks.
-
queryVirtualDisks
public static com.sun.jna.platform.win32.COM.WbemcliUtil.WmiResult<MSFTStorage.VirtualDiskProperty> queryVirtualDisks()Query the virtual disks.- Returns:
- The virtual disks.
-