Record Class DefaultDataSinkInfo
java.lang.Object
java.lang.Record
com.inductiveautomation.ignition.gateway.storeforward.sinks.info.DefaultDataSinkInfo
- Record Components:
description- the localized description for the data sinkstatus- the current status of the data sinkstoreMetric- aMeterthat represents the data storage throughput for the data sinkmessages- a list of localized messages associated with the data sinksupportedFlavor- the flavor that the data sink supportsstorageKey- the key identifying the data sink
- All Implemented Interfaces:
DataSinkInformation
public record DefaultDataSinkInfo(LocalizedString description, SinkStatus status, com.codahale.metrics.Meter storeMetric, List<LocalizedString> messages, PersistentFlavor<?> supportedFlavor, StorageKey storageKey)
extends Record
implements DataSinkInformation
A record that represents the default data sink information.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionDefaultDataSinkInfo(LocalizedString description, SinkStatus status, com.codahale.metrics.Meter storeMetric, List<LocalizedString> messages, PersistentFlavor<?> supportedFlavor, StorageKey storageKey) Creates an instance of aDefaultDataSinkInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.static DefaultDataSinkInfostatic DefaultDataSinkInfofinal inthashCode()Returns a hash code value for this object.messages()Returns the value of themessagesrecord component.static DefaultDataSinkInfo.Builderstatic DefaultDataSinkInfo.Builderstatus()Returns the value of thestatusrecord component.Returns the value of thestorageKeyrecord component.com.codahale.metrics.MeterReturns the value of thestoreMetricrecord component.Returns the value of thesupportedFlavorrecord component.static com.inductiveautomation.ignition.common.gson.JsonObjecttoGson(DefaultDataSinkInfo info) static StringtoJson(DefaultDataSinkInfo info) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DefaultDataSinkInfo
public DefaultDataSinkInfo(LocalizedString description, SinkStatus status, com.codahale.metrics.Meter storeMetric, List<LocalizedString> messages, PersistentFlavor<?> supportedFlavor, StorageKey storageKey) Creates an instance of aDefaultDataSinkInforecord class.- Parameters:
description- the value for thedescriptionrecord componentstatus- the value for thestatusrecord componentstoreMetric- the value for thestoreMetricrecord componentmessages- the value for themessagesrecord componentsupportedFlavor- the value for thesupportedFlavorrecord componentstorageKey- the value for thestorageKeyrecord component
-
-
Method Details
-
newBuilder
-
newBuilder
-
fromGson
-
fromJson
-
toGson
public static com.inductiveautomation.ignition.common.gson.JsonObject toGson(DefaultDataSinkInfo info) -
toJson
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
description
Returns the value of thedescriptionrecord component.- Specified by:
descriptionin interfaceDataSinkInformation- Returns:
- the value of the
descriptionrecord component
-
status
Returns the value of thestatusrecord component.- Specified by:
statusin interfaceDataSinkInformation- Returns:
- the value of the
statusrecord component
-
storeMetric
public com.codahale.metrics.Meter storeMetric()Returns the value of thestoreMetricrecord component.- Specified by:
storeMetricin interfaceDataSinkInformation- Returns:
- the value of the
storeMetricrecord component
-
messages
Returns the value of themessagesrecord component.- Specified by:
messagesin interfaceDataSinkInformation- Returns:
- the value of the
messagesrecord component
-
supportedFlavor
Returns the value of thesupportedFlavorrecord component.- Specified by:
supportedFlavorin interfaceDataSinkInformation- Returns:
- the value of the
supportedFlavorrecord component
-
storageKey
Returns the value of thestorageKeyrecord component.- Specified by:
storageKeyin interfaceDataSinkInformation- Returns:
- the value of the
storageKeyrecord component
-