java.lang.Object
oshi.hardware.PhysicalMemory
The PhysicalMemory class represents a physical memory device located on a computer system and available to the
operating system.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe bank and/or slot label.long
The capacity of memory bank in bytes.long
The configured memory clock speed in hertz.The manufacturer of the physical memory.The type of physical memoryThe part number of the physical memoryThe serial number of the physical memorytoString()
-
Constructor Details
-
PhysicalMemory
-
-
Method Details
-
getBankLabel
The bank and/or slot label.- Returns:
- the bank label
-
getCapacity
public long getCapacity()The capacity of memory bank in bytes.- Returns:
- the capacity
-
getClockSpeed
public long getClockSpeed()The configured memory clock speed in hertz.For DDR memory, this is the data transfer rate, which is a multiple of the actual bus clock speed.
- Returns:
- the clock speed, if avaialable. If unknown, returns -1.
-
getManufacturer
The manufacturer of the physical memory.- Returns:
- the manufacturer
-
getMemoryType
The type of physical memory- Returns:
- the memory type
-
getPartNumber
The part number of the physical memory- Returns:
- the part number
-
getSerialNumber
The serial number of the physical memory- Returns:
- the serial number
-
toString
-