Class WindowsHWDiskStoreJNA
java.lang.Object
oshi.hardware.common.AbstractHWDiskStore
oshi.hardware.common.platform.windows.WindowsHWDiskStore
oshi.hardware.platform.windows.WindowsHWDiskStoreJNA
- All Implemented Interfaces:
oshi.hardware.HWDiskStore
@ThreadSafe
public final class WindowsHWDiskStoreJNA
extends oshi.hardware.common.platform.windows.WindowsHWDiskStore
Windows hard disk implementation using JNA.
-
Nested Class Summary
Nested classes/interfaces inherited from class oshi.hardware.common.platform.windows.WindowsHWDiskStore
oshi.hardware.common.platform.windows.WindowsHWDiskStore.DiskStats, oshi.hardware.common.platform.windows.WindowsHWDiskStore.PartitionMaps -
Field Summary
Fields inherited from class oshi.hardware.common.platform.windows.WindowsHWDiskStore
DEVICE_ID, GUID_BUFSIZE, LABEL_BUFSIZE, PHYSICALDRIVE_PREFIX -
Method Summary
Modifier and TypeMethodDescriptionstatic List<oshi.hardware.HWDiskStore> getDisks()Gets the disks on this machineprotected oshi.hardware.common.platform.windows.WindowsHWDiskStore.DiskStatsqueryReadWriteStats(String index) Methods inherited from class oshi.hardware.common.platform.windows.WindowsHWDiskStore
buildPartitionList, getCurrentQueueLength, getIndexFromName, getPartitions, getReadBytes, getReads, getTimeStamp, getTransferTime, getWriteBytes, getWrites, mapDriveToPartition, mapPartitionToLogicalDrive, populateDiskStats, setDiskStats, setPartitionList, updateAttributesMethods inherited from class oshi.hardware.common.AbstractHWDiskStore
getModel, getName, getSerial, getSize, toString
-
Method Details
-
queryReadWriteStats
protected oshi.hardware.common.platform.windows.WindowsHWDiskStore.DiskStats queryReadWriteStats(String index) - Specified by:
queryReadWriteStatsin classoshi.hardware.common.platform.windows.WindowsHWDiskStore
-
getDisks
Gets the disks on this machine- Returns:
- a list of
HWDiskStoreobjects representing the disks
-