Record Class TurSystemInfoBean.MemoryInfo
java.lang.Object
java.lang.Record
com.viglet.turing.api.system.TurSystemInfoBean.MemoryInfo
- Enclosing class:
TurSystemInfoBean
public static record TurSystemInfoBean.MemoryInfo(long maxMemory, long totalMemory, long usedMemory, long freeMemory, long totalPhysicalMemory, long freePhysicalMemory, long totalSwap, long freeSwap)
extends Record
- Since:
- 2026.1.14
- Author:
- Alexandre Oliveira
-
Constructor Summary
ConstructorsConstructorDescriptionMemoryInfo(long maxMemory, long totalMemory, long usedMemory, long freeMemory, long totalPhysicalMemory, long freePhysicalMemory, long totalSwap, long freeSwap) Creates an instance of aMemoryInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.longReturns the value of thefreeMemoryrecord component.longReturns the value of thefreePhysicalMemoryrecord component.longfreeSwap()Returns the value of thefreeSwaprecord component.final inthashCode()Returns a hash code value for this object.longReturns the value of themaxMemoryrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalMemoryrecord component.longReturns the value of thetotalPhysicalMemoryrecord component.longReturns the value of thetotalSwaprecord component.longReturns the value of theusedMemoryrecord component.
-
Constructor Details
-
MemoryInfo
public MemoryInfo(long maxMemory, long totalMemory, long usedMemory, long freeMemory, long totalPhysicalMemory, long freePhysicalMemory, long totalSwap, long freeSwap) Creates an instance of aMemoryInforecord class.- Parameters:
maxMemory- the value for themaxMemoryrecord componenttotalMemory- the value for thetotalMemoryrecord componentusedMemory- the value for theusedMemoryrecord componentfreeMemory- the value for thefreeMemoryrecord componenttotalPhysicalMemory- the value for thetotalPhysicalMemoryrecord componentfreePhysicalMemory- the value for thefreePhysicalMemoryrecord componenttotalSwap- the value for thetotalSwaprecord componentfreeSwap- the value for thefreeSwaprecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
maxMemory
public long maxMemory()Returns the value of themaxMemoryrecord component.- Returns:
- the value of the
maxMemoryrecord component
-
totalMemory
public long totalMemory()Returns the value of thetotalMemoryrecord component.- Returns:
- the value of the
totalMemoryrecord component
-
usedMemory
public long usedMemory()Returns the value of theusedMemoryrecord component.- Returns:
- the value of the
usedMemoryrecord component
-
freeMemory
public long freeMemory()Returns the value of thefreeMemoryrecord component.- Returns:
- the value of the
freeMemoryrecord component
-
totalPhysicalMemory
public long totalPhysicalMemory()Returns the value of thetotalPhysicalMemoryrecord component.- Returns:
- the value of the
totalPhysicalMemoryrecord component
-
freePhysicalMemory
public long freePhysicalMemory()Returns the value of thefreePhysicalMemoryrecord component.- Returns:
- the value of the
freePhysicalMemoryrecord component
-
totalSwap
public long totalSwap()Returns the value of thetotalSwaprecord component.- Returns:
- the value of the
totalSwaprecord component
-
freeSwap
public long freeSwap()Returns the value of thefreeSwaprecord component.- Returns:
- the value of the
freeSwaprecord component
-