Package oshi.hardware.platform.windows
Class WindowsDisks
java.lang.Object
oshi.hardware.platform.windows.WindowsDisks
@ThreadSafe public final class WindowsDisks extends java.lang.Object
Windows hard disk implementation.
-
Method Summary
Modifier and Type Method Description static HWDiskStore[]
getDisks()
Gets the disks on this machinestatic boolean
updateDiskStats(HWDiskStore diskStore)
Updates the statistics on a disk store.
-
Method Details
-
updateDiskStats
Updates the statistics on a disk store.- Parameters:
diskStore
- theHWDiskStore
to update.- Returns:
true
if the update was (probably) successful.
-
getDisks
Gets the disks on this machine- Returns:
- an array of
HWDiskStore
objects representing the disks
-