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

    Constructors
    Constructor
    Description
    HarvestStatus(boolean running, String currentSourceKey, List<String> queuedSourceKeys, int totalSources, int activeSources, int queuedCount, int failedSources, int rejectedSources)
    Creates an instance of a HarvestStatus record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the value of the activeSources record component.
    Returns the value of the currentSourceKey record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    int
    Returns the value of the failedSources record component.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the queuedCount record component.
    Returns the value of the queuedSourceKeys record component.
    int
    Returns the value of the rejectedSources record component.
    boolean
    Returns the value of the running record component.
    final String
    Returns a string representation of this record class.
    int
    Returns the value of the totalSources record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a HarvestStatus record class.
      Parameters:
      running - the value for the running record component
      currentSourceKey - the value for the currentSourceKey record component
      queuedSourceKeys - the value for the queuedSourceKeys record component
      totalSources - the value for the totalSources record component
      activeSources - the value for the activeSources record component
      queuedCount - the value for the queuedCount record component
      failedSources - the value for the failedSources record component
      rejectedSources - the value for the rejectedSources record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • running

      public boolean running()
      Returns the value of the running record component.
      Returns:
      the value of the running record component
    • currentSourceKey

      public String currentSourceKey()
      Returns the value of the currentSourceKey record component.
      Returns:
      the value of the currentSourceKey record component
    • queuedSourceKeys

      public List<String> queuedSourceKeys()
      Returns the value of the queuedSourceKeys record component.
      Returns:
      the value of the queuedSourceKeys record component
    • totalSources

      public int totalSources()
      Returns the value of the totalSources record component.
      Returns:
      the value of the totalSources record component
    • activeSources

      public int activeSources()
      Returns the value of the activeSources record component.
      Returns:
      the value of the activeSources record component
    • queuedCount

      public int queuedCount()
      Returns the value of the queuedCount record component.
      Returns:
      the value of the queuedCount record component
    • failedSources

      public int failedSources()
      Returns the value of the failedSources record component.
      Returns:
      the value of the failedSources record component
    • rejectedSources

      public int rejectedSources()
      Returns the value of the rejectedSources record component.
      Returns:
      the value of the rejectedSources record component