Class MSFTStorage


  • @ThreadSafe
    public final class MSFTStorage
    extends java.lang.Object
    Utility to query WMI classes in Storage namespace assocaited with Storage Pools
    • 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
    • Constructor Detail

      • MSFTStorage

        private MSFTStorage()
    • 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 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.