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 aEngineInformationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionengineId()Returns the value of theengineIdrecord component.Returns the value of theengineStatusrecord component.final booleanIndicates whether some other object is "equal to" this one.com.codahale.metrics.MeterReturns the value of theforwardMetricrecord component.final inthashCode()Returns a hash code value for this object.static EngineInformation.Builderstatic EngineInformation.BuildernewBuilder(EngineInformation engineInformation) Returns the value of thepipelineInformationrecord component.Returns the value of thequarantinedDataInforecord component.com.codahale.metrics.MeterReturns the value of thestoreMetricrecord component.static com.inductiveautomation.ignition.common.gson.JsonObjecttoGson(EngineInformation info) static StringtoJson(EngineInformation info) final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalDroppedrecord component.intReturns the value of thetotalPendingrecord component.intReturns the value of thetotalQuarantinedrecord 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 aEngineInformationrecord class.- Parameters:
engineId- the value for theengineIdrecord componentengineStatus- the value for theengineStatusrecord componentstoreMetric- the value for thestoreMetricrecord componentforwardMetric- the value for theforwardMetricrecord componenttotalPending- the value for thetotalPendingrecord componenttotalQuarantined- the value for thetotalQuarantinedrecord componenttotalDropped- the value for thetotalDroppedrecord componentpipelineInformation- the value for thepipelineInformationrecord componentquarantinedDataInfo- the value for thequarantinedDataInforecord 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 theengineIdrecord component.- Returns:
- the value of the
engineIdrecord component
-
engineStatus
Returns the value of theengineStatusrecord component.- Returns:
- the value of the
engineStatusrecord component
-
storeMetric
public com.codahale.metrics.Meter storeMetric()Returns the value of thestoreMetricrecord component.- Returns:
- the value of the
storeMetricrecord component
-
forwardMetric
public com.codahale.metrics.Meter forwardMetric()Returns the value of theforwardMetricrecord component.- Returns:
- the value of the
forwardMetricrecord component
-
totalPending
public int totalPending()Returns the value of thetotalPendingrecord component.- Returns:
- the value of the
totalPendingrecord component
-
totalQuarantined
public int totalQuarantined()Returns the value of thetotalQuarantinedrecord component.- Returns:
- the value of the
totalQuarantinedrecord component
-
totalDropped
public int totalDropped()Returns the value of thetotalDroppedrecord component.- Returns:
- the value of the
totalDroppedrecord component
-
pipelineInformation
Returns the value of thepipelineInformationrecord component.- Returns:
- the value of the
pipelineInformationrecord component
-
quarantinedDataInfo
Returns the value of thequarantinedDataInforecord component.- Returns:
- the value of the
quarantinedDataInforecord component
-