Record Class OperationalEventJournalStatus

java.lang.Object
java.lang.Record
ecmwf.ecpds.master.OperationalEventJournalStatus
All Implemented Interfaces:
Serializable

public record OperationalEventJournalStatus(boolean enabled, String owner, boolean stopped, boolean persistenceDegraded, long persistenceFailures, long lastPersistenceFailureAt, long lastPersistedAt, boolean deliveryDegraded, String deliveryFailureStage, long lastDeliveryFailureAt, long lastExportAt, long inFlightCount, Long pendingCount, Long oldestAdmissionAt, long observedAt, String queueError, boolean collectionPaused, boolean deliveryPaused, long warningPendingCount, long criticalPendingCount, long warningOldestAgeMillis, long criticalOldestAgeMillis, long droppedEvents, String lastDropReason, long maxPendingEvents, long maxPayloadBytes, Long pendingPayloadBytes) extends Record implements Serializable
Journal health and runtime controls; nullable queue values mean no database measurement is available.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    OperationalEventJournalStatus(boolean enabled, String owner, boolean stopped, boolean persistenceDegraded, long persistenceFailures, long lastPersistenceFailureAt, long lastPersistedAt, boolean deliveryDegraded, String deliveryFailureStage, long lastDeliveryFailureAt, long lastExportAt, long inFlightCount, Long pendingCount, Long oldestAdmissionAt, long observedAt, String queueError, boolean collectionPaused, boolean deliveryPaused, long warningPendingCount, long criticalPendingCount, long warningOldestAgeMillis, long criticalOldestAgeMillis, long droppedEvents, String lastDropReason, long maxPendingEvents, long maxPayloadBytes, Long pendingPayloadBytes)
    Creates an instance of a OperationalEventJournalStatus record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    boolean
    Returns the value of the collectionPaused record component.
    boolean
     
    long
    Returns the value of the criticalOldestAgeMillis record component.
    long
    Returns the value of the criticalPendingCount record component.
    boolean
     
    boolean
    Returns the value of the deliveryDegraded record component.
    Returns the value of the deliveryFailureStage record component.
    boolean
    Returns the value of the deliveryPaused record component.
     
    long
    Returns the value of the droppedEvents record component.
    boolean
    Returns the value of the enabled record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    long
    Returns the value of the inFlightCount record component.
    long
    Returns the value of the lastDeliveryFailureAt record component.
    Returns the value of the lastDropReason record component.
    long
    Returns the value of the lastExportAt record component.
    long
    Returns the value of the lastPersistedAt record component.
    long
    Returns the value of the lastPersistenceFailureAt record component.
    long
    Returns the value of the maxPayloadBytes record component.
    long
    Returns the value of the maxPendingEvents record component.
    long
    Returns the value of the observedAt record component.
    Returns the value of the oldestAdmissionAt record component.
    Returns the value of the owner record component.
    Returns the value of the pendingCount record component.
    Returns the value of the pendingPayloadBytes record component.
    boolean
    Returns the value of the persistenceDegraded record component.
    long
    Returns the value of the persistenceFailures record component.
    Returns the value of the queueError record component.
     
    boolean
    Returns the value of the stopped record component.
    final String
    Returns a string representation of this record class.
    boolean
     
    long
    Returns the value of the warningOldestAgeMillis record component.
    long
    Returns the value of the warningPendingCount record component.
    withQueue(Long count, Long oldest, String error)
     

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • OperationalEventJournalStatus

      public OperationalEventJournalStatus(boolean enabled, String owner, boolean stopped, boolean persistenceDegraded, long persistenceFailures, long lastPersistenceFailureAt, long lastPersistedAt, boolean deliveryDegraded, String deliveryFailureStage, long lastDeliveryFailureAt, long lastExportAt, long inFlightCount, Long pendingCount, Long oldestAdmissionAt, long observedAt, String queueError, boolean collectionPaused, boolean deliveryPaused, long warningPendingCount, long criticalPendingCount, long warningOldestAgeMillis, long criticalOldestAgeMillis, long droppedEvents, String lastDropReason, long maxPendingEvents, long maxPayloadBytes, Long pendingPayloadBytes)
      Creates an instance of a OperationalEventJournalStatus record class.
      Parameters:
      enabled - the value for the enabled record component
      owner - the value for the owner record component
      stopped - the value for the stopped record component
      persistenceDegraded - the value for the persistenceDegraded record component
      persistenceFailures - the value for the persistenceFailures record component
      lastPersistenceFailureAt - the value for the lastPersistenceFailureAt record component
      lastPersistedAt - the value for the lastPersistedAt record component
      deliveryDegraded - the value for the deliveryDegraded record component
      deliveryFailureStage - the value for the deliveryFailureStage record component
      lastDeliveryFailureAt - the value for the lastDeliveryFailureAt record component
      lastExportAt - the value for the lastExportAt record component
      inFlightCount - the value for the inFlightCount record component
      pendingCount - the value for the pendingCount record component
      oldestAdmissionAt - the value for the oldestAdmissionAt record component
      observedAt - the value for the observedAt record component
      queueError - the value for the queueError record component
      collectionPaused - the value for the collectionPaused record component
      deliveryPaused - the value for the deliveryPaused record component
      warningPendingCount - the value for the warningPendingCount record component
      criticalPendingCount - the value for the criticalPendingCount record component
      warningOldestAgeMillis - the value for the warningOldestAgeMillis record component
      criticalOldestAgeMillis - the value for the criticalOldestAgeMillis record component
      droppedEvents - the value for the droppedEvents record component
      lastDropReason - the value for the lastDropReason record component
      maxPendingEvents - the value for the maxPendingEvents record component
      maxPayloadBytes - the value for the maxPayloadBytes record component
      pendingPayloadBytes - the value for the pendingPayloadBytes record component
  • Method Details

    • disabled

      public static OperationalEventJournalStatus disabled()
    • withQueue

      public OperationalEventJournalStatus withQueue(Long count, Long oldest, String error)
    • danger

      public boolean danger()
    • attention

      public boolean attention()
    • criticalBacklog

      public boolean criticalBacklog()
    • warningBacklog

      public boolean warningBacklog()
    • state

      public String state()
    • 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 the compare method from their corresponding wrapper classes.
      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.
    • enabled

      public boolean enabled()
      Returns the value of the enabled record component.
      Returns:
      the value of the enabled record component
    • owner

      public String owner()
      Returns the value of the owner record component.
      Returns:
      the value of the owner record component
    • stopped

      public boolean stopped()
      Returns the value of the stopped record component.
      Returns:
      the value of the stopped record component
    • persistenceDegraded

      public boolean persistenceDegraded()
      Returns the value of the persistenceDegraded record component.
      Returns:
      the value of the persistenceDegraded record component
    • persistenceFailures

      public long persistenceFailures()
      Returns the value of the persistenceFailures record component.
      Returns:
      the value of the persistenceFailures record component
    • lastPersistenceFailureAt

      public long lastPersistenceFailureAt()
      Returns the value of the lastPersistenceFailureAt record component.
      Returns:
      the value of the lastPersistenceFailureAt record component
    • lastPersistedAt

      public long lastPersistedAt()
      Returns the value of the lastPersistedAt record component.
      Returns:
      the value of the lastPersistedAt record component
    • deliveryDegraded

      public boolean deliveryDegraded()
      Returns the value of the deliveryDegraded record component.
      Returns:
      the value of the deliveryDegraded record component
    • deliveryFailureStage

      public String deliveryFailureStage()
      Returns the value of the deliveryFailureStage record component.
      Returns:
      the value of the deliveryFailureStage record component
    • lastDeliveryFailureAt

      public long lastDeliveryFailureAt()
      Returns the value of the lastDeliveryFailureAt record component.
      Returns:
      the value of the lastDeliveryFailureAt record component
    • lastExportAt

      public long lastExportAt()
      Returns the value of the lastExportAt record component.
      Returns:
      the value of the lastExportAt record component
    • inFlightCount

      public long inFlightCount()
      Returns the value of the inFlightCount record component.
      Returns:
      the value of the inFlightCount record component
    • pendingCount

      public Long pendingCount()
      Returns the value of the pendingCount record component.
      Returns:
      the value of the pendingCount record component
    • oldestAdmissionAt

      public Long oldestAdmissionAt()
      Returns the value of the oldestAdmissionAt record component.
      Returns:
      the value of the oldestAdmissionAt record component
    • observedAt

      public long observedAt()
      Returns the value of the observedAt record component.
      Returns:
      the value of the observedAt record component
    • queueError

      public String queueError()
      Returns the value of the queueError record component.
      Returns:
      the value of the queueError record component
    • collectionPaused

      public boolean collectionPaused()
      Returns the value of the collectionPaused record component.
      Returns:
      the value of the collectionPaused record component
    • deliveryPaused

      public boolean deliveryPaused()
      Returns the value of the deliveryPaused record component.
      Returns:
      the value of the deliveryPaused record component
    • warningPendingCount

      public long warningPendingCount()
      Returns the value of the warningPendingCount record component.
      Returns:
      the value of the warningPendingCount record component
    • criticalPendingCount

      public long criticalPendingCount()
      Returns the value of the criticalPendingCount record component.
      Returns:
      the value of the criticalPendingCount record component
    • warningOldestAgeMillis

      public long warningOldestAgeMillis()
      Returns the value of the warningOldestAgeMillis record component.
      Returns:
      the value of the warningOldestAgeMillis record component
    • criticalOldestAgeMillis

      public long criticalOldestAgeMillis()
      Returns the value of the criticalOldestAgeMillis record component.
      Returns:
      the value of the criticalOldestAgeMillis record component
    • droppedEvents

      public long droppedEvents()
      Returns the value of the droppedEvents record component.
      Returns:
      the value of the droppedEvents record component
    • lastDropReason

      public String lastDropReason()
      Returns the value of the lastDropReason record component.
      Returns:
      the value of the lastDropReason record component
    • maxPendingEvents

      public long maxPendingEvents()
      Returns the value of the maxPendingEvents record component.
      Returns:
      the value of the maxPendingEvents record component
    • maxPayloadBytes

      public long maxPayloadBytes()
      Returns the value of the maxPayloadBytes record component.
      Returns:
      the value of the maxPayloadBytes record component
    • pendingPayloadBytes

      public Long pendingPayloadBytes()
      Returns the value of the pendingPayloadBytes record component.
      Returns:
      the value of the pendingPayloadBytes record component