Package oshi.hardware.common
Class AbstractHWDiskStore
java.lang.Object
oshi.hardware.common.AbstractHWDiskStore
- All Implemented Interfaces:
HWDiskStore
- Direct Known Subclasses:
AixHWDiskStore
,FreeBsdHWDiskStore
,LinuxHWDiskStore
,MacHWDiskStore
,OpenBsdHWDiskStore
,SolarisHWDiskStore
,WindowsHWDiskStore
Common methods for platform HWDiskStore classes
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractHWDiskStore
(String name, String model, String serial, long size) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface oshi.hardware.HWDiskStore
getCurrentQueueLength, getPartitions, getReadBytes, getReads, getTimeStamp, getTransferTime, getWriteBytes, getWrites, updateAttributes
-
Constructor Details
-
AbstractHWDiskStore
-
-
Method Details
-
getName
Description copied from interface:HWDiskStore
The disk name- Specified by:
getName
in interfaceHWDiskStore
- Returns:
- the name
-
getModel
Description copied from interface:HWDiskStore
The disk model- Specified by:
getModel
in interfaceHWDiskStore
- Returns:
- the model
-
getSerial
Description copied from interface:HWDiskStore
The disk serial number, if available.- Specified by:
getSerial
in interfaceHWDiskStore
- Returns:
- the serial number
-
getSize
public long getSize()Description copied from interface:HWDiskStore
The size of the disk- Specified by:
getSize
in interfaceHWDiskStore
- Returns:
- the disk size, in bytes
-
toString
-