Record Class HarvestOrchestrator.HarvestStatus
java.lang.Object
java.lang.Record
org.javastro.ivoa.registry.harvesting.HarvestOrchestrator.HarvestStatus
- Enclosing class:
- HarvestOrchestrator
public static record HarvestOrchestrator.HarvestStatus(boolean running, String currentSourceKey, List<String> queuedSourceKeys, int totalSources, int activeSources, int queuedCount, int failedSources, int rejectedSources)
extends Record
Snapshot of the harvesting queue and source catalog state.
-
Constructor Summary
ConstructorsConstructorDescriptionHarvestStatus(boolean running, String currentSourceKey, List<String> queuedSourceKeys, int totalSources, int activeSources, int queuedCount, int failedSources, int rejectedSources) Creates an instance of aHarvestStatusrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theactiveSourcesrecord component.Returns the value of thecurrentSourceKeyrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of thefailedSourcesrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of thequeuedCountrecord component.Returns the value of thequeuedSourceKeysrecord component.intReturns the value of therejectedSourcesrecord component.booleanrunning()Returns the value of therunningrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalSourcesrecord component.
-
Constructor Details
-
HarvestStatus
public HarvestStatus(boolean running, String currentSourceKey, List<String> queuedSourceKeys, int totalSources, int activeSources, int queuedCount, int failedSources, int rejectedSources) Creates an instance of aHarvestStatusrecord class.- Parameters:
running- the value for therunningrecord componentcurrentSourceKey- the value for thecurrentSourceKeyrecord componentqueuedSourceKeys- the value for thequeuedSourceKeysrecord componenttotalSources- the value for thetotalSourcesrecord componentactiveSources- the value for theactiveSourcesrecord componentqueuedCount- the value for thequeuedCountrecord componentfailedSources- the value for thefailedSourcesrecord componentrejectedSources- the value for therejectedSourcesrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
running
public boolean running()Returns the value of therunningrecord component.- Returns:
- the value of the
runningrecord component
-
currentSourceKey
Returns the value of thecurrentSourceKeyrecord component.- Returns:
- the value of the
currentSourceKeyrecord component
-
queuedSourceKeys
Returns the value of thequeuedSourceKeysrecord component.- Returns:
- the value of the
queuedSourceKeysrecord component
-
totalSources
public int totalSources()Returns the value of thetotalSourcesrecord component.- Returns:
- the value of the
totalSourcesrecord component
-
activeSources
public int activeSources()Returns the value of theactiveSourcesrecord component.- Returns:
- the value of the
activeSourcesrecord component
-
queuedCount
public int queuedCount()Returns the value of thequeuedCountrecord component.- Returns:
- the value of the
queuedCountrecord component
-
failedSources
public int failedSources()Returns the value of thefailedSourcesrecord component.- Returns:
- the value of the
failedSourcesrecord component
-
rejectedSources
public int rejectedSources()Returns the value of therejectedSourcesrecord component.- Returns:
- the value of the
rejectedSourcesrecord component
-