Package cloud.spawnery.agent.api
Record Class ProxyInfo
java.lang.Object
java.lang.Record
cloud.spawnery.agent.api.ProxyInfo
- Record Components:
name- the proxy's pod namegroup- the proxy group it belongs toready- whether it passes its ready gatedraining- whether it takes no new connections and stops once emptyplayers- the players its agent reports
public record ProxyInfo(String name, String group, boolean ready, boolean draining, int players, String node)
extends Record
One proxy of this network, as the operator last described it.
-
Constructor Summary
ConstructorsConstructorDescriptionThe record as it was beforenode, which it reads as not scheduled.Creates an instance of aProxyInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleandraining()Returns the value of thedrainingrecord component.final booleanIndicates whether some other object is "equal to" this one.group()Returns the value of thegrouprecord component.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.node()Returns the value of thenoderecord component.intplayers()Returns the value of theplayersrecord component.booleanready()Returns the value of thereadyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ProxyInfo
public ProxyInfo(String name, String group, boolean ready, boolean draining, int players, String node) Creates an instance of aProxyInforecord class.- Parameters:
name- the value for thenamerecord componentgroup- the value for thegrouprecord componentready- the value for thereadyrecord componentdraining- the value for thedrainingrecord componentplayers- the value for theplayersrecord componentnode- the value for thenoderecord component
-
ProxyInfo
The record as it was beforenode, which it reads as not scheduled.
-
-
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 '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
group
Returns the value of thegrouprecord component.- Returns:
- the value of the
grouprecord component
-
ready
public boolean ready()Returns the value of thereadyrecord component.- Returns:
- the value of the
readyrecord component
-
draining
public boolean draining()Returns the value of thedrainingrecord component.- Returns:
- the value of the
drainingrecord component
-
players
public int players()Returns the value of theplayersrecord component.- Returns:
- the value of the
playersrecord component
-
node
Returns the value of thenoderecord component.- Returns:
- the value of the
noderecord component
-