Class MSFTStorageJNA

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

@ThreadSafe public final class MSFTStorageJNA extends oshi.driver.common.windows.wmi.MSFTStorage
Utility to query WMI classes in Storage namespace associated with Storage Pools using JNA.
  • Nested Class Summary

    Nested classes/interfaces inherited from class oshi.driver.common.windows.wmi.MSFTStorage

    oshi.driver.common.windows.wmi.MSFTStorage.PhysicalDiskProperty, oshi.driver.common.windows.wmi.MSFTStorage.StoragePoolProperty, oshi.driver.common.windows.wmi.MSFTStorage.StoragePoolToPhysicalDiskProperty, oshi.driver.common.windows.wmi.MSFTStorage.VirtualDiskProperty
  • Field Summary

    Fields inherited from class oshi.driver.common.windows.wmi.MSFTStorage

    MSFT_PHYSICAL_DISK, MSFT_STORAGE_POOL_TO_PHYSICAL_DISK, MSFT_STORAGE_POOL_WHERE_IS_PRIMORDIAL_FALSE, MSFT_VIRTUAL_DISK, STORAGE_NAMESPACE
  • Method Summary

    Modifier and Type
    Method
    Description
    static WbemcliUtil.WmiResult<oshi.driver.common.windows.wmi.MSFTStorage.PhysicalDiskProperty>
    Query the physical disks.
    static WbemcliUtil.WmiResult<oshi.driver.common.windows.wmi.MSFTStorage.StoragePoolToPhysicalDiskProperty>
    Query the storage pool to physical disk connection.
    static WbemcliUtil.WmiResult<oshi.driver.common.windows.wmi.MSFTStorage.StoragePoolProperty>
    Query the storage pools.
    static WbemcliUtil.WmiResult<oshi.driver.common.windows.wmi.MSFTStorage.VirtualDiskProperty>
    Query the virtual disks.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • queryStoragePools

      public static WbemcliUtil.WmiResult<oshi.driver.common.windows.wmi.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 WbemcliUtil.WmiResult<oshi.driver.common.windows.wmi.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.
    • queryPhysicalDisks

      public static WbemcliUtil.WmiResult<oshi.driver.common.windows.wmi.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 WbemcliUtil.WmiResult<oshi.driver.common.windows.wmi.MSFTStorage.VirtualDiskProperty> queryVirtualDisks(WmiQueryHandler h)
      Query the virtual disks.
      Parameters:
      h - An instantiated WmiQueryHandler. User should have already initialized COM.
      Returns:
      The virtual disks.