Record Class ScaleActivity.ClusterNode
java.lang.Object
java.lang.Record
org.nuxeo.ecm.core.bulk.introspection.ScaleActivity.ClusterNode
- All Implemented Interfaces:
Serializable
- Enclosing class:
- ScaleActivity
public static record ScaleActivity.ClusterNode(String hostname, String nodeId, String type, String ip, int cpuCores, ByteSize jvmHeapSize, Instant created, Instant alive)
extends Record
implements Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionalive()Returns the value of thealiverecord component.intcpuCores()Returns the value of thecpuCoresrecord component.created()Returns the value of thecreatedrecord 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.ip()Returns the value of theiprecord component.Returns the value of thejvmHeapSizerecord component.nodeId()Returns the value of thenodeIdrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
ClusterNode
public ClusterNode(String hostname, String nodeId, String type, String ip, int cpuCores, ByteSize jvmHeapSize, Instant created, Instant alive) Creates an instance of aClusterNoderecord class.- Parameters:
hostname- the value for thehostnamerecord componentnodeId- the value for thenodeIdrecord componenttype- the value for thetyperecord componentip- the value for theiprecord componentcpuCores- the value for thecpuCoresrecord componentjvmHeapSize- the value for thejvmHeapSizerecord componentcreated- the value for thecreatedrecord componentalive- the value for thealiverecord 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
-
nodeId
Returns the value of thenodeIdrecord component.- Returns:
- the value of the
nodeIdrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
ip
Returns the value of theiprecord component.- Returns:
- the value of the
iprecord component
-
cpuCores
public int cpuCores()Returns the value of thecpuCoresrecord component.- Returns:
- the value of the
cpuCoresrecord component
-
jvmHeapSize
Returns the value of thejvmHeapSizerecord component.- Returns:
- the value of the
jvmHeapSizerecord component
-
created
Returns the value of thecreatedrecord component.- Returns:
- the value of the
createdrecord component
-
alive
Returns the value of thealiverecord component.- Returns:
- the value of the
aliverecord component
-