Class WindowsHWDiskStore.DiskStats
java.lang.Object
oshi.hardware.common.platform.windows.WindowsHWDiskStore.DiskStats
- Enclosing class:
WindowsHWDiskStore
Maps to store read/write bytes per drive index
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the disk time map.Gets the queue length map.Gets the read bytes map.Gets the read count map.longGets the timestamp when stats were collected.Gets the write bytes map.Gets the write count map.voidsetTimeStamp(long timeStamp) Sets the timestamp.
-
Constructor Details
-
DiskStats
public DiskStats()Creates an empty DiskStats instance.
-
-
Method Details
-
getReadMap
-
getReadByteMap
-
getWriteMap
-
getWriteByteMap
-
getQueueLengthMap
-
getDiskTimeMap
-
getTimeStamp
public long getTimeStamp()Gets the timestamp when stats were collected.- Returns:
- the timestamp in milliseconds
-
setTimeStamp
public void setTimeStamp(long timeStamp) Sets the timestamp.- Parameters:
timeStamp- the timestamp in milliseconds
-