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
ConstructorsConstructorDescriptionOperationalEventJournalStatus(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 aOperationalEventJournalStatusrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanReturns the value of thecollectionPausedrecord component.booleanlongReturns the value of thecriticalOldestAgeMillisrecord component.longReturns the value of thecriticalPendingCountrecord component.booleandanger()booleanReturns the value of thedeliveryDegradedrecord component.Returns the value of thedeliveryFailureStagerecord component.booleanReturns the value of thedeliveryPausedrecord component.disabled()longReturns the value of thedroppedEventsrecord component.booleanenabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of theinFlightCountrecord component.longReturns the value of thelastDeliveryFailureAtrecord component.Returns the value of thelastDropReasonrecord component.longReturns the value of thelastExportAtrecord component.longReturns the value of thelastPersistedAtrecord component.longReturns the value of thelastPersistenceFailureAtrecord component.longReturns the value of themaxPayloadBytesrecord component.longReturns the value of themaxPendingEventsrecord component.longReturns the value of theobservedAtrecord component.Returns the value of theoldestAdmissionAtrecord component.owner()Returns the value of theownerrecord component.Returns the value of thependingCountrecord component.Returns the value of thependingPayloadBytesrecord component.booleanReturns the value of thepersistenceDegradedrecord component.longReturns the value of thepersistenceFailuresrecord component.Returns the value of thequeueErrorrecord component.state()booleanstopped()Returns the value of thestoppedrecord component.final StringtoString()Returns a string representation of this record class.booleanlongReturns the value of thewarningOldestAgeMillisrecord component.longReturns the value of thewarningPendingCountrecord component.
-
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 aOperationalEventJournalStatusrecord class.- Parameters:
enabled- the value for theenabledrecord componentowner- the value for theownerrecord componentstopped- the value for thestoppedrecord componentpersistenceDegraded- the value for thepersistenceDegradedrecord componentpersistenceFailures- the value for thepersistenceFailuresrecord componentlastPersistenceFailureAt- the value for thelastPersistenceFailureAtrecord componentlastPersistedAt- the value for thelastPersistedAtrecord componentdeliveryDegraded- the value for thedeliveryDegradedrecord componentdeliveryFailureStage- the value for thedeliveryFailureStagerecord componentlastDeliveryFailureAt- the value for thelastDeliveryFailureAtrecord componentlastExportAt- the value for thelastExportAtrecord componentinFlightCount- the value for theinFlightCountrecord componentpendingCount- the value for thependingCountrecord componentoldestAdmissionAt- the value for theoldestAdmissionAtrecord componentobservedAt- the value for theobservedAtrecord componentqueueError- the value for thequeueErrorrecord componentcollectionPaused- the value for thecollectionPausedrecord componentdeliveryPaused- the value for thedeliveryPausedrecord componentwarningPendingCount- the value for thewarningPendingCountrecord componentcriticalPendingCount- the value for thecriticalPendingCountrecord componentwarningOldestAgeMillis- the value for thewarningOldestAgeMillisrecord componentcriticalOldestAgeMillis- the value for thecriticalOldestAgeMillisrecord componentdroppedEvents- the value for thedroppedEventsrecord componentlastDropReason- the value for thelastDropReasonrecord componentmaxPendingEvents- the value for themaxPendingEventsrecord componentmaxPayloadBytes- the value for themaxPayloadBytesrecord componentpendingPayloadBytes- the value for thependingPayloadBytesrecord component
-
-
Method Details
-
disabled
-
withQueue
-
danger
public boolean danger() -
attention
public boolean attention() -
criticalBacklog
public boolean criticalBacklog() -
warningBacklog
public boolean warningBacklog() -
state
-
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. -
enabled
public boolean enabled()Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
owner
Returns the value of theownerrecord component.- Returns:
- the value of the
ownerrecord component
-
stopped
public boolean stopped()Returns the value of thestoppedrecord component.- Returns:
- the value of the
stoppedrecord component
-
persistenceDegraded
public boolean persistenceDegraded()Returns the value of thepersistenceDegradedrecord component.- Returns:
- the value of the
persistenceDegradedrecord component
-
persistenceFailures
public long persistenceFailures()Returns the value of thepersistenceFailuresrecord component.- Returns:
- the value of the
persistenceFailuresrecord component
-
lastPersistenceFailureAt
public long lastPersistenceFailureAt()Returns the value of thelastPersistenceFailureAtrecord component.- Returns:
- the value of the
lastPersistenceFailureAtrecord component
-
lastPersistedAt
public long lastPersistedAt()Returns the value of thelastPersistedAtrecord component.- Returns:
- the value of the
lastPersistedAtrecord component
-
deliveryDegraded
public boolean deliveryDegraded()Returns the value of thedeliveryDegradedrecord component.- Returns:
- the value of the
deliveryDegradedrecord component
-
deliveryFailureStage
Returns the value of thedeliveryFailureStagerecord component.- Returns:
- the value of the
deliveryFailureStagerecord component
-
lastDeliveryFailureAt
public long lastDeliveryFailureAt()Returns the value of thelastDeliveryFailureAtrecord component.- Returns:
- the value of the
lastDeliveryFailureAtrecord component
-
lastExportAt
public long lastExportAt()Returns the value of thelastExportAtrecord component.- Returns:
- the value of the
lastExportAtrecord component
-
inFlightCount
public long inFlightCount()Returns the value of theinFlightCountrecord component.- Returns:
- the value of the
inFlightCountrecord component
-
pendingCount
Returns the value of thependingCountrecord component.- Returns:
- the value of the
pendingCountrecord component
-
oldestAdmissionAt
Returns the value of theoldestAdmissionAtrecord component.- Returns:
- the value of the
oldestAdmissionAtrecord component
-
observedAt
public long observedAt()Returns the value of theobservedAtrecord component.- Returns:
- the value of the
observedAtrecord component
-
queueError
Returns the value of thequeueErrorrecord component.- Returns:
- the value of the
queueErrorrecord component
-
collectionPaused
public boolean collectionPaused()Returns the value of thecollectionPausedrecord component.- Returns:
- the value of the
collectionPausedrecord component
-
deliveryPaused
public boolean deliveryPaused()Returns the value of thedeliveryPausedrecord component.- Returns:
- the value of the
deliveryPausedrecord component
-
warningPendingCount
public long warningPendingCount()Returns the value of thewarningPendingCountrecord component.- Returns:
- the value of the
warningPendingCountrecord component
-
criticalPendingCount
public long criticalPendingCount()Returns the value of thecriticalPendingCountrecord component.- Returns:
- the value of the
criticalPendingCountrecord component
-
warningOldestAgeMillis
public long warningOldestAgeMillis()Returns the value of thewarningOldestAgeMillisrecord component.- Returns:
- the value of the
warningOldestAgeMillisrecord component
-
criticalOldestAgeMillis
public long criticalOldestAgeMillis()Returns the value of thecriticalOldestAgeMillisrecord component.- Returns:
- the value of the
criticalOldestAgeMillisrecord component
-
droppedEvents
public long droppedEvents()Returns the value of thedroppedEventsrecord component.- Returns:
- the value of the
droppedEventsrecord component
-
lastDropReason
Returns the value of thelastDropReasonrecord component.- Returns:
- the value of the
lastDropReasonrecord component
-
maxPendingEvents
public long maxPendingEvents()Returns the value of themaxPendingEventsrecord component.- Returns:
- the value of the
maxPendingEventsrecord component
-
maxPayloadBytes
public long maxPayloadBytes()Returns the value of themaxPayloadBytesrecord component.- Returns:
- the value of the
maxPayloadBytesrecord component
-
pendingPayloadBytes
Returns the value of thependingPayloadBytesrecord component.- Returns:
- the value of the
pendingPayloadBytesrecord component
-