public class HWDiskStore extends Object implements Serializable, Comparable<HWDiskStore>
| Constructor and Description |
|---|
HWDiskStore()
Create an object with empty/default values
|
HWDiskStore(HWDiskStore diskStore)
Copy constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(HWDiskStore store) |
boolean |
equals(Object obj) |
long |
getCurrentQueueLength() |
String |
getModel() |
String |
getName() |
HWPartition[] |
getPartitions() |
long |
getReadBytes() |
long |
getReads() |
String |
getSerial() |
long |
getSize() |
long |
getTimeStamp() |
long |
getTransferTime() |
long |
getWriteBytes() |
long |
getWrites() |
int |
hashCode() |
void |
setCurrentQueueLength(long currentQueueLength) |
void |
setModel(String model) |
void |
setName(String name) |
void |
setPartitions(HWPartition[] partitions) |
void |
setReadBytes(long readBytes) |
void |
setReads(long reads) |
void |
setSerial(String serial) |
void |
setSize(long size) |
void |
setTimeStamp(long timeStamp) |
void |
setTransferTime(long transferTime) |
void |
setWriteBytes(long writeBytes) |
void |
setWrites(long writes) |
boolean |
updateDiskStats()
Make a best effort to update all the statistics about the drive without
needing to recreate the drive list.
|
public HWDiskStore()
public HWDiskStore(HWDiskStore diskStore)
diskStore - The object to copypublic boolean updateDiskStats()
public String getName()
public String getModel()
public String getSerial()
public long getSize()
public long getReads()
public long getReadBytes()
public long getWrites()
public long getWriteBytes()
public long getCurrentQueueLength()
public long getTransferTime()
public HWPartition[] getPartitions()
public long getTimeStamp()
public void setName(String name)
name - the name to setpublic void setModel(String model)
model - the model to setpublic void setSerial(String serial)
serial - the serial to setpublic void setSize(long size)
size - Set size of disk (in bytes)public void setReads(long reads)
reads - the reads to setpublic void setReadBytes(long readBytes)
readBytes - the bytes read to setpublic void setWrites(long writes)
writes - the writes to setpublic void setWriteBytes(long writeBytes)
writeBytes - the bytes written to setpublic void setCurrentQueueLength(long currentQueueLength)
currentQueueLength - the length of the disk queue (#I/O's in progress) to setpublic void setTransferTime(long transferTime)
transferTime - milliseconds spent reading or writing to setpublic void setPartitions(HWPartition[] partitions)
partitions - The partitions to set.public void setTimeStamp(long timeStamp)
timeStamp - The timeStamp to set.public int compareTo(HWDiskStore store)
compareTo in interface Comparable<HWDiskStore>Copyright © 2010–2019 oshi. All rights reserved.