Record Class AgentStatus
java.lang.Object
java.lang.Record
io.fluxzero.devserver.AgentStatus
public record AgentStatus(AgentCursor cursor, DevSession session, int activeProblems, int errors, int warnings)
extends Record
Compact environment status returned to agent clients.
-
Constructor Summary
ConstructorsConstructorDescriptionAgentStatus(AgentCursor cursor, DevSession session, int activeProblems, int errors, int warnings) Creates an instance of aAgentStatusrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theactiveProblemsrecord component.cursor()Returns the value of thecursorrecord component.final booleanIndicates whether some other object is "equal to" this one.interrors()Returns the value of theerrorsrecord component.final inthashCode()Returns a hash code value for this object.session()Returns the value of thesessionrecord component.final StringtoString()Returns a string representation of this record class.intwarnings()Returns the value of thewarningsrecord component.
-
Constructor Details
-
AgentStatus
public AgentStatus(AgentCursor cursor, DevSession session, int activeProblems, int errors, int warnings) Creates an instance of aAgentStatusrecord class.- Parameters:
cursor- the value for thecursorrecord componentsession- the value for thesessionrecord componentactiveProblems- the value for theactiveProblemsrecord componenterrors- the value for theerrorsrecord componentwarnings- the value for thewarningsrecord 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. -
cursor
Returns the value of thecursorrecord component.- Returns:
- the value of the
cursorrecord component
-
session
Returns the value of thesessionrecord component.- Returns:
- the value of the
sessionrecord component
-
activeProblems
public int activeProblems()Returns the value of theactiveProblemsrecord component.- Returns:
- the value of the
activeProblemsrecord component
-
errors
public int errors()Returns the value of theerrorsrecord component.- Returns:
- the value of the
errorsrecord component
-
warnings
public int warnings()Returns the value of thewarningsrecord component.- Returns:
- the value of the
warningsrecord component
-