java.lang.Object
java.lang.Record
ch.rasc.jcentserverclient.models.NodeResult
public record NodeResult(String uid, String name, String version, Long numClients, Long numUsers, Long numChannels, Long uptime, Metrics metrics, Process process, Long numSubs)
extends Record
Node information.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.metrics()Returns the value of themetricsrecord component.name()Returns the value of thenamerecord component.Returns the value of thenumChannelsrecord component.Returns the value of thenumClientsrecord component.numSubs()Returns the value of thenumSubsrecord component.numUsers()Returns the value of thenumUsersrecord component.process()Returns the value of theprocessrecord component.final StringtoString()Returns a string representation of this record class.uid()Returns the value of theuidrecord component.uptime()Returns the value of theuptimerecord component.version()Returns the value of theversionrecord component.
-
Constructor Details
-
NodeResult
public NodeResult(String uid, String name, String version, Long numClients, Long numUsers, Long numChannels, Long uptime, Metrics metrics, Process process, Long numSubs) Creates an instance of aNodeResultrecord class.- Parameters:
uid- the value for theuidrecord componentname- the value for thenamerecord componentversion- the value for theversionrecord componentnumClients- the value for thenumClientsrecord componentnumUsers- the value for thenumUsersrecord componentnumChannels- the value for thenumChannelsrecord componentuptime- the value for theuptimerecord componentmetrics- the value for themetricsrecord componentprocess- the value for theprocessrecord componentnumSubs- the value for thenumSubsrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
uid
Returns the value of theuidrecord component.- Returns:
- the value of the
uidrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
numClients
Returns the value of thenumClientsrecord component.- Returns:
- the value of the
numClientsrecord component
-
numUsers
Returns the value of thenumUsersrecord component.- Returns:
- the value of the
numUsersrecord component
-
numChannels
Returns the value of thenumChannelsrecord component.- Returns:
- the value of the
numChannelsrecord component
-
uptime
Returns the value of theuptimerecord component.- Returns:
- the value of the
uptimerecord component
-
metrics
Returns the value of themetricsrecord component.- Returns:
- the value of the
metricsrecord component
-
process
Returns the value of theprocessrecord component.- Returns:
- the value of the
processrecord component
-
numSubs
Returns the value of thenumSubsrecord component.- Returns:
- the value of the
numSubsrecord component
-