HWDiskStoreImpl

class HWDiskStoreImpl(    val name: String,     val model: String,     val serial: String,     val size: Long,     val reads: Long,     val readBytes: Long,     val writes: Long,     val writesBytes: Long,     val currentQueueLength: Long,     val transferTime: Long,     val partitions: List<HWPartition>,     val timestamp: Long,     val updateAttributes: Boolean) : HWDiskStore

Implementation of the HWDiskStore interface. This class provides details about a disk or storage device in the system, including the disk's model, serial number, size, read/write statistics, partitions, and other attributes.

Author

N7ghtm4r3

Parameters

name

The name or identifier of the disk (e.g., "sda", "disk0")

model

The model name of the disk (e.g., "Samsung SSD 860")

serial

The serial number of the disk

size

The total size of the disk (in bytes)

reads

The number of read operations performed on the disk

readBytes

The number of bytes read from the disk

writes

The number of write operations performed on the disk

writesBytes

The number of bytes written to the disk

currentQueueLength

The current length of the disk's I/O request queue

transferTime

The time (in milliseconds) spent transferring data for I/O operations

partitions

A list of partitions on the disk

timestamp

The timestamp when the disk information was last updated

updateAttributes

A flag indicating whether the disk's attributes should be updated

See also

Constructors

Link copied to clipboard
constructor(    name: String,     model: String,     serial: String,     size: Long,     reads: Long,     readBytes: Long,     writes: Long,     writesBytes: Long,     currentQueueLength: Long,     transferTime: Long,     partitions: List<HWPartition>,     timestamp: Long,     updateAttributes: Boolean)

Properties

Link copied to clipboard
open override val currentQueueLength: Long
Link copied to clipboard
open override val model: String
Link copied to clipboard
open override val name: String
Link copied to clipboard
open override val partitions: List<HWPartition>
Link copied to clipboard
open override val readBytes: Long
Link copied to clipboard
open override val reads: Long
Link copied to clipboard
open override val serial: String
Link copied to clipboard
open override val size: Long
Link copied to clipboard
open override val timestamp: Long
Link copied to clipboard
open override val transferTime: Long
Link copied to clipboard
open override val updateAttributes: Boolean
Link copied to clipboard
open override val writes: Long
Link copied to clipboard
open override val writesBytes: Long