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 protectedAbstractHWDiskStore(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.StringgetModel()The disk modeljava.lang.StringgetName()The disk namejava.lang.StringgetSerial()The disk serial number, if available.longgetSize()The size of the diskjava.lang.StringtoString()-
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:HWDiskStoreThe disk name- Specified by:
getNamein interfaceHWDiskStore- Returns:
- the name
-
getModel
public java.lang.String getModel()
Description copied from interface:HWDiskStoreThe disk model- Specified by:
getModelin interfaceHWDiskStore- Returns:
- the model
-
getSerial
public java.lang.String getSerial()
Description copied from interface:HWDiskStoreThe disk serial number, if available.- Specified by:
getSerialin interfaceHWDiskStore- Returns:
- the serial number
-
getSize
public long getSize()
Description copied from interface:HWDiskStoreThe size of the disk- Specified by:
getSizein interfaceHWDiskStore- Returns:
- the disk size, in bytes
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-