Record Class EngineStatus
java.lang.Object
java.lang.Record
com.inductiveautomation.ignition.gateway.storeforward.engine.EngineStatus
- Record Components:
mode
- the mode (state) that the engine is currently runningreasoning
- any additional messages that pertain to why the modeaccepting
- if the engine is currently accepting data
public record EngineStatus(EngineStatus.EngineMode mode, Optional<LocalizedString> reasoning, boolean accepting)
extends Record
The store and forward engine status.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionEngineStatus
(EngineStatus.EngineMode mode, Optional<LocalizedString> reasoning, boolean accepting) Creates an instance of aEngineStatus
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the value of theaccepting
record component.final boolean
Indicates whether some other object is "equal to" this one.static EngineStatus
erroredStatus
(LocalizedString reasoning) static EngineStatus
final int
hashCode()
Returns a hash code value for this object.mode()
Returns the value of themode
record component.Returns the value of thereasoning
record component.static EngineStatus
storageOnlyStatus
(LocalizedString reasoning) final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
EngineStatus
public EngineStatus(EngineStatus.EngineMode mode, Optional<LocalizedString> reasoning, boolean accepting) Creates an instance of aEngineStatus
record class.
-
-
Method Details
-
fullyOperationStatus
-
storageOnlyStatus
-
erroredStatus
-
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 '=='. -
mode
Returns the value of themode
record component.- Returns:
- the value of the
mode
record component
-
reasoning
Returns the value of thereasoning
record component.- Returns:
- the value of the
reasoning
record component
-
accepting
public boolean accepting()Returns the value of theaccepting
record component.- Returns:
- the value of the
accepting
record component
-