Record Class ConfluxCommands.Status
java.lang.Object
java.lang.Record
com.iantapply.conflux.paper.command.ConfluxCommands.Status
- Record Components:
nodeId- local Relay node identifiersessionId- local process session identifierrealmId- logical network realmremoteNodes- known remote node countremotePlayers- known remote player countrenderedGhosts- currently rendered ghost countmetrics- compact operational metrics
- Enclosing class:
ConfluxCommands
-
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.nodeId()Returns the value of thenodeIdrecord component.realmId()Returns the value of therealmIdrecord component.intReturns the value of theremoteNodesrecord component.intReturns the value of theremotePlayersrecord component.intReturns the value of therenderedGhostsrecord component.Returns the value of thesessionIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Status
public Status(String nodeId, String sessionId, String realmId, int remoteNodes, int remotePlayers, int renderedGhosts, String metrics) Creates an instance of aStatusrecord class.- Parameters:
nodeId- the value for thenodeIdrecord componentsessionId- the value for thesessionIdrecord componentrealmId- the value for therealmIdrecord componentremoteNodes- the value for theremoteNodesrecord componentremotePlayers- the value for theremotePlayersrecord componentrenderedGhosts- the value for therenderedGhostsrecord componentmetrics- the value for themetricsrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
nodeId
-
sessionId
-
realmId
-
remoteNodes
public int remoteNodes()Returns the value of theremoteNodesrecord component.- Returns:
- the value of the
remoteNodesrecord component
-
remotePlayers
public int remotePlayers()Returns the value of theremotePlayersrecord component.- Returns:
- the value of the
remotePlayersrecord component
-
renderedGhosts
public int renderedGhosts()Returns the value of therenderedGhostsrecord component.- Returns:
- the value of the
renderedGhostsrecord component
-
metrics
-