Class MSFTStorage

java.lang.Object
oshi.driver.windows.wmi.MSFTStorage

@ThreadSafe public final class MSFTStorage extends Object
Utility to query WMI classes in Storage namespace assocaited with Storage Pools
  • 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 instantiated WmiQueryHandler. 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 instantiated WmiQueryHandler. 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 instantiated WmiQueryHandler. 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 instantiated WmiQueryHandler. User should have already initialized COM.
      Returns:
      The virtual disks.