Record Class OrchestraStatus
java.lang.Object
java.lang.Record
com.iantapply.orchestra.api.OrchestraStatus
- Record Components:
definitionCount- registered definition countactiveExecutionCount- active or recoverable execution countactiveWorkerCount- workers currently processing executionsqueuedTaskCount- executions waiting for a worker
public record OrchestraStatus(int definitionCount, int activeExecutionCount, int activeWorkerCount, int queuedTaskCount)
extends Record
Platform-neutral operational snapshot.
-
Constructor Summary
ConstructorsConstructorDescriptionOrchestraStatus(int definitionCount, int activeExecutionCount, int activeWorkerCount, int queuedTaskCount) Creates an instance of aOrchestraStatusrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theactiveExecutionCountrecord component.intReturns the value of theactiveWorkerCountrecord component.intReturns the value of thedefinitionCountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of thequeuedTaskCountrecord component.summary()Returns one consistent human-readable status line for commands and logs.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OrchestraStatus
public OrchestraStatus(int definitionCount, int activeExecutionCount, int activeWorkerCount, int queuedTaskCount) Creates an instance of aOrchestraStatusrecord class.- Parameters:
definitionCount- the value for thedefinitionCountrecord componentactiveExecutionCount- the value for theactiveExecutionCountrecord componentactiveWorkerCount- the value for theactiveWorkerCountrecord componentqueuedTaskCount- the value for thequeuedTaskCountrecord component
-
-
Method Details
-
summary
Returns one consistent human-readable status line for commands and logs.- Returns:
- formatted status summary
-
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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
definitionCount
public int definitionCount()Returns the value of thedefinitionCountrecord component.- Returns:
- the value of the
definitionCountrecord component
-
activeExecutionCount
public int activeExecutionCount()Returns the value of theactiveExecutionCountrecord component.- Returns:
- the value of the
activeExecutionCountrecord component
-
activeWorkerCount
public int activeWorkerCount()Returns the value of theactiveWorkerCountrecord component.- Returns:
- the value of the
activeWorkerCountrecord component
-
queuedTaskCount
public int queuedTaskCount()Returns the value of thequeuedTaskCountrecord component.- Returns:
- the value of the
queuedTaskCountrecord component
-