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
@ThreadSafe public abstract class AbstractHWDiskStore extends java.lang.Object implements HWDiskStore
Common methods for platform HWDiskStore classes
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractHWDiskStore(java.lang.String name, java.lang.String model, java.lang.String serial, long size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getModel()
The disk modeljava.lang.String
getName()
The disk namejava.lang.String
getSerial()
The disk serial number, if available.long
getSize()
The size of the diskjava.lang.String
toString()
-
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
-
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:HWDiskStore
The disk name- Specified by:
getName
in interfaceHWDiskStore
- Returns:
- the name
-
getModel
public java.lang.String getModel()
Description copied from interface:HWDiskStore
The disk model- Specified by:
getModel
in interfaceHWDiskStore
- Returns:
- the model
-
getSerial
public java.lang.String 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
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-