Record Class ONodeInfo
java.lang.Object
java.lang.Record
com.orientechnologies.orient.distributed.context.coordination.message.ONodeInfo
public record ONodeInfo(String version, List<ONodeInfoListener> listeners, long usedMemory, long freeMemory, long maxMemory)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionONodeInfo(String version, List<ONodeInfoListener> listeners, long usedMemory, long freeMemory, long maxMemory) Creates an instance of aONodeInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.longReturns the value of thefreeMemoryrecord component.static ONodeInfofromNetwork(DataInput input) final inthashCode()Returns a hash code value for this object.Returns the value of thelistenersrecord component.longReturns the value of themaxMemoryrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of theusedMemoryrecord component.version()Returns the value of theversionrecord component.voidwriteNetwork(DataOutput out)
-
Constructor Details
-
ONodeInfo
public ONodeInfo(String version, List<ONodeInfoListener> listeners, long usedMemory, long freeMemory, long maxMemory) Creates an instance of aONodeInforecord class.- Parameters:
version- the value for theversionrecord componentlisteners- the value for thelistenersrecord componentusedMemory- the value for theusedMemoryrecord componentfreeMemory- the value for thefreeMemoryrecord componentmaxMemory- the value for themaxMemoryrecord component
-
-
Method Details
-
fromNetwork
- Throws:
IOException
-
writeNetwork
- Throws:
IOException
-
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 '=='. -
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
listeners
Returns the value of thelistenersrecord component.- Returns:
- the value of the
listenersrecord 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
-
maxMemory
public long maxMemory()Returns the value of themaxMemoryrecord component.- Returns:
- the value of the
maxMemoryrecord component
-