Record Class EngineInformation
java.lang.Object
java.lang.Record
com.inductiveautomation.ignition.gateway.storeforward.engine.EngineInformation
- Record Components:
engineId
- the id for the store and forward engineengineStatus
- the status of the store and forward enginestoreMetric
- the storage metric relating to data stored to the engineforwardMetric
- the forward metric relating to data forwarded to the data sinkstotalPending
- the total number of pending data points within the enginetotalQuarantined
- the total number of quarantined data points within the enginetotalDropped
- the total number of dropped data within the enginepipelineInformation
- if the engine contains inner data pipelines, then represents the pipeline statisticsquarantinedDataInfo
- List of information about the data that is quarantined in the engine.
public record EngineInformation(String engineId, EngineStatus engineStatus, com.codahale.metrics.Meter storeMetric, com.codahale.metrics.Meter forwardMetric, int totalPending, int totalQuarantined, int totalDropped, List<PipelineInformation> pipelineInformation, List<QuarantinedDataInfo> quarantinedDataInfo)
extends Record
Snapshot of store and forward engine information specific for data pipelines.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionEngineInformation
(String engineId, EngineStatus engineStatus, com.codahale.metrics.Meter storeMetric, com.codahale.metrics.Meter forwardMetric, int totalPending, int totalQuarantined, int totalDropped, List<PipelineInformation> pipelineInformation, List<QuarantinedDataInfo> quarantinedDataInfo) Creates an instance of aEngineInformation
record class. -
Method Summary
Modifier and TypeMethodDescriptionengineId()
Returns the value of theengineId
record component.Returns the value of theengineStatus
record component.final boolean
Indicates whether some other object is "equal to" this one.com.codahale.metrics.Meter
Returns the value of theforwardMetric
record component.final int
hashCode()
Returns a hash code value for this object.static EngineInformation.Builder
static EngineInformation.Builder
newBuilder
(EngineInformation engineInformation) Returns the value of thepipelineInformation
record component.Returns the value of thequarantinedDataInfo
record component.com.codahale.metrics.Meter
Returns the value of thestoreMetric
record component.static com.inductiveautomation.ignition.common.gson.JsonObject
toGson
(EngineInformation info) static String
toJson
(EngineInformation info) final String
toString()
Returns a string representation of this record class.int
Returns the value of thetotalDropped
record component.int
Returns the value of thetotalPending
record component.int
Returns the value of thetotalQuarantined
record component.
-
Constructor Details
-
EngineInformation
public EngineInformation(String engineId, EngineStatus engineStatus, com.codahale.metrics.Meter storeMetric, com.codahale.metrics.Meter forwardMetric, int totalPending, int totalQuarantined, int totalDropped, List<PipelineInformation> pipelineInformation, List<QuarantinedDataInfo> quarantinedDataInfo) Creates an instance of aEngineInformation
record class.- Parameters:
engineId
- the value for theengineId
record componentengineStatus
- the value for theengineStatus
record componentstoreMetric
- the value for thestoreMetric
record componentforwardMetric
- the value for theforwardMetric
record componenttotalPending
- the value for thetotalPending
record componenttotalQuarantined
- the value for thetotalQuarantined
record componenttotalDropped
- the value for thetotalDropped
record componentpipelineInformation
- the value for thepipelineInformation
record componentquarantinedDataInfo
- the value for thequarantinedDataInfo
record component
-
-
Method Details
-
toGson
public static com.inductiveautomation.ignition.common.gson.JsonObject toGson(EngineInformation info) -
toJson
-
newBuilder
-
newBuilder
-
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 '=='. -
engineId
Returns the value of theengineId
record component.- Returns:
- the value of the
engineId
record component
-
engineStatus
Returns the value of theengineStatus
record component.- Returns:
- the value of the
engineStatus
record component
-
storeMetric
public com.codahale.metrics.Meter storeMetric()Returns the value of thestoreMetric
record component.- Returns:
- the value of the
storeMetric
record component
-
forwardMetric
public com.codahale.metrics.Meter forwardMetric()Returns the value of theforwardMetric
record component.- Returns:
- the value of the
forwardMetric
record component
-
totalPending
public int totalPending()Returns the value of thetotalPending
record component.- Returns:
- the value of the
totalPending
record component
-
totalQuarantined
public int totalQuarantined()Returns the value of thetotalQuarantined
record component.- Returns:
- the value of the
totalQuarantined
record component
-
totalDropped
public int totalDropped()Returns the value of thetotalDropped
record component.- Returns:
- the value of the
totalDropped
record component
-
pipelineInformation
Returns the value of thepipelineInformation
record component.- Returns:
- the value of the
pipelineInformation
record component
-
quarantinedDataInfo
Returns the value of thequarantinedDataInfo
record component.- Returns:
- the value of the
quarantinedDataInfo
record component
-