Record Class SystemInfo
java.lang.Object
java.lang.Record
org.apache.syncope.common.lib.info.SystemInfo
- All Implemented Interfaces:
Serializable,BaseBean
public record SystemInfo(String hostname, String os, String jvm, int availableProcessors, long startTime, CircularFifoQueue<SystemInfo.LoadInstant> load)
extends Record
implements BaseBean
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionSystemInfo(String hostname, String os, String jvm, int availableProcessors, long startTime, CircularFifoQueue<SystemInfo.LoadInstant> load) Creates an instance of aSystemInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theavailableProcessorsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.hostname()Returns the value of thehostnamerecord component.jvm()Returns the value of thejvmrecord component.load()Returns the value of theloadrecord component.os()Returns the value of theosrecord component.longReturns the value of thestartTimerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SystemInfo
public SystemInfo(String hostname, String os, String jvm, int availableProcessors, long startTime, CircularFifoQueue<SystemInfo.LoadInstant> load) Creates an instance of aSystemInforecord class.- Parameters:
hostname- the value for thehostnamerecord componentos- the value for theosrecord componentjvm- the value for thejvmrecord componentavailableProcessors- the value for theavailableProcessorsrecord componentstartTime- the value for thestartTimerecord componentload- the value for theloadrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
hostname
Returns the value of thehostnamerecord component.- Returns:
- the value of the
hostnamerecord component
-
os
Returns the value of theosrecord component.- Returns:
- the value of the
osrecord component
-
jvm
Returns the value of thejvmrecord component.- Returns:
- the value of the
jvmrecord component
-
availableProcessors
public int availableProcessors()Returns the value of theavailableProcessorsrecord component.- Returns:
- the value of the
availableProcessorsrecord component
-
startTime
public long startTime()Returns the value of thestartTimerecord component.- Returns:
- the value of the
startTimerecord component
-
load
Returns the value of theloadrecord component.- Returns:
- the value of the
loadrecord component
-