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
- aMeter
that 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 supportsidentifier
- the identifier for the data store
- All Implemented Interfaces:
DataSinkInformation
public record DefaultDataSinkInfo(LocalizedString description, SinkStatus status, com.codahale.metrics.Meter storeMetric, List<LocalizedString> messages, PersistentFlavor<?> supportedFlavor, StorageId identifier)
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, StorageId identifier) Creates an instance of aDefaultDataSinkInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescription
record component.final boolean
Indicates whether some other object is "equal to" this one.static DefaultDataSinkInfo
static DefaultDataSinkInfo
final int
hashCode()
Returns a hash code value for this object.Returns the value of theidentifier
record component.messages()
Returns the value of themessages
record component.static DefaultDataSinkInfo.Builder
static DefaultDataSinkInfo.Builder
status()
Returns the value of thestatus
record component.com.codahale.metrics.Meter
Returns the value of thestoreMetric
record component.Returns the value of thesupportedFlavor
record component.static com.inductiveautomation.ignition.common.gson.JsonObject
toGson
(DefaultDataSinkInfo info) static String
toJson
(DefaultDataSinkInfo info) final String
toString()
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, StorageId identifier) Creates an instance of aDefaultDataSinkInfo
record class.- Parameters:
description
- the value for thedescription
record componentstatus
- the value for thestatus
record componentstoreMetric
- the value for thestoreMetric
record componentmessages
- the value for themessages
record componentsupportedFlavor
- the value for thesupportedFlavor
record componentidentifier
- the value for theidentifier
record 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 thedescription
record component.- Specified by:
description
in interfaceDataSinkInformation
- Returns:
- the value of the
description
record component
-
status
Returns the value of thestatus
record component.- Specified by:
status
in interfaceDataSinkInformation
- Returns:
- the value of the
status
record component
-
storeMetric
public com.codahale.metrics.Meter storeMetric()Returns the value of thestoreMetric
record component.- Specified by:
storeMetric
in interfaceDataSinkInformation
- Returns:
- the value of the
storeMetric
record component
-
messages
Returns the value of themessages
record component.- Specified by:
messages
in interfaceDataSinkInformation
- Returns:
- the value of the
messages
record component
-
supportedFlavor
Returns the value of thesupportedFlavor
record component.- Specified by:
supportedFlavor
in interfaceDataSinkInformation
- Returns:
- the value of the
supportedFlavor
record component
-
identifier
Returns the value of theidentifier
record component.- Specified by:
identifier
in interfaceDataSinkInformation
- Returns:
- the value of the
identifier
record component
-