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 class
MSFTStorage.PhysicalDiskProperty
Properties for a physical disk.static class
MSFTStorage.StoragePoolProperty
Properties to identify the storage pool.static class
MSFTStorage.StoragePoolToPhysicalDiskProperty
Properties to link a storage pool with a physical disk.static class
MSFTStorage.VirtualDiskProperty
Properties for a virtual disk.
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
MSFT_PHYSICAL_DISK
private static java.lang.String
MSFT_STORAGE_POOL_TO_PHYSICAL_DISK
private static java.lang.String
MSFT_STORAGE_POOL_WHERE_IS_PRIMORDIAL_FALSE
private static java.lang.String
MSFT_VIRTUAL_DISK
private static java.lang.String
STORAGE_NAMESPACE
-
Constructor Summary
Constructors Modifier Constructor Description private
MSFTStorage()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.sun.jna.platform.win32.COM.WbemcliUtil.WmiResult<MSFTStorage.PhysicalDiskProperty>
queryPhysicalDisks(WmiQueryHandler h)
Query the physical disks.static com.sun.jna.platform.win32.COM.WbemcliUtil.WmiResult<MSFTStorage.StoragePoolToPhysicalDiskProperty>
queryStoragePoolPhysicalDisks(WmiQueryHandler h)
Query the storage pool to physical disk connection.static com.sun.jna.platform.win32.COM.WbemcliUtil.WmiResult<MSFTStorage.StoragePoolProperty>
queryStoragePools(WmiQueryHandler h)
Query the storage pools.static com.sun.jna.platform.win32.COM.WbemcliUtil.WmiResult<MSFTStorage.VirtualDiskProperty>
queryVirtualDisks(WmiQueryHandler h)
Query the virtual disks.
-
-
-
Field Detail
-
STORAGE_NAMESPACE
private static final java.lang.String STORAGE_NAMESPACE
- See Also:
- Constant Field Values
-
MSFT_STORAGE_POOL_WHERE_IS_PRIMORDIAL_FALSE
private static final java.lang.String MSFT_STORAGE_POOL_WHERE_IS_PRIMORDIAL_FALSE
- See Also:
- Constant Field Values
-
MSFT_STORAGE_POOL_TO_PHYSICAL_DISK
private static final java.lang.String MSFT_STORAGE_POOL_TO_PHYSICAL_DISK
- See Also:
- Constant Field Values
-
MSFT_PHYSICAL_DISK
private static final java.lang.String MSFT_PHYSICAL_DISK
- See Also:
- Constant Field Values
-
MSFT_VIRTUAL_DISK
private static final java.lang.String MSFT_VIRTUAL_DISK
- See Also:
- Constant Field Values
-
-
Method Detail
-
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.
-
-